/* Shared Light typography for every page, component and dialog.
   Use the real local Helvetica Neue Light face; bundled Noto fonts supply
   a 300-weight fallback and glyphs for scripts Helvetica does not contain. */
@font-face {
  font-family:"Matsu Helvetica Neue Light";
  src:local("Helvetica Neue Light"),local("HelveticaNeue-Light");
  font-style:normal;
  font-weight:300;
  font-display:swap;
}
:root {
  --matsu-font-latin: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif;
  --matsu-font-sc: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans SC", "Noto Sans", sans-serif;
  --matsu-font-tc: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans TC", "Noto Sans", sans-serif;
  --matsu-font-ja: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans JP", "Noto Sans", sans-serif;
  --matsu-font-ko: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans KR", "Noto Sans", sans-serif;
  --matsu-font-hi: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --matsu-font-he: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans Hebrew", "Noto Sans", sans-serif;
  --matsu-font-ar: "Matsu Helvetica Neue Light", "Helvetica Neue", "Noto Sans Arabic", "Noto Sans", sans-serif;
  --matsu-font: var(--matsu-font-latin);
  --matsu-font-weight:300;
}
:root:lang(zh), [lang="zh"], [lang="zh-Hans"] { --matsu-font:var(--matsu-font-sc); }
:root:lang(zh-Hant), [lang="zh-Hant"] { --matsu-font:var(--matsu-font-tc); }
:root:lang(ja), [lang="ja"] { --matsu-font:var(--matsu-font-ja); }
:root:lang(ko), [lang="ko"] { --matsu-font:var(--matsu-font-ko); }
:root:lang(hi), [lang="hi"] { --matsu-font:var(--matsu-font-hi); }
:root:lang(he), [lang="he"] { --matsu-font:var(--matsu-font-he); }
:root:lang(ar), [lang="ar"] { --matsu-font:var(--matsu-font-ar); }
[lang="en"], [lang="el"], [lang="de"], [lang="fr"], [lang="es"] { --matsu-font:var(--matsu-font-latin); }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html, body { font-family:var(--matsu-font); font-synthesis:none; }
/* Explicitly tagged labels keep their own script face when the page changes language. */
.language-options [lang] { font-family:var(--matsu-font); }

/* Layered important declarations intentionally outrank component font
   shorthands, inline styles and legacy important weights. Keep type sizes,
   spacing and semantic emphasis intact while sharing one face and weight. */
@layer matsu-typography {
  body, body *, body *::before, body *::after,
  body *::placeholder, body *::file-selector-button {
    font-family:var(--matsu-font) !important;
    font-weight:var(--matsu-font-weight) !important;
  }
}
