/* ==========================================================================
   WordPress + Elementor compatibility. The design's own stylesheets in
   site/css are unchanged.
   ========================================================================== */

/* 1. Elementor wrappers (only used when a page mixes in Elementor's own
   widgets; pages built from this site's widgets print plain sections). */
body:not(.hal-editing) .hal-page,
body:not(.hal-editing) .e-con:has(> .elementor-widget[data-widget_type^="hal-"]),
body:not(.hal-editing) .e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="hal-"]),
body:not(.hal-editing) .e-con-inner:has(> .elementor-widget[data-widget_type^="hal-"]),
body:not(.hal-editing) .elementor-widget[data-widget_type^="hal-"] {
  display: contents;
}
.e-con:has(> .elementor-widget[data-widget_type^="hal-"]),
.e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="hal-"]) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --content-width: 100%; --container-max-width: 100%;
}
.elementor-widget[data-widget_type^="hal-"] { width: 100%; margin-block: 0 !important; --kit-widget-spacing: 0px; }

/* 2. Elementor editor preview: show everything immediately (scroll
   animations and the preloader would hide sections while editing). */
.hal-editing .wow,
.hal-editing [data-wow-delay] { visibility: visible !important; animation: none !important; opacity: 1 !important; }
.hal-editing .preloader { display: none !important; }

/* 3. Forms */
.hal-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hal-form-status { margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.hal-form-status:empty { display: none; }
.hal-form-status.is-error { color: #e0675a; }
form[data-site-form] button[disabled] { opacity: .6; cursor: wait; }

/* 4. Plain (non-Elementor) pages, posts, search results, 404 */
.entry { font-size: 17px; line-height: 1.75; }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry a:not(.theme-btn) { text-decoration: underline; text-underline-offset: 3px; }
.entry img { height: auto; max-width: 100%; }
.entry__item + .entry__item { margin-top: 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
