/* Guard header flex layout when legacy Bootstrap Reboot is loaded on a page */
@media (width >= 48rem) {
  header.bg-cricket-green > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header.bg-cricket-green > div > div:first-child {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  header.bg-cricket-green nav.hidden {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.pages-nav-classification-trigger {
  text-transform: uppercase;
}

.pages-nav-classification-menu {
  min-width: 240px;
}

.pages-nav-classification-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: #1c221f;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.pages-nav-classification-item:hover {
  background-color: #f3f4f3;
  color: #079d50;
}

.pages-nav-classification-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pages-nav-classification-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pages-nav-classification-icon--orange {
  background: linear-gradient(180deg, #fbbf24 0%, #f97316 100%);
}

.pages-nav-classification-icon--green {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.pages-nav-classification-icon--blue {
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
}

.pages-nav-classification-icon .material-symbols-outlined {
  color: #fff;
  font-size: 1rem;
}

/* User profile dropdown */
.pages-user-dropdown-trigger {
  background: none;
  border: none;
  padding: 0;
}

.pages-user-dropdown-menu {
  min-width: 20rem;
}

.pages-user-badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
}

.pages-user-badge--uid {
  background-color: #079d50;
}

.pages-user-badge--group {
  background-color: #0891b2;
}

.pages-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #5c6670;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pages-user-dropdown-item:hover {
  background-color: #f3f4f3;
  color: #079d50;
}

.pages-user-dropdown-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  text-align: center;
  color: #e11d48;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.pages-user-dropdown-logout:hover {
  background-color: #fff1f2;
  color: #be123c;
}

.pages-user-dropdown.is-open .pages-user-dropdown-menu {
  display: block;
}
