html:has(body > .broker-header) {
  scroll-padding-top: 108px;
}
body > .broker-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #fff;
}
body > .broker-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
  pointer-events: none;
  content: "";
}
body:has(> .broker-header) > .skip {
  z-index: 71;
}

.mobile-nav-only {
  display: none;
}

@media (max-width: 760px) {
  .broker-header #navigation,
  .calculator-header #navigation {
    display: none;
    position: absolute;
    inset: 100% var(--navigation-edge, -14px) auto;
    z-index: 60;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 16px 12px;
    border: 0;
    border-top: 1px solid var(--line, #e2e5e0);
    background: #fff;
    box-shadow: 0 12px 24px #25272514;
    font-size: 1rem;
    text-align: left;
    white-space: normal;
  }

  .broker-header #navigation.open,
  .calculator-header #navigation.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  #navigation.open > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
    border-bottom: 1px solid var(--line, #e2e5e0);
  }

  #navigation .mobile-nav-appointment {
    color: #c43a3d;
    font-weight: 750;
  }

  .broker-header:has(.menu[aria-expanded="true"]) > .appointment,
  .calculator-header:has(.menu[aria-expanded="true"]) > .calculator-contact {
    visibility: hidden;
  }
}
