/* Both languages share a persistent switch and the same navigation order. */
.utility-in {
  column-gap: 1rem;
}

.utility-in > div {
  column-gap: clamp(.85rem, 2vw, 1.5rem);
}

.utility a[href^="tel:"] {
  white-space: nowrap;
  min-height: 44px;
}

.utility .language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: .875rem;
  line-height: 1.3;
  letter-spacing: normal;
}

.language-switch a {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding-inline: .55rem;
  color: #edf3ea;
  text-decoration: none;
}

.language-switch a + a {
  position: relative;
}

.language-switch a + a::before {
  position: absolute;
  content: "";
  inset-inline-start: 0;
  height: .9em;
  border-inline-start: 1px solid #819789;
}

.utility .language-switch a[aria-current="true"],
.utility .language-switch a[aria-current="page"] {
  color: #ffdd9e;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1.5px;
}

.utility a:focus-visible {
  outline: 2px solid #ffdd9e;
  outline-offset: -3px;
  border-radius: 4px;
}

html[lang="zh-Hans"] {
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --serif: "DM Serif", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
}

html[lang="zh-Hans"] body {
  line-height: 1.8;
  line-break: strict;
}

html[lang="zh-Hans"] :is(h1, h2, h3, .brand) {
  letter-spacing: .015em;
}

html[lang="zh-Hans"] :is(h2, h3) {
  line-height: 1.32;
}

html[lang="zh-Hans"] .brand {
  letter-spacing: .05em;
  line-height: 1.15;
}

html[lang="zh-Hans"] .hero h1 {
  font-size: clamp(3rem, 5.15vw, 5rem);
  line-height: 1.16;
  letter-spacing: .025em;
}

html[lang="zh-Hans"] .hero h1 em {
  font-style: normal;
}

html[lang="zh-Hans"] .hero-lead,
html[lang="zh-Hans"] .lead {
  line-height: 1.8;
  text-wrap: pretty;
}

html[lang="zh-Hans"] .page-intro h1 {
  max-width: 14em;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: 1.23;
}

html[lang="zh-Hans"] :is(.kicker, .section-label) {
  font-size: .875rem;
  letter-spacing: .09em;
}

html[lang="zh-Hans"] :is(.service-card h3, .tile h3) {
  font-size: clamp(1.5rem, 2.05vw, 1.85rem);
}

html[lang="zh-Hans"] .foot-main p {
  line-height: 1.85;
}

@media (max-width: 660px) {
  .utility-in {
    width: calc(100% - 26px);
    column-gap: .65rem;
  }

  .utility-in > div {
    column-gap: .45rem;
  }

  html[lang="zh-Hans"] .hero h1 {
    font-size: clamp(2.9rem, 10.5vw, 4rem);
  }
}

@media (max-width: 475px) {
  .utility-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "place language" "phone language";
    align-items: center;
    padding-block: .25rem;
  }

  .utility-in > div {
    display: contents;
  }

  .utility-in > span:first-child {
    grid-area: place;
    font-size: .75rem;
    line-height: 1.5;
  }

  .utility-in a[href^="tel:"] {
    grid-area: phone;
    justify-self: start;
    font-size: .8125rem;
    min-height: 30px;
  }

  .utility-in .language-switch {
    grid-area: language;
    justify-self: end;
  }
}
