/* ============================================================
   Nav dropdown overlay + scroll lock
   Requires: a div with class "nav-overlay" as a sibling of the navbar,
   and the navbar positioned with z-index: 1000.
   ============================================================ */

/* Overlay: hidden by default, never blocks clicks while hidden */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999; /* below the navbar (1000), above page content */
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Show the overlay while any dropdown is open
   (not inside the open mobile menu: there it would cover the links) */
body:has(.w-dropdown-list.w--open):not(:has(.w-nav-button.w--open)) .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s;
}

/* Lock page scroll while a dropdown is open */
html:has(.w-dropdown-list.w--open):not(:has(.w-nav-button.w--open)) {
  overflow: hidden;
}

/* Stop the page shifting sideways when the scrollbar disappears */
html {
  scrollbar-gutter: stable;
}

/* ============================================================
   Burger icon -> X while the mobile menu is open
   (Webflow adds .w--open to .w-nav-button)
   ============================================================ */
.menu-icon1_line-top,
.menu-icon1_line-middle,
.menu-icon1_line-bottom {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.w-nav-button.w--open .menu-icon1_line-top {
  transform: translateY(8px) rotate(45deg);
}

.w-nav-button.w--open .menu-icon1_line-middle {
  opacity: 0;
}

.w-nav-button.w--open .menu-icon1_line-bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   Mobile dropdown chevron: keep it centred on the label and
   rotating in place (the toggle grew to 60px when open, with
   items aligned to the top, so the chevron jumped while turning)
   ============================================================ */
@media screen and (max-width: 991px) {
  .nav_dropdown-toggle {
    align-items: center;
  }

  .nav_dropdown-toggle.w--open {
    height: auto;
  }

  .nav_dropdown-toggle .dropdown-chevron {
    display: flex;
    flex: none;
  }
}

/* ============================================================
   Heading levels fixed for accessibility (no more h1->h3 or
   h2->h4 jumps). These rules keep each heading looking exactly
   as it did at its old level.
   ============================================================ */

/* Release notes + privacy policy: h3 -> h2 inside the rich text */
.list-square h2 {
  font-size: var(--_primitives---typography-scale--type-24);
  letter-spacing: -.02em;
  line-height: 120%;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Feature card titles: h4 -> h3 (small) / h2 (large) */
.feature-sm-top_title,
.feature-lg-top_title {
  letter-spacing: inherit;
  line-height: 24px;
}

/* Home logo strip tagline: h3 -> h2 */
h2.text-tagline-text {
  line-height: 120%;
}

/* ============================================================
   Language switcher: Webflow's native Locales list marks the
   current language with .w--current, which can't be styled
   from the Designer's API, so it's styled here
   ============================================================ */
.lang-link.w--current {
  font-weight: 600;
  color: var(--_brading---colors--green-darker);
}

/* Native list: no bullets or indent, links stacked in the
   dropdown and side by side in the mobile row */
.lang-list .w-locales-items,
.lang-inline .w-locales-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-inline .w-locales-list,
.lang-inline .w-locales-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
