/* Localised marketing pages (T5.3). */
html[lang="zh-Hans"] body,
html[lang="zh-Hans"] .btn,
html[lang="zh-Hans"] button,
html[lang="zh-Hans"] input,
html[lang="zh-Hans"] .uc-preview__table {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* Chinese has no word spaces, so allow breaks anywhere and relax line height. */
html[lang="zh-Hans"] p,
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 {
    word-break: break-word;
    line-break: strict;
}

html[lang="zh-Hans"] p { line-height: 1.8; }

/* Longer Spanish / French strings must wrap rather than overflow cards and buttons. */
html[lang="es"] .buy-button, html[lang="fr"] .buy-button,
html[lang="es"] .uc-btn, html[lang="fr"] .uc-btn {
    white-space: normal;
    height: auto;
    min-height: 40px;
}
html[lang="es"] h1, html[lang="fr"] h1,
html[lang="es"] h2, html[lang="fr"] h2,
html[lang="es"] h3, html[lang="fr"] h3,
html[lang="es"] p, html[lang="fr"] p,
html[lang="es"] summary, html[lang="fr"] summary {
    overflow-wrap: break-word;
}

/* Language switcher (footer) */
.lang-switcher { margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; align-items: center; font-size: 0.9rem; }
.lang-switcher a { text-decoration: none; }
.lang-switcher [aria-current="true"] { font-weight: 700; }

/* CJK has no true italics; browsers fake an oblique slant, so keep emphasis upright. */
html[lang="zh-Hans"] i, html[lang="zh-Hans"] em { font-style: normal; }
