/* ==========================================================================
   Elementor bridge. Loaded only on pages built with Elementor (inc/elementor.php).
   Elementor's generic CSS is imported into @layer elementor, so every theme rule
   (unlayered) wins. Theme classes sit on containers and on Heading / Image widget
   wrappers; Text Editor, Button and HTML widgets carry the classes in their markup.
   ========================================================================== */
@layer elementor, premier-elementor;

/* Neutral defaults: Elementor containers add no padding, gaps or width caps of their own.
   Values set per element in the editor (post-{id}.css, unlayered) still override these. */
@layer premier-elementor {
  .e-con{
    --padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;
    --gap:0px;--row-gap:0px;--column-gap:0px;
    --widgets-spacing:0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;
    --container-max-width:none;
    transition:none;
  }
  /* Containers that carry theme classes (" p-…") start from plain CSS defaults, exactly like
     the original <section>/<div>/<article>; the theme class then sets display, gap, padding etc.
     Containers without theme classes (added later in the editor) keep Elementor's flex layout. */
  .e-con:is([class*=" p-"]){
    display:block;flex-direction:row;flex-wrap:nowrap;align-items:normal;align-content:normal;justify-content:normal;
    gap:normal;width:auto;max-width:none;min-width:auto;height:auto;min-height:auto;margin:0;padding:0;
    overflow:visible;border-radius:0;text-align:inherit;z-index:auto;
  }
  .elementor-widget:is([class*=" p-"]){min-width:auto;max-width:none}
  /* Button widget used as a theme text link (.p-link): drop Elementor's button chrome. */
  .elementor-button.p-link{background:none;padding:0;border-radius:0;fill:currentColor}
  /* Live site: wrappers are not positioning contexts (whole-card links use the card). */
  body:not(.elementor-editor-active) .e-con{--position:static}
  body:not(.elementor-editor-active) .elementor-widget{position:static}
}

/* Live site: widgets whose markup carries the theme classes behave as if unwrapped,
   so <p>, <a class="p-btn">, <ul> etc. are direct flex/grid children as before. */
body:not(.elementor-editor-active) :is(.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html){display:contents}

/* Buttons and links: Elementor's inner spans dissolve; label + arrow become flex items of the <a>. */
.elementor-button:is(.p-btn,.p-link) .elementor-button-content-wrapper,
.elementor-button:is(.p-btn,.p-link) .elementor-button-text{display:contents}

/* Headings: the theme class is on the widget wrapper; the inner tag takes its type from it.
   :where() keeps this below rules such as .p-prose h2. */
:where(.elementor-widget-heading) > .elementor-heading-title{font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;margin:0}
:where(.elementor-widget-heading:has(> h1, > h2, > h3, > h4, > h5, > h6)){font-family:var(--p-font-head);font-weight:700;letter-spacing:-0.02em}
.p-article__title > .elementor-heading-title > span,
.p-contact-intro__title > .elementor-heading-title > span{display:block}

/* Media boxes built as a container around an Image widget (image + badge). */
:is(.p-card__media,.p-model__media,.p-story__media,.p-tipper__photo,.p-social__post,.p-media-fill) > .elementor-widget-image{width:100%;height:100%}
.elementor-widget-image > img{display:block}

/* FAQ: Elementor Accordion (nested) styled as the theme spec accordion (.p-spec / .p-acc). */
.p-faq-acc .e-n-accordion{display:flex;flex-direction:column;gap:24px}
.p-faq-acc .e-n-accordion-item{background:var(--p-surface);border-radius:var(--p-radius-m)}
.p-faq-acc .e-n-accordion-item-title{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:24px;min-height:69px;padding:24px;border:0;border-radius:var(--p-radius-m);background:none;font:700 18px/1.15 var(--p-font-head);color:var(--p-text);cursor:pointer;list-style:none}
.p-faq-acc .e-n-accordion-item-title::-webkit-details-marker{display:none}
.p-faq-acc .e-n-accordion-item-title-header,.p-faq-acc .e-n-accordion-item-title-text{display:contents;font:inherit;color:inherit}
.p-faq-acc .e-n-accordion-item-title-icon{position:relative;display:inline-block;flex:none;order:0;width:10px;height:10px;color:inherit}
.p-faq-acc .e-n-accordion-item-title-icon > span{display:none}
.p-faq-acc .e-n-accordion-item-title-icon::before,
.p-faq-acc .e-n-accordion-item-title-icon::after{content:"";position:absolute;left:0;right:0;top:50%;height:1.6px;margin-top:-.8px;background:currentColor;border-radius:1px;transition:transform var(--p-t-accordion) var(--p-ease)}
.p-faq-acc .e-n-accordion-item-title-icon::after{transform:rotate(90deg)}
.p-faq-acc details[open] > summary .e-n-accordion-item-title-icon::after{transform:rotate(0deg)}
/* Answer pane: no Elementor border; .p-spec__body sets the padding. */
.p-faq-acc .e-n-accordion-item > .e-con{border:0;border-radius:0;background:none}
@media (prefers-reduced-motion: reduce){.p-faq-acc .e-n-accordion-item > .e-con{animation:none!important;transition:none!important}}
/* Editor preview: the inline-editing span around a button label dissolves too. */
.elementor-button:is(.p-btn,.p-link) .elementor-inline-editing{display:contents}
