/* Shared navigation branding on every public page. */
header#header .site-brand,
header#header .site-brand-tagline {
  display: none;
}

header#header .site-classic-logo {
  display: flex;
}

html[data-site-ui='modern'] header#header .logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

html[data-site-ui='modern'] header#header .site-classic-logo {
  display: none;
}

html[data-site-ui='modern'] header#header .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: #fff;
  font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

html[data-site-ui='modern'] header#header .site-brand .site-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex: none;
}

html[data-site-ui='modern'] header#header .site-brand-tagline {
  display: block;
  flex: none;
  color: #e1e7e7;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .12em;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  html[data-site-ui='modern'] header#header .logo {
    width: calc(100% - 128px);
    height: 60px;
    gap: 10px;
  }

  html[data-site-ui='modern'] header#header .site-brand {
    gap: 6px;
    font-size: 20px;
  }

  html[data-site-ui='modern'] header#header .site-brand .site-brand-mark {
    width: 40px;
    height: 40px;
  }

  html[data-site-ui='modern'] header#header .site-brand-tagline {
    font-size: 12px;
    letter-spacing: 0;
  }
}

@media (max-width: 360px) {
  html[data-site-ui='modern'] header#header .logo {
    gap: 6px;
  }

  html[data-site-ui='modern'] header#header .site-brand-tagline {
    font-size: 11px;
  }
}
