/* Match the original hero's Source Han Serif stack across all site text. */
:root {
  --preview-font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
}

*,
*::before,
*::after {
  font-family: var(--preview-font-serif) !important;
}

/* Keep the primary site header aligned with the sans-serif navigation style. */
.site-header .brand,
.site-header .brand *,
.site-header .nav-links,
.site-header .nav-links *,
.site-header .site-get {
  font-family: var(--sans) !important;
}

.nowrap-phrase {
  white-space: nowrap;
}

/* Publication navigation stays distinct from the serif reading text. */
:is(.edition-switch, .journal-contents) > a {
  font-family: var(--sans) !important;
  font-weight: 500;
}
:is(.edition-switch, .journal-contents) > a[href]::after {
  bottom: 0;
  height: 2px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  :is(.edition-switch, .journal-contents) > a:hover::after {
    transform: scaleX(1);
  }
}
:is(.edition-switch, .journal-contents) > a:is([aria-current="page"], [aria-selected="true"], :focus-visible)::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  :is(.edition-switch, .journal-contents) > a::after { transition: none; }
}
