/* ==========================================================================
   PULS FØRDE — Elementor/JetEngine neutralisation for the native build.
   Loaded BEFORE main.css and components.css on purpose: everything here is a
   default the design system is allowed to override with a single class.
   See inc/native.php.
   ========================================================================== */

/* A container that carries a puls-* class is a design-system box: no padding
   or gap of its own, and it lays out as a BLOCK, so margins collapse exactly
   as in the hand-written markup, and a label or a pill keeps its own width
   instead of being stretched as a flex item. `:where()` keeps the rule at one
   class, so a design-system class that says grid or flex (later in the
   cascade) still wins; the per-page CSS from Elementor only sets the --display
   variable, which this no longer reads. Row direction for the flex ones is a
   real Elementor setting (flex_direction: row). */
.e-con[class*="puls-"] {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --width: auto;
}
.e-con:where([class*="puls-"]) { display: block; }

/* Headings. With the default fonts of Elementor off, an h1-h4 takes the display
   face from main.css. The WRAPPER of a heading widget carries the same face,
   so `ch` widths and inherited values resolve against the right font, and a
   heading widget with a puls-* class takes size, weight, width axis, tracking
   and leading from that class. A heading set to p/span/div is running text. */
:where(.elementor-widget-heading:has(> :is(h1, h2, h3, h4, h5, h6))) {
  font-family: var(--fd);
  font-variation-settings: 'wdth' var(--wd);
  line-height: .98;
  letter-spacing: -.02em;
}
:where(.elementor-widget-heading[class*="puls-"]) > .elementor-heading-title {
  font-family: inherit; font-size: inherit; font-weight: inherit; font-variation-settings: inherit;
  letter-spacing: inherit; line-height: inherit; text-transform: inherit;
}
.elementor-widget-heading > :is(p, span, div).elementor-heading-title {
  font: inherit; font-variation-settings: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; max-width: none;
}
/* Elementor sets line-height:1 on every heading title; the design system uses .98. */
:where(.elementor-widget-heading:not([class*="puls-"])) > :is(h1, h2, h3, h4).elementor-heading-title { line-height: .98; }
.elementor-widget-heading .elementor-heading-title { color: inherit; text-wrap: balance; }

.elementor-widget-text-editor { color: inherit; font-family: inherit; }

/* JetEngine listings: no gutters of their own; the grid class decides. */
.jet-listing-grid__items { margin: 0; }
.jet-listing-grid__item { padding: 0; }
.jet-listing-dynamic-field__content, .jet-listing-dynamic-link__link { font: inherit; color: inherit; }
