/* Site-wide custom styles */

/* Keep long names and additional role links from pushing the account menu out. */
.navbar-brand {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar .dropdown-menu {
  max-height: 65vh;
  max-width: calc(100vw - 2rem);
  overflow-y: auto;
}

.navbar .dropdown-item {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 1200px) {
  .navbar-brand { max-width: 25%; }
  .navbar-collapse { min-width: 0; }
  .navbar-nav { flex-wrap: wrap; min-width: 0; }
  .navbar-nav .nav-item { min-width: 0; max-width: 100%; }
  .navbar-nav .nav-link { overflow-wrap: anywhere; }
  .navbar-account { flex-shrink: 0; }
  #accountMenuDropdown {
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Generic circular avatar base */
.avatar {
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

/* Common sizes */
.avatar-28 { width: 28px; height: 28px; }
.avatar-32 { width: 32px; height: 32px; }
.avatar-40 { width: 40px; height: 40px; }

/* Convenience spacing when placed before text */
.avatar + .avatar-text,
.avatar + a,
.avatar + span,
.avatar + strong {
  margin-left: 8px;
}

/* Spacing and layout for multi-select checkboxes and radio buttons */
.checkbox-select-wrapper,
.radio-select-wrapper {
  display: flow-root;
  width: 100%;
  clear: both;
}

/* Ensure the row inside the wrapper doesn't collapse */
.checkbox-select-wrapper .row,
.radio-select-wrapper .row {
  margin-right: 0;
  margin-left: 0;
}

.checkbox-select-wrapper .col,
.radio-select-wrapper .col {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Marketing landing page team directory */
.team-list-scroll {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.team-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.team-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.team-list-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.placeholder-light::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  background: linear-gradient(var(--bs-border-color), var(--bs-border-color)) center / 100% 2px no-repeat;
}

.wizard-step-marker {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--bs-secondary-color);
  border-radius: 50%;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 0.75rem;
  line-height: 1;
}

.wizard-step-current {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
  font-weight: bold;
}
