/* Stage 3 Malay language support: home page layout. */
html[lang="ms"] .home-hero {
  min-height: clamp(224px, 61vw, 242px);
}

html[lang="ms"] .home-hero__copy {
  top: clamp(56px, 15vw, 66px);
  left: var(--app-inline-gutter);
  width: 55vw;
  max-width: 226px;
}

html[lang="ms"] .home-hero__copy h1 {
  max-width: 100%;
  font-size: clamp(19px, 5.3vw, 22px);
  line-height: 1.28;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}

html[lang="ms"] .home-hero__copy p {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  font-size: clamp(10.5px, 2.95vw, 12px);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ms"] .home-hero > img {
  top: 18px;
  right: 0;
  width: clamp(140px, 39vw, 170px);
  height: auto;
}

html[lang="ms"] .home-exchange-card {
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 16px;
}

html[lang="ms"] .home-exchange-card h2 {
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(17px, 4.7vw, 20px);
  line-height: 1.35;
}

html[lang="ms"] .home-exchange-card > p {
  max-width: 340px;
  margin: 4px auto 0;
  font-size: clamp(11px, 3vw, 12.5px);
  line-height: 1.5;
}

html[lang="ms"] .home-features {
  min-height: 0;
}

html[lang="ms"] .home-feature strong {
  min-height: 42px;
  font-size: clamp(10.5px, 2.8vw, 12px);
  line-height: 1.35;
}

html[lang="ms"] .home-feature small {
  min-height: 58px;
  font-size: clamp(9px, 2.45vw, 10.5px);
  line-height: 1.42;
}

html[lang="ms"] .exchange-activity__title {
  padding-right: 6px;
  padding-left: 9px;
  gap: 4px;
}

html[lang="ms"] .exchange-activity__title strong {
  max-width: 94px;
  font-size: 9.5px;
  line-height: 1.15;
  white-space: normal;
}

html[lang="ms"] .exchange-activity__title small {
  font-size: 6.5px;
}

html[lang="ms"] .exchange-activity__item {
  font-size: 9px;
}

html[lang="ms"] .home-data-card {
  min-height: 220px;
  padding-bottom: 10px;
}

html[lang="ms"] .home-stats {
  min-height: 154px;
  padding: 14px 5px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[lang="ms"] .home-stats > div {
  padding: 0 7px;
}

html[lang="ms"] .home-stats small {
  display: flex;
  min-height: 30px;
  align-items: flex-start;
  font-size: clamp(8px, 2.25vw, 9.5px);
  line-height: 1.35;
  white-space: normal;
}

html[lang="ms"] .home-stats strong {
  margin-top: 5px;
  font-size: clamp(13px, 3.5vw, 15px);
  line-height: 1.4;
}

html[lang="ms"] .home-stats > div:first-child strong {
  font-size: clamp(17px, 4.7vw, 20px);
}

html[lang="ms"] .home-stats strong em {
  font-size: 7.5px;
}

html[lang="ms"] .home-stats > div > span {
  min-height: 40px;
  margin-top: 3px;
  font-size: clamp(7.5px, 2.05vw, 8.7px);
  line-height: 1.4;
  white-space: normal;
}

html[lang="ms"] .home-stats > div:nth-child(2) > span b {
  display: block;
}

html[lang="ms"]:has(.home-screen) .bottom-navigation__item {
  padding: 0 2px;
  font-size: 9.5px;
  line-height: 12.5px;
  text-align: center;
}

html[lang="ms"]:has(.home-screen) .bottom-navigation__item.exchange > span:last-child {
  font-size: 9.5px;
  line-height: 11.5px;
}

@media (max-width: 350px) {
  html[lang="ms"] .home-hero__copy {
    width: 54vw;
  }

  html[lang="ms"] .home-feature {
    padding-right: 1px;
    padding-left: 1px;
  }

  html[lang="ms"] .home-feature strong {
    font-size: 10px;
  }

  html[lang="ms"] .home-feature small {
    font-size: 8.7px;
  }
}
