/* EU / multilingual pages – language switcher and draft placeholders (2026-11-25) */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--brand);
}
.lang-switch a[aria-current="page"] {
  color: var(--brand-bright);
  border-bottom-color: var(--brand-bright);
}
.std-link {
  margin-top: 0.9rem;
}
.std-link a {
  color: var(--brand-bright);
  font-weight: 600;
  text-decoration: none;
}
.std-link a:hover {
  text-decoration: underline;
}
/* Translated pages: longer nav labels (DE/FR/NL) – keep the desktop nav on one line until the 980px hamburger takes over */
@media (min-width: 981px) and (max-width: 1240px) {
  html:not([lang="en"]) .nav-links {
    gap: 0.85rem;
  }
  html:not([lang="en"]) .nav-links a:not(.btn) {
    font-size: 0.82rem;
  }
}
/* Translated catalogue: longer section names – let the sticky contents bar wrap on desktop instead of hiding the PDF link */
@media (min-width: 1100px) {
  html:not([lang="en"]) .cat-toc-inner {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.3rem 0.9rem;
  }
}
/* Translated pages: a menu label never breaks onto two lines */
html:not([lang="en"]) .nav-links a {
  white-space: nowrap;
}
/* Translated pages with the longer 9-item menu (load restraints): tighter spacing on mid-size desktops … */
@media (min-width: 981px) and (max-width: 1440px) {
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) {
    gap: 0.7rem;
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) a:not(.btn) {
    font-size: 0.8rem;
  }
}
/* … and the mobile menu button below 1180px, where nine translated labels cannot fit on one line */
@media (min-width: 981px) and (max-width: 1179px) {
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) + .nav-toggle {
    display: flex;
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) {
    position: fixed;
    inset: 0;
    background: rgba(0, 18, 52, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)).open {
    opacity: 1;
    pointer-events: auto;
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) a:not(.btn) {
    font-size: 1.35rem;
    color: var(--text);
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) + .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) + .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  html:not([lang="en"]) .nav-links:has(> a:nth-child(9)) + .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
/* Translated pages, narrowest desktop widths */
@media (min-width: 981px) and (max-width: 1060px) {
  html:not([lang="en"]) .nav-links {
    gap: 0.6rem;
  }
  html:not([lang="en"]) .nav-links a:not(.btn) {
    font-size: 0.78rem;
  }
}
