/* Quest Serengeti logo asset, kept at a clean display size for sharpness. */
.brand {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

.brand-logo {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: clamp(62px, 4.8vw, 76px) !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6)) !important;
}

.site-header .brand {
  width: clamp(220px, 22vw, 260px) !important;
}

.site-header .main-nav {
  overflow: visible !important;
}

.footer-brand .brand-logo {
  width: auto !important;
  height: clamp(68px, 6vw, 86px) !important;
}

.admin-brand .brand-logo {
  width: auto !important;
  height: 64px !important;
}

@media (max-width: 980px) {
  .site-header .brand {
    width: clamp(214px, 28vw, 250px) !important;
  }

  .site-header .brand-logo {
    height: clamp(60px, 6vw, 72px) !important;
  }
}

@media (max-width: 760px) {
  body:not(.mobile-menu-open) .site-header .brand {
    width: min(100%, 204px) !important;
    min-width: 0 !important;
    justify-self: center !important;
  }

  body:not(.mobile-menu-open) .site-header .brand-logo {
    height: 50px !important;
    object-position: center center !important;
  }

  body.mobile-menu-open .site-header .brand-logo {
    height: 50px !important;
  }
}

@media (max-width: 430px) {
  body:not(.mobile-menu-open) .site-header .brand {
    width: min(100%, 190px) !important;
  }

  body:not(.mobile-menu-open) .site-header .brand-logo {
    height: 46px !important;
  }
}

@media (max-width: 390px) {
  body:not(.mobile-menu-open) .site-header .brand {
    width: min(100%, 180px) !important;
  }

  body:not(.mobile-menu-open) .site-header .brand-logo {
    height: 42px !important;
  }
}

@media (max-width: 340px) {
  body:not(.mobile-menu-open) .site-header .brand {
    width: min(100%, 150px) !important;
  }

  body:not(.mobile-menu-open) .site-header .brand-logo {
    height: 36px !important;
  }
}

/* Header profile avatar: centered, circular, and stable across nav states. */
.site-header .client-profile {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  line-height: 0 !important;
}

.site-header .client-chip,
body.mobile-menu-open .site-header .client-chip,
.site-header .nav-actions.is-open .client-chip {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #1f241b !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

.site-header .client-chip:hover,
.site-header .client-chip[aria-expanded="true"] {
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

.site-header .client-avatar {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f6cf73, #d5a531 56%, #b77a17) !important;
  color: #1f241b !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.site-header .client-avatar img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
}

.site-header .client-avatar span,
.site-header .client-profile-avatar span {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  body.mobile-menu-open .site-header .client-chip,
  .site-header .nav-actions.is-open .client-chip {
    flex-basis: 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 4px !important;
    box-shadow: none !important;
  }
}
