/*
 * DICHANA self-hosted Prompt typography compatibility entrypoint.
 *
 * The legacy filename is retained so every existing Public, Admin, Login,
 * Installer and utility template receives the current typography contract
 * without a risky template-wide path migration.
 *
 * Font source: google/fonts ofl/prompt at
 * e201719944904d2b21cd158f724c2e5889c6e19a (SIL Open Font License 1.1).
 */
@font-face {
  font-family: "Prompt";
  src: url("../prompt-light-v2275.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("../prompt-regular-v2275.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("../prompt-medium-v2275.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("../prompt-semibold-v2275.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("../prompt-bold-v2275.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --dichana-font-sans: "Prompt", sans-serif;
}

html {
  font-family: var(--dichana-font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
body *,
body *::before,
body *::after,
svg text {
  font-family: var(--dichana-font-sans) !important;
}

/*
 * typography-v8569 previously selected an OS-only Thai font family with
 * higher specificity. Keep this later compatibility layer equally specific so
 * a cached legacy stylesheet cannot reintroduce tofu glyphs on Linux runners.
 */
body.typography-v8569,
body.typography-v8569 *,
body.typography-v8569 *::before,
body.typography-v8569 *::after {
  font-family: var(--dichana-font-sans) !important;
}

body {
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

strong,
b,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}
