/* Shared navigation for every English page. */
:root {
  --site-nav-height: 56px;
}

#nav_bar,
#nav_bar * {
  box-sizing: border-box;
}

#nav_bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--site-nav-height);
  z-index: 999;
  background: #333437;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

#nav_bar .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

#nav_bar .logo {
  flex: 0 0 116px;
  width: 116px;
}

#nav_bar .logo img {
  display: block;
  width: 100%;
  height: auto;
}

#nav_bar .menu_bg {
  --nav-scrollbar-thumb: rgba(255, 255, 255, 0.24);
  --nav-scrollbar-hover: rgba(255, 255, 255, 0.4);
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

#nav_bar .menu_bg::-webkit-scrollbar {
  height: 3px;
  background: transparent;
}

#nav_bar .menu_bg::-webkit-scrollbar-track {
  background: transparent;
}

#nav_bar .menu_bg::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--nav-scrollbar-thumb);
}

#nav_bar .menu_bg::-webkit-scrollbar-thumb:hover {
  background: var(--nav-scrollbar-hover);
}

/* Use the standard thin scrollbar where WebKit styling is unavailable. */
@supports not selector(::-webkit-scrollbar) {
  #nav_bar .menu_bg {
    scrollbar-width: thin;
    scrollbar-color: var(--nav-scrollbar-thumb) transparent;
  }
}


#nav_bar .menu {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  gap: 32px;
  list-style: none;
}

#nav_bar .menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav_bar .menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

#nav_bar .menu a:hover {
  opacity: 0.7;
}

#nav_bar .menu a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.splite {
  padding-top: var(--site-nav-height);
}

.page_spacer {
  height: var(--site-nav-height);
}

@media screen and (max-width: 800px) {
  :root {
    --site-nav-height: 104px;
  }

  #nav_bar .nav {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  #nav_bar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 160px;
    height: 56px;
    padding: 8px;
  }

  #nav_bar .logo img {
    width: 80%;
  }

  #nav_bar .menu_bg {
    --nav-scrollbar-thumb: rgba(51, 52, 55, 0.22);
    --nav-scrollbar-hover: rgba(51, 52, 55, 0.38);
    flex: 0 0 48px;
    width: 100%;
    height: 48px;
    background: #eee;
  }

  #nav_bar .menu {
    min-width: 100%;
    gap: 0;
  }

  #nav_bar .menu a {
    height: 48px;
    color: #000;
    font-size: 14px;
  }
}
