/**
 * Korean (.kr) typography overrides.
 *
 * Loaded only on sites whose host ends in .kr (see nmrtr_is_kr_site() in
 * functions.php). Swaps the site's Mark Pro typography for Pretendard, which
 * carries full Hangul coverage that Mark Pro does not.
 *
 * Pretendard is served from jsDelivr; the dynamic-subset build ships Hangul as
 * unicode-range slices so browsers fetch only the glyph ranges a page uses.
 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

body.locale-kr,
body.locale-kr *,
body.locale-kr *::before,
body.locale-kr *::after,
body.locale-kr .gform_sec.elementor-widget .mktoForm input.mktoField,
body.locale-kr .mktoForm .mktoButtonWrap.mktoGlow .mktoButton {
	font-family: "Pretendard Variable", Pretendard, "Mark Pro", -apple-system,
		BlinkMacSystemFont, system-ui, "Malgun Gothic", "Apple SD Gothic Neo",
		sans-serif !important;
}

/*
 * Icon fonts must keep their own families or the glyphs render as tofu.
 * Elementor, Font Awesome and dashicons all key off these families.
 */
body.locale-kr [class*="eicon-"],
body.locale-kr [class*="eicon-"]::before,
body.locale-kr [class*="eicon-"]::after,
body.locale-kr [class^="fa-"],
body.locale-kr [class*=" fa-"],
body.locale-kr [class^="fa-"]::before,
body.locale-kr [class*=" fa-"]::before,
body.locale-kr .fa,
body.locale-kr .fas,
body.locale-kr .far,
body.locale-kr .fab,
body.locale-kr .fa::before,
body.locale-kr .fas::before,
body.locale-kr .far::before,
body.locale-kr .fab::before,
body.locale-kr [class*="dashicons"],
body.locale-kr [class*="dashicons"]::before {
	font-family: inherit !important;
}

body.locale-kr [class*="eicon-"],
body.locale-kr [class*="eicon-"]::before {
	font-family: eicons !important;
}

body.locale-kr [class*="dashicons"],
body.locale-kr [class*="dashicons"]::before {
	font-family: dashicons !important;
}

/* Keep monospace contexts monospaced. */
body.locale-kr code,
body.locale-kr kbd,
body.locale-kr pre,
body.locale-kr samp,
body.locale-kr tt,
body.locale-kr var {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
