/* Shared image link in the top navigation. */
#nav .nav-links .nav-tone3000 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  vertical-align: middle;
}

#nav .nav-tone3000 img {
  display: block;
  width: auto;
  height: 14px;
  max-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#nav .nav-tone3000:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Leave room for the extra link and longer translated navigation labels. */
@media (min-width: 769px) and (max-width: 1199px) {
  #nav .nav-links { display: none; }
  #nav .nav-mobile-toggle { display: flex; }
  #nav .nav-tools { margin-left: auto; margin-right: 16px; }

  .mobile-nav-open #nav .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 6, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
  }
}

@media (max-width: 1199px) {
  .mobile-nav-open #nav .nav-links {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
}
