/* Loaded after the page styles: fixes for the places where Elementor markup differs. */

/* Elementor sets line-height: 1 on titles; the static headings inherit theirs */
body:not(#tha) :where(.elementor-widget-heading) .elementor-heading-title { line-height: inherit; }

/* Treatment pages had <main> with top padding under the fixed header */
body.tp:not(#tha) :is([data-elementor-type="wp-page"], [data-elementor-type="archive"], [data-elementor-type="single-post"]) { padding-top: 76px; }
@media (max-width: 767px) { body.tp:not(#tha) :is([data-elementor-type="wp-page"], [data-elementor-type="archive"], [data-elementor-type="single-post"]) { padding-top: 64px; } }

/* .prose spaces its children with "> * + *"; widget wrappers sit in between */
body:not(#tha) .prose > .elementor-widget + .elementor-widget-heading { margin-top: 18px; }
body:not(#tha) .prose > .elementor-widget + :is(.elementor-widget-text-editor, .elementor-widget-html) > :first-child,
body:not(#tha) .prose > .elementor-widget > * + * { margin-top: 18px; }

/* Article body: the post content widget sits between .post-body and the paragraphs */
body:not(#tha) .post-body :is(.elementor-widget-theme-post-content, .elementor-widget-theme-post-content > .elementor-widget-container) > * + * { margin-top: 1.1em; }
body:not(#tha) .post-body :is(.elementor-widget-theme-post-content, .elementor-widget-theme-post-content > .elementor-widget-container) > h2 { margin-top: 2.2em; }
body:not(#tha) .post-body :is(.elementor-widget-theme-post-content, .elementor-widget-theme-post-content > .elementor-widget-container) > h3 { margin-top: 1.8em; }
body:not(#tha) .post-body :is(.elementor-widget-theme-post-content, .elementor-widget-theme-post-content > .elementor-widget-container) > :is(h2, h3) + * { margin-top: .6em; }

/* Logged-in admin bar sits above the fixed header */
body.admin-bar:not(#tha) .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar:not(#tha) .nav { top: 46px; } }

/* Editor canvas: show everything that JS would normally reveal */
.elementor-editor-active .loader, .elementor-editor-active .grain { display: none !important; }
.elementor-editor-active [data-reveal] { opacity: 1 !important; transform: none !important; }
.elementor-editor-active.is-loading { overflow: auto; }

/* Headings that carried a class in the static page: the class is on the widget, the title inherits its type */
:where(.elementor-widget-heading.big, .elementor-widget-heading.cost__title, .elementor-widget-heading.h-xl, .elementor-widget-heading.h2, .elementor-widget-heading.scene__title, .elementor-widget-heading.sr-only) .elementor-heading-title{font:inherit;letter-spacing:inherit;color:inherit;text-wrap:inherit;text-transform:inherit}
