/* Marcelle Widgets — small layer on top of the design stylesheet (lovable.css) */
html, body { overflow-x: clip; }

/* the design's body defaults (the theme/Elementor re-set them un-layered) */
html body[class] {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-size: 1rem;
  line-height: 1.7;
}

/*
 * The design's utility classes live in CSS cascade layers, so any un-layered rule from the theme or Elementor
 * (img{height:auto}, a{color}, h1{margin}, button{padding}...) would override them. Inside our widgets we roll every
 * property back to the layered (design) value. Inline styles and the rules below (higher specificity) still win.
 */
.elementor .elementor-widget[class*="elementor-widget-mj_"] :where(*) { all: revert-layer; }

/* Elementor wrappers add no spacing around our widgets */
.elementor .elementor-widget[class*="elementor-widget-mj_"] { --kit-widget-spacing: 0px; margin-bottom: 0; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] > .elementor-widget-container { margin: 0; padding: 0; }

/* sticky header: the Theme Builder location wrapper sticks (its parent is the whole page) */
.elementor-location-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }

/* behaviours (scoped so they outrank the roll-back above) */
.elementor .elementor-widget[class*="elementor-widget-mj_"] .mj-menu { display: none; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] .mj-menu.is-open { display: block; }
@media (min-width: 1024px) { .elementor .elementor-widget[class*="elementor-widget-mj_"] .mj-menu.is-open { display: none; } }
.elementor .elementor-widget[class*="elementor-widget-mj_"] .mj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] .opacity-100 { opacity: 1; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] .translate-y-0 { transform: none; }

/* links keep the design's look (no theme underline); the design underlines its own links through .link-underline */
.elementor .elementor-widget[class*="elementor-widget-mj_"] a { text-decoration: none; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] .hover\:underline:hover { text-decoration: underline; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] .underline { text-decoration: underline; }

/* FAQ (native <details>): hide the marker, rotate the plus */
.elementor .elementor-widget[class*="elementor-widget-mj_"] details > summary { list-style: none; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] details > summary::-webkit-details-marker { display: none; }
.elementor .elementor-widget[class*="elementor-widget-mj_"] details[open] > summary > span[aria-hidden] { transform: rotate(45deg); }
