/* Keep the investor links in a compact panel, including on short screens. */
.navbar .dropdown-menu[aria-labelledby="investorDropdown"] {
  width: 200px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: min(320px, calc(100vh - 180px));
  max-height: min(320px, calc(100dvh - 180px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2bb5df #eef4f8;
  scrollbar-gutter: stable;
  padding: 5px;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 60, 119, 0.13);
  text-align: left;
}

.navbar .dropdown-menu[aria-labelledby="investorDropdown"] a {
  display: block;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: #0a3d78 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.navbar .dropdown-menu[aria-labelledby="investorDropdown"] a:hover,
.navbar .dropdown-menu[aria-labelledby="investorDropdown"] a:focus {
  background: #eef7ff;
  color: #0075ba !important;
}

.navbar .dropdown-menu[aria-labelledby="investorDropdown"] a:focus-visible {
  outline: 2px solid #2bb5df;
  outline-offset: -2px;
}

.navbar .dropdown-menu[aria-labelledby="investorDropdown"]::-webkit-scrollbar {
  width: 6px;
}

.navbar .dropdown-menu[aria-labelledby="investorDropdown"]::-webkit-scrollbar-track {
  background: #eef4f8;
  border-radius: 8px;
}

.navbar .dropdown-menu[aria-labelledby="investorDropdown"]::-webkit-scrollbar-thumb {
  background: #2bb5df;
  border: 1px solid #eef4f8;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu[aria-labelledby="investorDropdown"] {
    right: 0;
    left: auto;
  }
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu[aria-labelledby="investorDropdown"] {
    width: 100%;
    max-width: 100%;
    max-height: min(320px, 45vh);
    max-height: min(320px, 45dvh);
    margin: 8px 0;
  }
}
