/* =========================================================
   WordPress and Elementor adjustments
   ========================================================= */

/* The widgets draw their own full-width sections: remove Elementor's gaps around them. */
.site-main--elementor .elementor-widget-container {
  margin: 0;
  padding: 0;
}
.site-main--elementor .e-con,
.site-main--elementor .e-con-inner {
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  --container-max-width: none;
}
.site-main--elementor .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: none;
}
.site-main--elementor .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0;
}
.site-main--elementor .elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

/* Elementor sets "img { height: auto }" with a stronger selector: keep the logo size. */
.elementor .mpro__logo {
  height: 48px;
  width: auto;
}

/* Elementor editor: widgets re-render without the entrance animation, so show them right away. */
.elementor-editor-active [data-reveal],
.elementor-editor-active .line__in {
  opacity: 1 !important;
  transform: none !important;
}
.elementor-editor-active .header {
  position: absolute;
}

/* WordPress admin bar pushes the fixed header down. */
.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* Header logo: Migram mark is wider than tall. */
.header__logo {
  width: 112px;
  height: 32px;
}
.menu__top img {
  width: auto;
  height: 28px;
}
.footer__brand img {
  width: 150px;
  height: auto;
}

/* Language links side by side. */
.header__nav .nav-lang + .nav-lang {
  margin-left: -2px;
}

/* Text pages: WordPress block markup inside the legal article. */
.legal__article .wp-block-list,
.legal__article ul:not([role]) {
  padding-left: 1.2em;
}
.legal__article figure,
.legal__article .wp-block-group {
  margin: 0;
}

/* 404 */
.legal-hero--404 .btn-row {
  margin-top: 28px;
}

/* Screen-reader only text (WordPress convention). */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
