/* Keep the language control outside the navigation's overflow menu. */
.masthead__menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.masthead__menu .greedy-nav {
  flex: 1;
  min-width: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.35em;
  min-height: 44px;
  padding: 0.35em 0.65em;
  border: 1px solid #2c4a88;
  border-radius: 6px;
  background: #fff;
  color: #2c4a88;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  cursor: pointer;
}

.language-toggle:hover {
  background: #f1f5fb;
}

.language-toggle:focus-visible,
.collapsible-trigger:focus-visible {
  outline: 2px solid #2c4a88;
  outline-offset: 3px;
}

.language-toggle__en,
.language-toggle__zh {
  opacity: 0.6;
}

html[lang="en-US"] .language-toggle__en,
html[lang="zh-CN"] .language-toggle__zh {
  opacity: 1;
  font-weight: 700;
}

html[lang="zh-CN"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.honor-row {
  display: grid;
  grid-template-columns: 4ch minmax(0, 1fr);
  column-gap: 0.75em;
  align-items: start;
}

.honor-body {
  min-width: 0;
}

.honor-title,
.honor-note {
  display: block;
}

.honor-note {
  margin-top: 0.1em;
}

.collapsible-trigger {
  color: #2c4a88;
  padding-top: 60px;
  margin-top: -60px;
}

.publication-title {
  color: #000;
  font-weight: 700;
}

.publication-author-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75em;
  padding: 0.35em;
  margin-bottom: 1em;
  border-bottom: 1px solid #bdc1c4;
}

.publication-author-symbol {
  color: #b02418;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}
