/* Single source for UI font stack — load before other template CSS */
:root {
	--font-sans-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-sans: var(--font-sans-fallback);
}

/* English UI: Figtree Latin subset; CJK falls through to --font-sans-fallback */
/* Latin unicode-range matches Google Fonts figtree latin subset */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/figtree-v9-latin-300.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/figtree-v9-latin-regular.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/figtree-v9-latin-500.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/figtree-v9-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/figtree-v9-latin-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/figtree-v9-latin-800.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Cathay Sans";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/CathaySans_WCorp_Lt.woff2") format("woff2");
}
@font-face {
	font-family: "Cathay Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/CathaySans_WCorp_Rg.woff2") format("woff2");
}
@font-face {
	font-family: "Cathay Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/CathaySans_WCorp_Bd.woff2") format("woff2");
}

@font-face {
	font-family: "GT Walsheim";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/GT-Walsheim-Light.woff2") format("woff2");
}
@font-face {
	font-family: "GT Walsheim";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/GT-Walsheim-Regular.woff2") format("woff2");
}
@font-face {
	font-family: "GT Walsheim";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/GT-Walsheim-Bold.woff2") format("woff2");
}
@font-face {
	font-family: "GT Walsheim";
	font-style: italic;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/GT-Walsheim-Light-Oblique.woff2") format("woff2");
}
@font-face {
	font-family: "GT Walsheim";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/GT-Walsheim-Regular-Oblique.woff2") format("woff2");
}
@font-face {
	font-family: "GT Walsheim";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/GT-Walsheim-Bold-Oblique.woff2") format("woff2");
}

/*
 * English locales (en-HK, en-GB, …):
 * - html[lang|="en"] misses some casings; index.php adds .locale-en for a reliable hook.
 * - Main menu links sit under MDL/layout CSS; force the UI stack so Figtree wins over Roboto/system.
 */
html.locale-en,
html[lang|="en"],
html[lang^="en-"] {
	--font-sans: "Figtree", var(--font-sans-fallback);
}

html.locale-en #responsive-menu ul.menu > li > a,
html.locale-en #responsive-menu li a {
	font-family: var(--font-sans) !important;
}

html {
	font-family: var(--font-sans);
}
