/* v3.0 — shared language navigation; existing visual system stays in style.css. */
.site-header .brand { margin-right: auto; }
.site-header .site-nav { order: 1; }
.site-header .language-switch {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.language-switch a {
  padding-block: 9px;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.language-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}
.language-switch > span {
  color: var(--muted);
  opacity: 0.42;
  font-weight: 400;
}
.language-switch a:hover { color: var(--ink); }
.language-switch a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.site-header .nav-toggle { order: 3; flex-shrink: 0; }
@media (max-width: 860px) {
  .site-header { gap: 14px; }
}
@media (max-width: 380px) {
  .site-header { gap: 9px; padding-inline: 16px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-logo { width: 32px; height: 32px; }
  .site-header .nav-toggle { width: 36px; height: 36px; }
  .site-header .language-switch { gap: 5px; }
}

/* Native Traditional Chinese fonts; no extra image copies or webfont download. */
html[lang="zh-Hant"] body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  line-break: strict;
}
html[lang="zh-Hant"] :is(h1, h2, h3) {
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  font-weight: 500;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
html[lang="zh-Hant"] :is(p, li, dd, figcaption, label, legend) {
  letter-spacing: 0 !important;
  line-height: 1.75;
}
html[lang="zh-Hant"] :is(.eyebrow, .section-kicker, .panel-label, .home-project-meta) {
  letter-spacing: .04em !important;
  line-height: 1.65 !important;
}
html[lang="zh-Hant"] :is(.button, .site-nav, .text-link) { letter-spacing: 0; }
html[lang="zh-Hant"] :is(input, select, textarea, button) { font-family: inherit; }
html[lang="zh-Hant"] .home-hero h1 { font-size: clamp(42px, 5.2vw, 76px); }
html[lang="zh-Hant"] .about-hero h1 { font-size: clamp(40px, 5vw, 72px); }
html[lang="zh-Hant"] .research-service-hero h1 { letter-spacing: -.045em !important; line-height: 1.02 !important; }
html[lang="zh-Hant"] .research-intake-hero h1 { overflow-wrap: anywhere; }
html[lang="zh-Hant"] .research-intake-requirement { white-space: nowrap; }
html[lang="zh-Hant"] .lead { line-height: 1.6 !important; }
html[lang="zh-Hant"] .home-hero h1 { text-wrap: balance; }
html[lang="zh-Hant"] .neurogram-final-page .ngf-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 650;
  letter-spacing: -.04em !important;
  line-height: 1.05 !important;
}
html[lang="zh-Hant"] .localized-project-subtitle {
  display: block;
  margin-top: .25em;
  font-size: .64em;
}
html[lang="zh-Hant"] .contact-page-unified .contact-page-hero h1 {
  font-size: clamp(44px, 6.6vw, 96px);
}
