.site-top-header__row {
  max-width: 1280px;
  min-height: 64px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.site-top-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  color: #374151;
  text-decoration: none;
}

.site-top-header__nav-link img { width: 18px; height: 18px; flex: none; }
.site-top-header__nav-link:hover { color: #047857; }
.site-top-header__nav-link:focus-visible,
.site-top-header__menu-toggle:focus-visible { outline: 2px solid #047857; outline-offset: 2px; }
.site-top-header__desktop-auth { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; white-space: nowrap; }
.site-top-header__search { width: clamp(104px, 12vw, 256px); }
.site-top-header__compact { display: none; }

@media (max-width: 959px) {
  .site-top-header__row { min-height: 56px; padding-inline: clamp(10px, 4vw, 24px); gap: 8px; }
  .site-top-header__desktop-auth { display: none; }
  .site-top-header__compact { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .site-top-header__menu-icon { display: grid; gap: 4px; }
  .site-top-header__menu-icon i { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
  .site-top-header__mobile-nav .site-top-header__nav-link { display: flex; padding-inline: 4px; font-size: 16px; min-height: 52px; }
  .site-top-header__mobile-nav .site-top-header__nav-link:hover { background: #edf7f0; }
  .site-top-header__mobile-login { border-block-start: 1px solid #e5e7eb; margin-block-start: 8px; }
}

/* The native modal isolates background focus. */
.site-top-header__menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #253c2e;
  cursor: pointer;
}
.site-top-header__menu-toggle:hover { background: #edf7f0; }
.site-top-header__dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  padding: max(6px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border: 0;
  background: #fff;
  color: #18291d;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-top-header__dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-block-end: 1px solid #e0ebe1;
  margin-block-end: 12px;
}
.site-top-header__dialog-bar h2 { margin: 0; font-size: 17px; font-weight: 650; }
@media (max-width: 959px) {
  html:has(.site-top-header__dialog[open]) { overflow: hidden; }
}

/* The compact CTA replaces the header CTA only once the hero control has scrolled past. */
.site-top-floating-cta { display: none; }
@media (max-width: 959px) {
  .site-top-floating-cta:not([hidden]) {
    position: fixed;
    inset: auto auto calc(12px + env(safe-area-inset-bottom)) 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 32px);
    min-height: 50px;
    padding: 10px 26px;
    border-radius: 999px;
    background: #08714f;
    color: #fff;
    box-shadow: 0 5px 18px #0f392c40;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
  }
  .site-top-floating-cta:not([hidden]):hover { background: #045a3e; color: #fff; }
  .site-top-floating-cta:focus-visible { outline: 3px solid #08714f; outline-offset: 3px; }
  body:has(.site-top-floating-cta:not([hidden])) {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  html:has(.site-top-floating-cta:not([hidden])) {
    scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  html:has(.site-top-header__dialog[open], #cookie-consent-banner:not([hidden])) .site-top-floating-cta:not([hidden]) {
    display: none;
  }
}

.site-top-header__dialog[open] { display: flex; flex-direction: column; }
.site-top-header__dialog-footer { order: 10; flex: none; margin-block-start: auto; padding-block-start: 24px; }
.site-top-header__dialog-close {
  display: flex; align-items: center; justify-content: center; width: min(100%,320px);
  min-height: 48px; margin-inline: auto; padding: 8px 20px; border: 1px solid #047857;
  border-radius: 999px; color: #065f46; background: #fff; font: inherit; cursor: pointer;
}
.site-top-header__dialog-close:hover { background: #edf7f0; }
.site-top-header__dialog-close:focus-visible { outline: 3px solid #047857; outline-offset: 3px; }

.site-top-header__nav-home { margin-inline-start: 48px; }
.site-top-header__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.site-top-header__dialog .site-top-header__links { display: grid; gap: 0; }
.site-top-header__dialog .site-top-header__mobile-login { border-block-start: 1px solid #e0ebe1; margin-block-start: 8px; }
@media (max-width: 959px) {
  .site-top-header__nav-home { display: none; }
}
