/* ==========================================================================
   Design elements — let the design's own CSS lay out Elementor's markup.
   Loads before css/site/*.css, so the design's rules win any tie.

   dc-c  on containers: drops Elementor's container defaults (flex, 100% width,
         padding, gap…) back to plain-HTML behaviour. Specificity 0,2,1: beats
         Elementor's container rules (0,2,0), loses to the site CSS, which is
         written as "body.dc …" (0,2,1 and up, later in the file order).
   dc-w  on widgets: the widget's wrapper disappears from the layout on the
         live page (display: contents), so the widget's own element (heading,
         paragraph, image, button) sits in the parent's grid/flex exactly like
         in the design — in the editor too, so it shows the real layout.
   ========================================================================== */

body .e-con.dc-c {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  min-width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: normal;
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: normal;
  align-items: normal;
  align-content: normal;
  align-self: auto;
  text-align: inherit;
  overflow: visible;
  border-radius: 0;
  z-index: auto;
  transition: none;
}

body .elementor-widget.dc-w,
body .dc-w > .elementor-shortcode,
body .dc-part,
body .dc-part > .elementor {
  display: contents;
}

/* Editor: the layout is the live page's (wrappers take no space there either).
   Elementor's hover frame + handle need the wrapper's box, so instead the
   widget's own element is outlined; click it (or use the Navigator) to edit. */
.elementor-editor-active .dc-w > .elementor-element-overlay { display: none; }
.elementor-editor-active .dc-w:hover > :not(.elementor-element-overlay) { outline: 1px dashed #f3bafd; outline-offset: 2px; }
.elementor-editor-active .dc-w.elementor-element-editable > :not(.elementor-element-overlay) { outline: 2px solid #f3bafd; outline-offset: 2px; }

/* Elementor resets these on everything inside .elementor; plain HTML (and so
   the design) expects the browser defaults. */
body.dc a { text-decoration: underline; }

/* Elementor draws a container's background overlay with ::before/::after
   (position, inset, size, radius…). On dc-c containers those pseudo-elements
   belong to the design (watermarks, glows), so start them from nothing. */
body .e-con.dc-c::before,
body .e-con.dc-c::after {
  content: none;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  mix-blend-mode: normal;
  opacity: 1;
  transition: none;
  background: none;
  z-index: auto;
  transform: none;
  filter: none;
}

/* Heading widget: Elementor sets line-height:1 and margin:0 on every
   .elementor-heading-title; put back the browser defaults the design was
   written against. Same weight as Site Settings → Typography (which loads
   later and wins); every design rule outranks both. */
body :where(.dc-w) .elementor-heading-title{line-height:normal;margin:revert}

/* Button widget on a design element (links with an icon, the design's .btn…):
   Elementor's own button look is dropped and the parts are laid out like the
   design's <a><svg/>Text</a>, so the design's classes style it. The icon is
   an SVG from the Media Library, sized from the design (--dc-iw / --dc-ih). */
body :where(.dc-w) .elementor-button{padding:0;border-radius:0;background:none;color:inherit;fill:currentColor;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit}
body :where(.dc-w) :is(.elementor-button-content-wrapper,.elementor-button-icon,.elementor-button-text){display:contents}
body :where(.dc-w) .elementor-button-icon svg{width:var(--dc-iw,1em);height:var(--dc-ih,auto);flex:none}
body :where(.dc-ico-end) .elementor-button-icon svg{order:9}
body :where(.dc-text-sr) .elementor-button-text{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Icon widget on a design element (<span class="loc-ic"><svg/></span>): the
   design's class is on the wrapper and the svg sits directly inside it. */
body :where(.dc-w) .elementor-icon-wrapper > .elementor-icon{display:contents;color:inherit;font-size:inherit}
body :where(.dc-w) .elementor-icon-wrapper > .elementor-icon > svg{width:var(--dc-iw,1em);height:var(--dc-ih,1em);position:static;display:block}

/* Elementor shrinks a linked SVG picture to 48px wide
   (.elementor-widget-image a img[src$=".svg"]) — a design logo keeps its own
   size (set by the design's height + width:auto). */
body.dc .elementor-widget-image.dc-w a img[src$=".svg"]{width:auto}
