/*
 * Portal typeface: the native system UI font stack (client, 17-Oct-2026 — replaces Times New Roman, 01-Oct-2026).
 * Every reader sees their own operating system's interface font, so nothing is downloaded. The family is set
 * once, as --vz-font-sans-serif in custom-theme.css (the variable name is the template's). Imported by
 * custom-theme.css (every shell) and linked directly by the standalone pages (index, account, the print pages).
 * Generated documents (server PDFs, the table PDF export, docx, xlsx) keep Times: they cannot use a system stack.
 */

/* Form controls do not inherit the page font by default (the browser gives them
   its own, e.g. Arial) — make every one of them use the page's. */
button, input, select, textarea, optgroup { font-family: inherit; }

/* Multilingual support (NFR-LANG-02, 02-Oct-2026). On Chinese/Japanese pages (i18n_html_attrs() puts
   data-gu-script="cjk" on <html>) Latin text stays in the system UI font and the characters fall through to a
   sans-serif CJK font already on the reader's machine — nothing is downloaded. */
html[data-gu-script="cjk"] {
    --vz-font-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Source Han Sans SC', 'Hiragino Sans GB', sans-serif;
}
html[data-gu-script="cjk"][lang="ja"] {
    --vz-font-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Yu Gothic UI', 'Meiryo', 'Hiragino Sans', 'Noto Sans JP', 'Source Han Sans JP', sans-serif;
}
html[data-gu-script="cjk"] body {
    font-family: var(--vz-font-sans-serif);
}
