/* ==========================================================================
   WordPress + Elementor compatibility. assets/css/style.css is the original
   design, unchanged; everything WordPress needs on top of it lives here.
   ========================================================================== */

/* 1. Elementor wrappers ------------------------------------------------------
   On the live site the containers around this theme's sections are taken out
   of the layout (display: contents), so each <section> sits directly in the
   page exactly as in the static build. That keeps sticky elements such as
   the in-page sub-navigation working, and adds no spacing. In the Elementor
   editor the wrappers stay, so its handles and drop zones work. */

body:not(.aaa-editing):not(.elementor-editor-active) .aaa-page,
body:not(.aaa-editing):not(.elementor-editor-active) .elementor:has(.elementor-widget[data-widget_type^="aaa-"]),
body:not(.aaa-editing):not(.elementor-editor-active) .e-con:has(> .elementor-widget[data-widget_type^="aaa-"]),
body:not(.aaa-editing):not(.elementor-editor-active) .e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="aaa-"]),
body:not(.aaa-editing):not(.elementor-editor-active) .e-con-inner:has(> .elementor-widget[data-widget_type^="aaa-"]),
body:not(.aaa-editing):not(.elementor-editor-active) .elementor-widget[data-widget_type^="aaa-"] {
  display: contents;
}

/* Editor: neutralise container spacing around our sections. */
.e-con:has(> .elementor-widget[data-widget_type^="aaa-"]),
.e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="aaa-"]) {
  --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%;
  --margin-top: 0px; --margin-bottom: 0px;
}
.elementor-widget[data-widget_type^="aaa-"] { width: 100%; margin-block: 0 !important; --kit-widget-spacing: 0px; }

/* 2. Newsletter form status + spam trap ----------------------------------- */
.aaa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.aaa-form-status { margin-top: 12px; font-size: 14px; min-height: 1.2em; }
.aaa-form-status:empty { display: none; }

/* 3. Plain (non-Elementor) pages, posts and the 404 ---------------------- */
.entry { padding-block: 10px 40px; font-size: 17px; line-height: 1.75; }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { margin-top: 1.6em; line-height: 1.3; }
.entry a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.entry ul { list-style: disc; padding-left: 1.3em; }
.entry ol { list-style: decimal; padding-left: 1.3em; }
.entry img { border-radius: 14px; height: auto; }
.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; }

/* 4. Admin bar: the sticky header sits below it. */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
