/**
 * Self-hosted SSO fonts — no fonts.googleapis.com
 *
 * Fonts are served from www/resources (static), not module.php.
 * Streaming WOFF2 through module.php hits ERR_HTTP2_PROTOCOL_ERROR on first load.
 */

@font-face {
  font-family: "Google Sans";
  src: url("../../../../resources/fonts/Google_Sans/GoogleSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../../../../resources/fonts/Google_Sans/GoogleSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../../../../resources/fonts/Google_Sans/GoogleSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../../../../resources/fonts/Google_Sans/GoogleSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("../../../../resources/fonts/Google_Sans/GoogleSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Temporary: no Kanit/Sarabun — force Thai through Google Sans */
  --sso-font-sans: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-font-sans-serif: var(--sso-font-sans);
  --bs-body-font-family: var(--sso-font-sans);
}

body,
.btn,
button,
input,
select,
textarea {
  font-family: var(--sso-font-sans);
}
