/* One quiet control language in both palettes: plain icons, text and spacing. */
@media (min-width: 781px) and (max-width: 1100px) {
  #nav .nav-inner { gap: .5rem; padding-inline: .8rem; }
  #nav .nav-links { gap: 1rem; }
  #nav .nav-links a { font-size: .77rem; }
}
#nav .theme-toggle {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}
#nav .theme-toggle svg,
#nav .header-social svg { width: 18px; height: 18px; flex-basis: 18px; }
#nav .lang-toggle,
#nav.mobile-nav-ready .mobile-nav-panel .lang-toggle {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 4px;
  width: 76px;
  min-width: 76px;
  flex: 0 0 76px;
  height: 36px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: .68rem;
  letter-spacing: .015em;
}
#nav .lang-thumb { display: none; }
#nav .service-language,
#nav.mobile-nav-ready .mobile-nav-panel .service-language {
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#nav .service-language a {
  position: relative;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  font-size: .68rem;
  font-weight: 500;
}
#nav .service-language a[aria-current="page"] { color: var(--ink); font-weight: 600; }
#nav .lang-toggle .lang-option {
  position: relative;
  height: 36px;
  min-height: 36px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
}
#nav .lang-toggle .lang-option[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
}
#nav .lang-toggle .lang-option[aria-pressed="true"]::after,
#nav .service-language a[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1px;
  bottom: 5px;
  left: calc(50% - 6px);
  background: currentColor;
  opacity: .65;
}
#nav .theme-toggle:hover,
#nav .header-social a:hover,
#nav .lang-option:hover,
#nav .service-language a:hover { background: rgba(128, 128, 128, .09); }
#nav .lang-toggle:has(.lang-option:focus-visible) { outline: none; }
#nav .theme-toggle:focus-visible,
#nav .header-social a:focus-visible,
#nav .lang-option:focus-visible,
#nav .service-language a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (min-width: 781px) {
  #nav .nav-utilities,
  #nav .header-social { gap: 4px; }
  #nav .nav-utilities .header-social {
    padding: 0;
    border: 0;
  }
  #nav .header-social a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
}
@media (max-width: 780px) {
  #nav.mobile-nav-ready .mobile-menu-toggle,
  #nav .has-theme-toggle > .theme-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
  }
  #nav.mobile-nav-ready .mobile-menu-toggle:hover { background: rgba(128, 128, 128, .09); }
  #nav.mobile-nav-ready .mobile-nav-panel .lang-toggle {
    grid-template-columns: repeat(2, 44px);
    width: 92px;
    min-width: 92px;
    flex-basis: 92px;
    height: 44px;
  }
  #nav.mobile-nav-ready .mobile-nav-panel .lang-option { height: 44px; min-height: 44px; }
  #nav.mobile-nav-ready .mobile-nav-panel .service-language a {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }
}
