/* Namizzi — site-wide typography
   One shared webfont for all user-facing pages and admin.
   Loaded after each page's regular styles to override page-specific stacks.
   Chart diagrams retain their SVG/icon geometry and symbol fallbacks. */

@font-face {
  font-family: 'Chosunilbo_myungjo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Chosunilbo_myungjo.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --namizzi-global-font: 'Chosunilbo_myungjo', 'Gowun Batang', 'Nanum Myeongjo', Georgia, serif;
  --font-serif: var(--namizzi-global-font);
  --font-sans: var(--namizzi-global-font);
  --namizzi-page-font: var(--namizzi-global-font);
}

/* !important is limited to font-family so that existing visual layout,
   color, weights, responsive sizes, animations, and functionality stay intact.
   Avoid <i> icon fonts and SVG graphic paths. */
body,
body :is(
  h1, h2, h3, h4, h5, h6,
  p, a, div, span, small, strong, b, em, mark,
  label, button, input, textarea, select, option, optgroup,
  legend, fieldset, summary, details,
  li, ul, ol, td, th, table, caption, blockquote, time, output,
  pre, code, section, article, header, footer, nav, aside
):not(.material-icons):not(.material-symbols-outlined):not(.material-symbols-rounded):not(.fa):not(.fas):not(.far):not(.fab):not(.iconfont) {
  font-family: var(--namizzi-global-font) !important;
}

/* Divisional and compatibility charts can also render labels as SVG text.
   This does not change icon paths or chart geometry. */
svg text,
svg tspan {
  font-family: var(--namizzi-global-font) !important;
}
