:root {
  --font-noto-sans-sc: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-nav-link.is-active::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1.5rem;
  height: 2px;
  content: "";
  background: var(--brand-orange);
  transform: translateX(-50%);
}

.hero-slide[hidden],
.brand-slide[hidden] {
  display: none !important;
}

.brand-track {
  display: flex;
  transition: transform 500ms ease-out;
}

.cms-article p {
  margin-top: 1.5rem;
  line-height: 1.625;
}

.cms-article p:first-child {
  margin-top: 0;
}

.cms-article img {
  width: 100%;
  height: auto;
  margin: 2rem auto;
  object-fit: cover;
}

.cms-article h2,
.cms-article h3 {
  margin-top: 2rem;
  font-weight: 900;
  color: var(--brand-navy);
}

.cms-article h2 {
  font-size: 1.5rem;
}

.cms-article h3 {
  font-size: 1.25rem;
}

.cms-article ul,
.cms-article ol {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.625;
}

.cms-article ul {
  list-style: disc;
}

.cms-article ol {
  list-style: decimal;
}

.cms-pagination .page-num {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 150ms ease, color 150ms ease;
}

.cms-pagination .page-num:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.cms-pagination .page-num-current,
.cms-pagination .page-num-current:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: var(--primary-foreground);
}

.message-status {
  display: none;
}

.message-status.is-visible {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
