/* Shared DataHub navigation baseline. */
html body .topbar {
  min-height: 0;
}

html body .topbar-shell {
  position: relative;
  min-height: 72px;
  gap: 28px;
  padding-right: 0;
}

html body .topbar:has(.account-menu) .topbar-shell {
  padding-right: min(208px, max(0px, calc(822px - 50vw)));
}

html body .topbar > .account-menu {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 120;
  display: flex;
  width: auto;
  justify-content: flex-end;
  padding: 0;
  transform: translateY(-50%);
}

html body .topbar > .account-menu .account-button,
html body .topbar > .account-menu .account-button.is-logged-in {
  width: auto;
  min-width: 0;
  max-width: 184px;
  height: 34px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid #047c72 !important;
  border-radius: 7px;
  background: #047c72 !important;
  color: #f7f9f5 !important;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

html body .topbar > .account-menu .account-button:hover,
html body .topbar > .account-menu .account-button.is-logged-in:hover {
  border-color: #056d65 !important;
  background: #056d65 !important;
}

html body .topbar > .account-menu .account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  min-width: 132px;
  padding: 8px;
  border: 1px solid #dbe3da;
  border-radius: 8px;
  background: #f7f9f5;
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.12);
}

html body .topbar > .account-menu .account-dropdown[hidden] {
  display: none;
}

html body .topbar > .account-menu .account-dropdown a,
html body .topbar > .account-menu .account-dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #171717;
  padding: 0 10px;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

html body .topbar > .account-menu .account-dropdown a:hover,
html body .topbar > .account-menu .account-dropdown button:hover {
  background: #e3faf3;
  color: #047c72;
}

html body .topbar .nav-menu a {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  html body .topbar-shell,
  html body .topbar:has(.account-menu) .topbar-shell { padding-right: 190px; }
  html body .topbar .nav-drawer { gap: 22px; }
  html body .topbar .nav-menu { gap: 18px; }
  html body .topbar .searchbox { width: 120px; }
  html body .topbar > .account-menu { right: 24px; }
  html body .topbar > .account-menu .account-button,
  html body .topbar > .account-menu .account-button.is-logged-in { max-width: 166px; }
}

@media (min-width: 981px) and (max-width: 1150px) {
  html body .topbar:has(.nav-menu a[href="/skill/"]) .nav-menu {
    gap: 16px;
  }

  html body .topbar:has(.nav-menu a[href="/skill/"]) .searchbox {
    display: none;
  }
}

@media (max-width: 980px) {
  html body .topbar { min-height: 68px; }

  html body .topbar-shell,
  html body .topbar:has(.account-menu) .topbar-shell {
    min-height: 68px;
    flex-wrap: nowrap;
    gap: 10px;
    padding-right: 156px;
  }

  html body .topbar .brand-lockup {
    min-width: 0;
    max-width: calc(100vw - 190px);
  }

  html body .topbar .brand-logo {
    width: 40px;
    height: 40px;
  }

  html body .topbar .topmark {
    font-size: 1.34rem;
    white-space: nowrap;
  }

  html body .topbar .hamburger {
    position: absolute;
    right: 12px;
    top: 50%;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px;
    transform: translateY(-50%);
  }

  html body .topbar .hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  html body .topbar .hamburger.is-active span:nth-child(2) { opacity: 0; }
  html body .topbar .hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  html body .topbar > .account-menu {
    right: 76px;
    top: 34px;
    width: auto;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
  }

  html body .topbar > .account-menu .account-button,
  html body .topbar > .account-menu .account-button.is-logged-in {
    width: 98px;
    max-width: 98px;
    height: 36px;
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  html body .topbar > .account-menu .account-dropdown {
    right: 0;
    top: 42px;
  }

  html body .topbar .nav-drawer {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 110;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 24px 22px;
    border-top: 1px solid #dbe3da;
    border-bottom: 1px solid #dbe3da;
    background: #f7f9f5;
    box-shadow: 0 18px 44px rgba(32, 52, 39, 0.16);
  }

  html body .topbar .nav-drawer.is-open { display: flex; }

  html body .topbar .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  html body .topbar .nav-menu a {
    min-height: 34px;
    font-size: 16px;
  }

  html body .topbar .searchbox {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 390px) {
  html body .topbar-shell,
  html body .topbar:has(.account-menu) .topbar-shell { padding-right: 148px; }
  html body .topbar .topmark { font-size: 1.2rem; }
  html body .topbar .hamburger { right: 8px; }
  html body .topbar > .account-menu { right: 72px; }
  html body .topbar > .account-menu .account-button,
  html body .topbar > .account-menu .account-button.is-logged-in {
    width: 90px;
    max-width: 90px;
    font-size: 12px;
  }
}
