.nav-wrap {
  /* Two links read as part of the brand group; centered they float in empty space. */
  justify-content: flex-start;
}
.nav-actions {
  margin-left: auto;
}
@media (min-width: 901px) {
  .nav-wrap {
    gap: 40px;
  }
}
.desktop-nav {
  gap: 32px;
  align-items: center;
}
.desktop-nav a {
  padding: 8px 0;
  white-space: nowrap;
}
/* Text-only active state: no fill, so links keep the same visual footprint. */
.desktop-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}
.nav-actions > .button[aria-current="page"] {
  background: #edf3fb;
  color: var(--brand);
  border-color: #bdcde4;
}
/* The language switcher sits beside the download action. */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-tools > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  border-radius: 100px;
  color: #536782;
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-tools > a:hover {
  background: #edf3fb;
  color: var(--brand);
}
.language-link {
  padding: 0 12px 0 9px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 8px;
}
.mobile-nav a[aria-current="page"] {
  background: #e5edf9;
  color: var(--brand);
  font-weight: 500;
}
.mobile-nav {
  gap: 4px;
}
@media (min-width: 769px) and (max-width: 900px) {
  .desktop-nav {
    gap: 20px;
  }
  .desktop-nav a {
    font-size: 0.8125rem;
  }
  .nav-wrap {
    gap: 18px;
  }
  .nav-actions {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .desktop-nav,
  .nav-tools {
    display: none;
  }
  .menu-toggle {
    display: block;
    width: 28px;
  }
}
