/* Keep the primary navigation centered beside the language controls. */
.shared-header-inner.has-language-switch{
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
}
.shared-header-end{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:clamp(8px,1.3vw,20px);
}
.shared-header .language-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  padding:0 6px;
  border-inline-start:1px solid color-mix(in srgb,var(--nav-text) 24%,transparent);
  color:var(--nav-active);
  font:600 12px/1.2 Manrope,"Noto Sans TC",sans-serif;
  text-decoration:none;
  white-space:nowrap;
}
.shared-header .language-switch:hover{color:var(--nav-text)}
.shared-header.is-reading .language-switch{visibility:hidden}
@media(min-width:641px) and (max-width:900px){
  .shared-header .has-language-switch nav.shared-page-links{gap:24px!important}
}
@media(max-width:640px){
  .shared-header-inner.has-language-switch{grid-template-columns:auto minmax(0,1fr)}
  .shared-header-end{grid-column:2;grid-row:1;gap:6px}
}
@media(max-width:400px){
  .shared-header .language-switch[aria-label="English homepage"]{font-size:10px}
  .shared-header-end .shared-wordmark{font-size:13px!important}
}
