/* APPROVED Traditional Chinese-only typography. Official Noto Sans TC 2.004, OFL 1.1.
 * Two real static weights; no CDN, no synthetic bold/italic. */
@font-face {
  font-family: "MiRi Traditional Chinese Sans";
  src: url("../fonts/noto-sans-tc-2.004/noto-sans-tc-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MiRi Traditional Chinese Sans";
  src: url("../fonts/noto-sans-tc-2.004/noto-sans-tc-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

html[lang="zh-Hant"] .miri-gate4-home {
  --miri-font-display: "MiRi Traditional Chinese Sans", "Be Vietnam Pro", sans-serif;
  --miri-font-body: "MiRi Traditional Chinese Sans", "Be Vietnam Pro", sans-serif;
  --miri-type-heading-family: var(--miri-font-display);
  --miri-type-copy-family: var(--miri-font-body);
  --miri-type-heading-weight: 500;
  --miri-type-copy-weight: 400;
  --miri-type-display-h1-line-height: 1.2;
  --miri-type-page-h1-line-height: 1.2;
  --miri-type-section-h2-line-height: 1.35;
  --miri-type-display-h1-letter-spacing: 0;
  --miri-type-page-h1-letter-spacing: 0;
  --miri-type-section-h2-letter-spacing: 0;
  --miri-type-eyebrow-letter-spacing: 0.08em;
  --miri-type-navigation-size: 0.8125rem;
  font-family: var(--miri-font-body);
  font-weight: 400;
  font-synthesis: none;
  word-break: normal;
  line-break: strict;
  overflow-wrap: normal;
}

html[lang="zh-Hant"] .miri-gate4-home :where(h1, h2, h3, h4, h5, h6, p, a, button, span, li, dt, dd, label, summary, text, figcaption, blockquote) {
  font-family: "MiRi Traditional Chinese Sans", "Be Vietnam Pro", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  word-break: normal;
  line-break: strict;
  overflow-wrap: normal;
}

html[lang="zh-Hant"] .miri-gate4-home :is(h1, h2, h3, h4, h5, h6) {
  font-family: "MiRi Traditional Chinese Sans", "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-style: normal;
  text-wrap: balance;
}

html[lang="zh-Hant"] .miri-gate4-home :is(strong, b, em, i) {
  font-family: "MiRi Traditional Chinese Sans", "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-style: normal;
}

html[lang="zh-Hant"] .miri-gate4-home :is(p, figcaption, dd, li) {
  font-weight: 400 !important;
}

html[lang="zh-Hant"] .miri-gate4-home :is(a, button, summary, dt) {
  font-weight: 500;
}

html[lang="zh-Hant"] .miri-gate4-home [class*="eyebrow"] {
  font-weight: 500 !important;
}

html[lang="zh-Hant"] .miri-gate4-home a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

/* CSS-generated controls must use this locale's font, not legacy Alexandria. */
html[lang="zh-Hant"] .miri-gate4-menu-add-ons > summary::after {
  font-family: var(--miri-font-display);
  font-weight: 400;
  font-synthesis: none;
}

/* Compact the entire navigation as a unit before Traditional Chinese labels get crowded. */
@media (max-width: 1439px) {
  html[lang="zh-Hant"] .miri-gate4-desktop-nav {
    display: none;
  }
  html[lang="zh-Hant"] .miri-gate4-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

html[lang="zh-Hant"] .miri-gate4-desktop-nav {
  gap: clamp(16px, 1.5vw, 28px);
}

html[lang="zh-Hant"] .miri-gate4-home :is(h1, h2) > span {
  display: inline;
  font-weight: inherit;
}

html[lang="zh-Hant"] .miri-gate4-home :is(h1, h2) > span + span::before {
  content: "";
}
