/* Language navigation is shared by catalogue, project and policy pages. */
header:has(.language-switch) {
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}
header > nav:not(.language-switch) {
  flex: 1 1 24rem;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid #bdc8b9;
  border-radius: 30px;
  font: 600 12px/1.2 system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0;
}
.language-switch a[data-language] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
}
.language-switch a[data-language][aria-current='page'] {
  color: #fff;
  background: #153d31;
}
.language-switch a[data-language]:hover {
  background: #e3e7d7;
  color: #153d31;
}
.language-switch a[data-language]:focus-visible {
  outline: 3px solid #b96137;
  outline-offset: 3px;
}
html[lang^='zh'] body {
  --body: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-family: var(--body);
  line-height: 1.65;
}
html[lang^='zh'] h1,
html[lang^='zh'] h2,
html[lang^='zh'] h3,
html[lang^='zh'] .hero h1,
html[lang^='zh'] .art-info h3,
html[lang^='zh'] .collection-tile h3,
html[lang^='zh'] .palette-title,
html[lang^='zh'] .viewer-detail-grid h3 {
  font-family: 'Songti SC', 'Noto Serif SC', 'Noto Serif CJK SC', serif;
  letter-spacing: 0;
  line-height: 1.3;
}
html[lang^='zh'] .eyebrow,
html[lang^='zh'] .badge,
html[lang^='zh'] .art-top,
html[lang^='zh'] .controls label > span,
html[lang^='zh'] .collection-tile .code {
  letter-spacing: 0;
}
html[lang^='zh'] .hero h1 {
  font-size: clamp(46px, 5.5vw, 84px);
  line-height: 1.15;
}
html[lang^='zh'] .intro,
html[lang^='zh'] .viewer-detail-grid p {
  line-height: 1.9;
}
@media (max-width: 950px) {
  header:has(.language-switch) { gap: 16px; }
  header > nav:not(.language-switch) { gap: 10px 18px; }
}
@media (max-width: 620px) {
  header:has(.language-switch) { gap: 16px 12px; }
  header > .language-switch { order: 2; }
  header > nav:not(.language-switch) {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 12px 20px;
  }
  .language-switch { font-size: 11px; }
  .language-switch a[data-language] { min-width: 34px; padding: 7px 8px; }
  html[lang^='zh'] .hero h1 { font-size: 45px; letter-spacing: 0; }
  html[lang^='zh'] .collection-tile h3 { font-size: 20px; }
}
@media (max-width: 360px) {
  html[lang^='zh'] .hero h1 { font-size: 39px; }
}
