/* QC297 typography source-of-truth.
 * QC297Sans = official Noto Sans Variable v2.015 (full Vietnamese), self-hosted
 * from the Mini PC image. The binary font is fetched during Docker base build
 * and copied into /public/assets/fonts; it is not duplicated per component.
 */
@font-face{
  font-family:"QC297Sans";
  src:url("/assets/fonts/qc297-sans-variable-v2015.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-stretch:62.5% 100%;
  font-display:swap;
}

:root{
  --font-ui:"QC297Sans",sans-serif;
  --font-print-ui:"QC297Sans",sans-serif;
  /* Official report documents intentionally keep their template typography. */
  --font-report-document:"Times New Roman","Liberation Serif",serif;
}

html,
body{
  font-family:var(--font-ui);
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

button,
input,
textarea,
select,
option{
  font:inherit;
}

/* App-owned printable HTML must opt into this root. Native/server PDF content
 * is intentionally not restyled from CSS because its fonts are embedded by the
 * document renderer. */
.qc297-print-root{
  font-family:var(--font-print-ui);
  font-synthesis:none;
}
.qc297-print-root :where(button,input,textarea,select,option){font:inherit}

/* SVG icons use paths, not an icon font, so no special font-family override is
 * required. If an icon-font is added later, keep it outside this typography root. */
