/* =========================================================
   ARUS ROBOTICS - MULTILINGUAL LAYER
   Locale-specific navigation and typography adjustments only.
   ========================================================= */

.nav .language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid currentColor;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav .language-switch a {
  opacity: 0.5;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav .language-switch a:hover,
.nav .language-switch a[aria-current="true"] {
  opacity: 1;
}

.nav .language-switch a[aria-current="true"] {
  color: var(--blue);
  font-weight: 700;
}

.nav .language-switch a::after {
  content: none !important;
}

html[lang="ms"] .nav .nav-links {
  gap: clamp(8px, 1.1vw, 22px);
  font-size: 10px;
}

html[lang="ms"] .nav .nav-cta,
html[lang="ms"] .nav .nav-action {
  padding-inline: 14px;
  font-size: 9px;
}

html[lang="zh-Hans"] body {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    Arial,
    Helvetica,
    sans-serif;
}

html[lang="zh-Hans"] .display,
html[lang="zh-Hans"] .secondary-hero-title,
html[lang="zh-Hans"] .product-hero-title,
html[lang="zh-Hans"] .legal-title {
  letter-spacing: 0;
  line-height: 0.96;
}

html[lang="zh-Hans"] .mono,
html[lang="zh-Hans"] .section-index,
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .nav .language-switch {
  font-family: "Courier New", Courier, monospace;
}

@media (max-width: 960px) {
  .nav .language-switch {
    min-height: 54px;
    padding: 0 var(--gutter);
    border-left: 0;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
    gap: 10px;
    font-size: 11px;
  }

  .nav .language-switch a {
    min-height: auto;
    padding: 0;
    border-bottom: 0;
    display: inline-flex;
    align-items: center;
    background: transparent;
    font-size: inherit;
    letter-spacing: inherit;
  }

  .nav .language-switch a[aria-current="true"] {
    background: transparent;
    color: var(--blue);
  }
}

@media (max-width: 560px) {
  html[lang="ms"] .display,
  html[lang="ms"] .secondary-hero-title,
  html[lang="ms"] .product-hero-title {
    overflow-wrap: normal;
  }

  html[lang="ms"] .purpose-grid > *,
  html[lang="ms"] .purpose-main,
  html[lang="ms"] .purpose-copy {
    min-width: 0;
  }

  html[lang="ms"] .purpose-main .display-medium,
  html[lang="ms"] .product-ar-m .product-hero-title,
  html[lang="ms"] .product-ar-m .product-hero-title span {
    overflow-wrap: anywhere;
  }

  html[lang="ms"] .hero-copy .display .blue {
    font-size: 0.82em;
  }

  html[lang="zh-Hans"] .display,
  html[lang="zh-Hans"] .secondary-hero-title,
  html[lang="zh-Hans"] .product-hero-title {
    line-height: 1.02;
  }
}
