/* ==========================================================================
   Compatibility layer: lets the original parish stylesheet drive the
   Elementor markup unchanged.  Loaded BEFORE the scoped original CSS, so any
   rule in the original wins over these neutral defaults.
   ========================================================================== */

/* Elementor wrappers that the original markup does not have: take them out of
   layout so the original parent/child relationships (grids, flex rows) hold. */
body.olss .elementor-widget,
body.olss .elementor-widget-container,
body.olss .elementor-shortcode,
body.olss .elementor-shortcode > .elementor,
body.olss .elementor-text-editor,
body.olss .olss-contents,
body.olss .olss-chrome,
body.olss .olss-chrome > .elementor { display: contents; }

body.olss .elementor-widget,
body.olss .elementor-widget-container {
  color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit;
}

/* Elementor containers: neutral, unstyled boxes. Variables only, so the
   original class rules (display:grid, padding, gaps...) apply untouched. */
body.olss .elementor-element.e-con.e-con {
  --display: block;
  --flex-direction: row; --flex-wrap: nowrap; --flex-wrap-mobile: nowrap;
  --justify-content: normal; --align-items: normal; --align-content: normal;
  --flex-grow: 0; --flex-shrink: 1; --flex-basis: auto;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px; --widgets-spacing: 0px; --kit-widget-spacing: 0px;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --padding-block-start: 0px; --padding-block-end: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px;
  --margin-top: 0px; --margin-right: 0px; --margin-bottom: 0px; --margin-left: 0px;
  --margin-block-start: 0px; --margin-block-end: 0px; --margin-inline-start: 0px; --margin-inline-end: 0px;
  --container-default-padding-top: 0px; --container-default-padding-right: 0px;
  --container-default-padding-bottom: 0px; --container-default-padding-left: 0px;
  --width: auto; --height: auto; --min-height: initial; --content-width: none; --container-max-width: none;
  --position: static; --z-index: auto; --overflow: visible; --text-align: inherit;
  --border-radius: 0; --background-overlay: none; --overlay-opacity: 1; --overlay-mix-blend-mode: normal;
}
body.olss :where(.e-con) {
  height: auto; max-width: none; margin: 0; padding: 0; min-width: 0;
  transition: none; text-align: inherit; flex: initial;
}
body.olss :where(.e-con)::before { content: none; }
body.olss :where(.e-con.olss-contents, .olss-contents) { display: contents; }

/* Astra wrappers around Elementor pages */
body.olss .site-content,
body.olss #content { padding: 0; margin: 0; }
body.olss .site-content > .ast-container { display: block; max-width: none; width: 100%; padding: 0; margin: 0; }
body.olss .xpro-theme-builder-header,
body.olss .xpro-theme-builder-header-nav,
body.olss .xpro-theme-builder-header-nav > .elementor,
body.olss #xpro-theme-builder-footer,
body.olss #xpro-theme-builder-footer > .elementor,
body.olss .elementor.elementor-location-header,
body.olss .elementor.elementor-location-footer { display: contents; }

/* Astra/Elementor kit button, input and link defaults the original never had */
body.olss :where(button, button:hover, button:focus, input, textarea, select) { all: revert; }
body.olss :where(a) { box-shadow: none; }
body.olss :where(img) { border: 0; border-radius: 0; box-shadow: none; }

/* Editable text: TinyMCE may wrap stray text in <p>; keep it invisible to layout */
body.olss .elementor-widget-text-editor > p:empty { display: none; }

/* Contact form honeypot */
body.olss .olss-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.olss .form-status.is-sent { border-color: var(--sage); }
body.olss .xpro-theme-builder-header > .main-title { display: none; }

/* Astra theme globals the original never had */
html:has(> body.olss) { font-size: 100%; }  /* Astra shrinks html to 91.2% below 921px */
/* Astra's element defaults (table borders/margins, list indents, p/address/
   blockquote/hr margins, label sizing, link transitions...) roll back to the
   browser defaults the original was designed on; the original's own rules
   (higher specificity) still apply on top. */
body.olss :where(p, address, blockquote, dl, dt, dd, ol, ul, fieldset, legend, label,
  hr, pre, table, caption, td, th, small, big, abbr, acronym, figure,
  h1, h2, h3, h4, h5, h6, a):where(:not(#wpadminbar *, [hidden])) { all: revert; }

/* Astra scroll-to-top button: not part of the original design */
body.olss #ast-scroll-top { display: none !important; }
