/* Fonts across every LaoTai Connect screen, and the official fonts on paper.
 *
 * On screen: Noto Sans Lao for everything — body text, numbers and Latin letters included —
 * whatever font a page or a compiled bundle chose on its own; page and section headings
 * (h1–h3, and anything marked .lt-serif) in Noto Serif Lao, for a more finished look.
 * Printed (and in a document's print preview): Phetsarath for Lao, Times New Roman for Latin
 * letters and digits, as official documents are written.
 *
 * Left as they are: a document's print preview (#doc-print-area) and the Excel-file preview
 * (.pv-cell), which show the document as it will look on paper or in Excel. */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Lao:wght@500;600;700&display=swap');

/* Latin letters and digits in Times New Roman (installed on Windows/Mac); Lao falls through to Phetsarath. */
@font-face { font-family: 'LT Latin'; src: local('Times New Roman'), local('TimesNewRomanPSMT'); unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF; }
@font-face { font-family: 'LT Latin'; font-weight: 700; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'); unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF; }

@media screen {
  body, body *:not(#doc-print-area):not(#doc-print-area *):not(.pv-cell):not(.pv-cell *):not(h1):not(h2):not(h3):not(.lt-serif) {
    font-family: 'Noto Sans Lao', sans-serif !important;
  }
  body h1:not(#doc-print-area *), body h2:not(#doc-print-area *), body h3:not(#doc-print-area *), body .lt-serif:not(#doc-print-area *) {
    font-family: 'Noto Serif Lao', 'Noto Sans Lao', serif !important;
    letter-spacing: 0;
  }
  /* what used to be a fixed-width font (document numbers, figures) keeps its digits lined up */
  [style*="monospace"], [style*="DM Mono"] { font-variant-numeric: tabular-nums; }
}

#doc-print-area, #doc-print-area * { font-family: 'LT Latin', 'Phetsarath', 'Phetsarath OT', 'Noto Sans Lao', serif !important; }

@media print {
  html body, html body * { font-family: 'LT Latin', 'Phetsarath', 'Phetsarath OT', 'Noto Sans Lao', serif !important; }
}
