/**
 * plugins/themes/default/styles/kurdish-font.css
 *
 * Kurdish text uses K24, the font of the Soran University website
 * (main.soran.edu.iq): the whole site when the interface is Kurdish
 * (<html lang="ku">), and any Kurdish block on other pages (lang="ku",
 * e.g. the Kurdish tab of the Guide page). Text marked as another language
 * inside a Kurdish page keeps the theme font. Icon fonts are left alone.
 *
 * K24 has a single (bold) weight, declared for every weight so the browser
 * never fakes a heavier bold on top of it. Its letters are small for their
 * size, so the font face is scaled with size-adjust.
 */
@font-face {
	font-family: 'K24';
	src: url('../fonts/K24.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	/* K24 draws its letters about 30% smaller than other fonts at the same
	   size (alif 53 vs 74-76 units for Segoe UI/Tahoma), so scale it up. */
	size-adjust: 130%;
}

[lang|="ku"],
[lang|="ckb"],
[lang|="ku"] *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
[lang|="ckb"] *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
	font-family: 'K24', Tahoma, Arial, sans-serif !important;
}

/* The logged-in user's name chip in the header keeps the theme font and size */
[lang|="ku"] #navigationUser > li > a,
[lang|="ckb"] #navigationUser > li > a {
	font-family: Lato, sans-serif !important;
}

/* Another language inside a Kurdish page (English tab, English titles...) */
[lang|="ku"] [lang]:not([lang|="ku"]):not([lang|="ckb"]),
[lang|="ku"] [lang]:not([lang|="ku"]):not([lang|="ckb"]) *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
[lang|="ckb"] [lang]:not([lang|="ku"]):not([lang|="ckb"]),
[lang|="ckb"] [lang]:not([lang|="ku"]):not([lang|="ckb"]) *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
	font-family: Lato, sans-serif !important;
}

/* ...and Kurdish again inside that (e.g. Kurdish video titles in the English tab) */
[lang] [lang]:not([lang|="ku"]):not([lang|="ckb"]) [lang|="ku"][lang|="ku"]:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
[lang] [lang]:not([lang|="ku"]):not([lang|="ckb"]) [lang|="ku"] *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
[lang] [lang]:not([lang|="ku"]):not([lang|="ckb"]) [lang|="ckb"][lang|="ckb"]:not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
[lang] [lang]:not([lang|="ku"]):not([lang|="ckb"]) [lang|="ckb"] *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
	font-family: 'K24', Tahoma, Arial, sans-serif !important;
}
