/* Local zh-Hant homepage refinements. Preserve the existing Hero and color palette. */
html[lang="zh-Hant"] .home-premium-sample .hr-section {
  padding-block: clamp(82px, 8vw, 126px);
}

html[lang="zh-Hant"] .home-premium-sample .hr-section-head h2 {
  max-width: 16ch;
  line-height: 1.13;
  text-wrap: balance;
}

html[lang="zh-Hant"] .home-premium-sample .hr-products {
  overflow-x: clip;
}

html[lang="zh-Hant"] .home-premium-sample .hr-project-card,
html[lang="zh-Hant"] .home-premium-sample .hr-resource-card {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 230ms ease, box-shadow 230ms ease;
}

html[lang="zh-Hant"] .home-premium-sample .hr-project-card:hover,
html[lang="zh-Hant"] .home-premium-sample .hr-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgb(6 43 67 / 8%);
}

html[lang="zh-Hant"] .home-premium-sample .hr-project-card img {
  transition: transform 500ms ease;
}

html[lang="zh-Hant"] .home-premium-sample .hr-project-card:hover img {
  transform: scale(1.025);
}

/* Keep the visually hidden upload control from enlarging the document. */
html[lang="zh-Hant"] .home-premium-sample .file-upload {
  position: relative;
}

html[lang="zh-Hant"] .home-premium-sample .file-upload__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 700px) {
  html[lang="zh-Hant"] .home-premium-sample .hr-section {
    padding-block: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[lang="zh-Hant"] .home-premium-sample :is(.hr-project-card, .hr-resource-card, .hr-project-card img) {
    transition: none;
  }
}
