/* Shared navigation; brand colors remain in master-brand.css. */
:root {
  --master-header-gap: 1.5rem;
  --master-header-offset: 6rem;
}

/* First keyboard stop; stays outside the layout until it receives focus. */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10001;
  max-width: calc(100vw - 2rem);
  padding: .75rem 1rem;
  border-radius: var(--brand-control-radius);
  background: var(--brand-color-text);
  color: var(--brand-color-background);
  font-weight: 700;
  line-height: 1.5;
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus {
  transform: translateY(0);
}

/* Webflow measures header.outerHeight(); include the floating bar's top gap. */
.navbar14_component {
  margin-top: 0;
  padding-top: var(--master-header-gap);
}

/* Native URL hashes use the same clearance as Webflow's animated links. */
#main-content,
main [data-section][id],
.privacy-page [id] {
  scroll-margin-top: calc(var(--master-header-offset) + 1rem);
}

.navbar14_button-wrapper .button {
  white-space: nowrap;
}

.footer4_link-list {
  flex-wrap: wrap;
  row-gap: .75rem;
}

.footer4_link-list .footer4_link {
  white-space: nowrap;
}

@media (max-width: 1279px) {
  /* Keep Webflow's native menu, but collapse before the full link list crowds. */
  .navbar14_component {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
  }

  .navbar14_menu-link-wrapper {
    border: var(--_ui-styles---stroke--border-width) solid var(--brand-header-border);
    border-radius: var(--_ui-styles---radius--large);
    flex-direction: column;
    width: 100%;
    padding: 2rem;
  }

  .navbar14_link {
    padding: .75rem 0;
    font-size: 1.125rem;
  }

  .navbar14_component .navbar14_menu-button {
    display: block;
    padding: 0;
    color: var(--brand-header-text);
  }

  .navbar14_menu-button.w--open {
    background-color: transparent;
  }

  .menu-icon2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-right: -.5rem;
  }

  .menu-icon2_line-top,
  .menu-icon2_line-middle,
  .menu-icon2_line-bottom {
    background-color: currentColor;
    width: 24px;
    height: 2px;
    padding: 0;
    transform-origin: center;
    transition: transform .3s ease, opacity .3s ease;
  }

  .menu-icon2_line-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  /* Follow Webflow's menu state for button, Escape and link-driven closing. */
  .navbar14_menu-button.w--open .menu-icon2_line-top {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar14_menu-button.w--open .menu-icon2_line-middle {
    opacity: 0;
  }

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

  .navbar14_button-wrapper {
    row-gap: 1rem;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
    margin-left: 0;
  }

  /* Webflow moves the open menu into its overlay below the fixed header. */
  .navbar14_component .w-nav-overlay,
  .navbar14_component .navbar14_menu {
    max-height: max(0px, calc(100vh - var(--master-header-offset) - 1rem - env(safe-area-inset-bottom, 0px)));
    max-height: max(0px, calc(100dvh - var(--master-header-offset) - 1rem - env(safe-area-inset-bottom, 0px)));
  }

  .navbar14_component .navbar14_menu {
    /* Webflow's [data-nav-menu-open] rule displays the open menu. */
    display: none;
    position: absolute;
    background-color: transparent;
    justify-content: center;
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: 1rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1279px) and (prefers-reduced-motion: reduce) {
  .navbar14_menu-button .menu-icon2_line-top,
  .navbar14_menu-button .menu-icon2_line-middle,
  .navbar14_menu-button .menu-icon2_line-bottom {
    transition: none;
  }
}

@media (min-width: 1280px) {
  .navbar14_menu-links {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .navbar14_logo-link {
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  .footer4_top-wrapper {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (min-width: 1280px) and (max-width: 1399px) {
  .navbar14_container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar14_link {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .navbar14_button-wrapper {
    margin-left: 1rem;
    gap: .75rem;
  }
}

@media (max-width: 767px) {
  :root {
    --master-header-gap: 1.25rem;
    --master-header-offset: 5.25rem;
  }

  .navbar14_menu-link-wrapper {
    padding: 1.25rem;
  }

  .footer4_link-list {
    row-gap: 1.5rem;
  }
}
