/* Auth-aware header slot for the public Hemlock marketing site */
.auth-nav-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 40px;
}

/* Avoid a signed-out/signed-in flash before the cookie bootstrap runs */
html:not(.hk-auth-ready) .auth-nav-slot .nav-cta-signin,
html:not(.hk-auth-ready) .auth-nav-slot .auth-nav-profile {
  visibility: hidden;
}

html.hk-auth-in .auth-nav-slot .nav-cta-signin {
  display: none !important;
}

html.hk-auth-out .auth-nav-slot .auth-nav-profile {
  display: none !important;
}

.auth-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #585961;
  background: #2a2a2a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
}

.auth-nav-avatar:hover,
.auth-nav-avatar[aria-expanded='true'] {
  border-color: var(--lav, #aab7ff);
}

.auth-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(240px, calc(100vw - 24px));
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #3a3a40;
  background: #171717;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.auth-nav-dropdown[hidden] {
  display: none !important;
}

.auth-nav-dropdown a,
.auth-nav-dropdown button.auth-nav-signout {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: #f7f7f8;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.auth-nav-dropdown a:hover,
.auth-nav-dropdown button.auth-nav-signout:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
}

.auth-nav-dropdown-sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .auth-nav-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }
}
