@font-face {
  font-family: "SSC Khmer";
  src: url("/fonts/noto-sans-khmer-62b623391756081e.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}

/* Preserve the two Vinext next/font stacks on the body, including their
   metric fallback faces. Site and component font shorthands inherit them. */
html[lang="km"] body {
  --font-geist-sans: "Geist", "Geist Fallback", "SSC Khmer";
  --font-premium-serif: "Cormorant Garamond", "Cormorant Garamond Fallback", "SSC Khmer";
}

/* The standalone login export uses system-ui in place of Geist. */
html[lang="km"] body:has(.ssc-login-main) {
  --font-geist-sans: system-ui, "SSC Khmer";
}

/* The isolated login and portal also set a few concrete font stacks. */
html[lang="km"] #main-content .ssc-login-app :is(
  .pwa-login,
  .pwa-auth-form .portal-submit,
  .concierge-dialog,
  .dossier-top,
  .therapy-dossier,
  .dossier-session-page,
  .dossier-profile
) {
  font-family: "SSC Login Inter", system-ui, "SSC Khmer", sans-serif;
}

html[lang="km"] #main-content .ssc-login-app .dossier-smid {
  font-family: "SSC Login Jost", system-ui, "SSC Khmer", sans-serif;
}

html[lang="km"] #main-content .ssc-login-app .pwa-vvip :is(dt, th, .vvip-label) {
  font-family: "SSC Login Jost", "SSC Khmer", sans-serif;
}
