/* ==========================================================================
   Elementor reset — loaded AFTER Elementor's frontend CSS, BEFORE the design
   (variables.css / base.css / layout.css).

   Elementor's container rule (`.e-con`) drives display, padding, gap,
   margins, width, position and flex settings from CSS variables with
   opinionated defaults (10px padding, 20px gap, column direction …), at the
   same (0,1,0) specificity as most of the design's own rules. This file sets
   those variables to neutral values on the theme's containers (`.pe-con`),
   so wherever the design says nothing an element behaves like the plain
   <div>/<section> the static markup used, and wherever it does say
   something the design (loaded later) wins the tie.
   ========================================================================== */

/* Two classes: Elementor sets several of these variables on `.e-con.e-flex`. */
.pe-con.e-con {
  --display: block;
  --width: auto;
  --height: auto;
  --min-height: initial;
  --position: static;
  --z-index: auto;
  --overflow: visible;
  --border-radius: 0;
  --content-width: 100%;

  --flex-direction: row;
  --flex-wrap: nowrap;
  --justify-content: normal;
  --align-items: normal;
  --align-content: normal;
  --align-self: auto;
  --flex-grow: 0;
  --flex-shrink: 1;
  --flex-basis: auto;

  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --margin-top: 0px;
  --margin-right: 0px;
  --margin-bottom: 0px;
  --margin-left: 0px;

  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  --widgets-spacing: 0px;
  --widgets-spacing-row: 0px;
  --widgets-spacing-column: 0px;
}

/* Elementor's own direct declarations at one class. This file loads after
   Elementor's (so it wins those ties) and before the design (which wins
   these). Two-class Elementor declarations (flex, flex-direction) are
   answered by elementor-boost.css. */
.pe-con {
  display: block;
  min-width: auto;
  transition: none;
}

/* The page root Elementor wraps around all sections. */
.elementor.elementor:not(.elementor-edit-area) {
  display: block;
}

/* --------------------------------------------------------------------------
   Widget wrappers.
   On the frontend each theme widget's (and each Heading / Text Editor /
   Form widget's) Elementor wrapper is taken out of the box tree with
   `display: contents`, so the component inside sits as a direct grid/flex
   child exactly like the static markup: `.hub-grid` columns, `.hero-cta`
   button rows and `.split-content` flex gaps keep working. Inside the
   editor the wrappers stay real boxes, so every widget can still be
   selected, dragged and edited.
   -------------------------------------------------------------------------- */
body:not(.elementor-editor-active) .pe-con > .elementor-widget,
body:not(.elementor-editor-active) .pe-con > .elementor-widget > .elementor-widget-container,
body:not(.elementor-editor-active) .elementor-widget.pe-widget,
body:not(.elementor-editor-active) .elementor-widget.pe-widget > .elementor-widget-container {
  display: contents;
}

/* Elementor gives every widget a bottom margin / spacing and relative
   positioning; the design spaces elements itself. */
.pe-con > .elementor-widget {
  margin: 0;
  --kit-widget-spacing: 0px;
}

/* Elementor's heading widget sets `line-height: 1`, padding and margin on
   `.elementor-heading-title`; the static <h1>–<h4> inherited theirs. The
   design's own (more specific) heading rules still win. */
.elementor-heading-title {
  line-height: inherit;
}

.elementor-widget-heading .elementor-heading-title {
  margin: 0;
  padding: 0;
}
