/* Shared CellPPD-MOD 2.0 header/navigation styles.
   General site styles remain in assets/css/style.css. */
/* Navigation layout and dropdown fixes */
  header.masthead .masthead__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  header.masthead #sitenav.nav {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.8rem);
  }

  header.masthead #sitenav.nav > a,
  header.masthead #sitenav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  header.masthead #sitenav .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  header.masthead #sitenav .dropdown-toggle {
    gap: .4rem;
    border: 0;
    margin: 0;
    padding: .65rem 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }

  header.masthead #sitenav .dropdown-toggle .caret {
    font-size: .75em;
    transition: transform .2s ease;
  }

  header.masthead #sitenav .nav-dropdown.is-open .dropdown-toggle .caret {
    transform: rotate(180deg);
  }

  header.masthead #sitenav .dropdown-menu {
    display: none;
    position: absolute !important;
    top: calc(100% + .35rem);
    left: 0;
    z-index: 2000;
    min-width: 215px;
    width: max-content;
    max-width: min(280px, 90vw);
    flex-direction: column;
    padding: .4rem 0;
    margin: 0;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: .5rem;
    box-shadow: 0 10px 26px rgba(13, 27, 42, .14);
  }

  /* Bridge the gap between the toggle and the menu so hover is not lost on the way down. */
  header.masthead #sitenav .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -.6rem;
    height: .6rem;
  }

  header.masthead #sitenav .nav-dropdown:hover > .dropdown-menu,
  header.masthead #sitenav .nav-dropdown:focus-within > .dropdown-menu,
  header.masthead #sitenav .nav-dropdown.is-open > .dropdown-menu {
    display: flex !important;
  }

  header.masthead #sitenav .dropdown-menu a {
    display: block;
    padding: .7rem 1rem;
    line-height: 1.35;
    white-space: nowrap;
    color: #243447;
    text-decoration: none;
  }

  header.masthead #sitenav .dropdown-menu a:hover,
  header.masthead #sitenav .dropdown-menu a:focus-visible {
    background: #f1f5f9;
    color: #0d1b2a;
  }

  @media (max-width: 900px) {
    header.masthead .masthead__in {
      flex-wrap: wrap;
    }

    header.masthead #sitenav.nav {
      flex-wrap: wrap;
      gap: .5rem 1.1rem;
    }
  }

  @media (max-width: 700px) {
    /* Keep the mobile navigation collapsed until the hamburger is clicked. */
    header.masthead #sitenav.nav {
      display: none !important;
      align-items: stretch;
      flex-direction: column;
      width: 100%;
      gap: .2rem;
    }

    /* header.js adds this class when the hamburger is clicked. */
    header.masthead #sitenav.nav.is-open {
      display: flex !important;
    }

    header.masthead #sitenav .nav-dropdown {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
    }

    header.masthead #sitenav .dropdown-toggle {
      justify-content: space-between;
      width: 100%;
      text-align: left;
    }

    header.masthead #sitenav .dropdown-menu {
      position: static !important;
      width: 100%;
      max-width: none;
      min-width: 0;
      margin: .1rem 0 .4rem;
      box-shadow: none;
      border-radius: .35rem;
    }

    header.masthead #sitenav .dropdown-menu::before {
      display: none;
    }

    header.masthead #sitenav .dropdown-menu a {
      white-space: normal;
      padding-left: 1.25rem;
    }
  }