/*
 * tq-core tokens (spec §2.5, gates R4/R5): our names mapped to the Foxiz theme variables.
 * No colour value lives here: the brand values are set in Theme Options only, and dark mode is the theme's own
 * [data-theme="dark"] switch of those variables, so nothing below needs a dark rule.
 * --tq-plate is the fixed light plate for official logos and badges (the same in light and dark: no inversion, B1-05).
 * --tq-offer is the one colour the theme has no setting for: the offer green of the live game page (5178:2000 / 2131 /
 * 2133, light #0F7B3A, dark #5FD68E), used by the offer box, the hero offer button and the «مجانية» price.
 * --tq-brand-<store> are the store brand colours of the live «أين تشتريها» buttons (5178 tq128s_css_stores + 15934:314
 * dark Xbox), the colour a store button takes on hover around its mark (tq_icon( 'brand-<store>' )).
 * --tq-brand-amazon / --tq-on-brand-amazon: Amazon's DARK orange #dd7400 with white text (630 v2, Sherif 18/11 20:50; white on it = 3.20:1, #e47911 gave 2.98:1 and fails 3:1);
 * --tq-brand-jbl: JBL orange, the company colour of its official-site tile (one line per company that gets a tile colour).
 * --tq-kind-<free|sub|prime|cut> are the offer-kind colours of the live card badge (4852 tq381_colors 'offer': free
 * green, subscription purple, Prime blue, discount red; white text, the same in dark).
 */
:root,
body {
	--tq-accent: var(--g-color);
	--tq-text: var(--body-fcolor);
	--tq-muted: var(--meta-fcolor);
	--tq-surface: var(--solid-white);
	--tq-soft: var(--flex-gray-7);
	--tq-line: var(--flex-gray-15);
	--tq-plate: var(--wp--preset--color--white);
	--tq-on-plate: var(--wp--preset--color--black);
	--tq-shade: var(--shadow-12);
	--tq-radius: var(--round-7, 7px);
	--tq-radius-s: var(--round-5, 5px);
	--tq-effect: var(--effect);
	--tq-font-title: var(--h4-family);
	--tq-font-meta: var(--meta-family);
	--tq-gap-xs: 4px;
	--tq-gap-s: 6px;
	--tq-gap-m: 10px;
	--tq-gap-l: 16px;
	--tq-back-gap: var(--tq-gap-l);
	--tq-offer: #0f7b3a;
	--tq-brand-noon: #feee00;
	--tq-brand-jumia: #f68b1e;
	--tq-brand-official: #333;
	--tq-brand-steam: #000;
	--tq-brand-playstation: #0070d1;
	--tq-brand-xbox: #107c10;
	--tq-brand-nintendo: #e60012;
	--tq-brand-windows: #0078d4;
	--tq-brand-mobile: #3ddc84;
	--tq-on-brand: #fff;
	--tq-on-brand-mobile: #0b2e1a;
	--tq-brand-amazon: #dd7400;
	--tq-on-brand-amazon: #fff;
	--tq-brand-jbl: #ff3300;
	--tq-brand-epic: #313131;
	--tq-brand-gog: #86328a;
	--tq-brand-luna: #8539ff; /* official Luna icon purple (18/11) */
	--tq-brand-apple: #000;
	--tq-brand-google_play: #414141;
	--tq-kind-free: #0f7b3a;
	--tq-kind-sub: #6d28d9;
	--tq-kind-prime: #146eb4;
	--tq-kind-cut: #b91c1c;
}

[data-theme="dark"] {
	--tq-offer: #5fd68e;
	--tq-brand-xbox: #52b043;
}

/*
 * The back / category chip above a page title («→ الألعاب», «→ الشركات», …): one gap under it for every page type (game,
 * product, company, lists; LISTS-CHECK A4). Two classes, so it also wins over the legacy inline .tq-back rule of 5178.
 */
.s-cats.tq-back {
	margin: 0 0 var(--tq-back-gap);
}

.tq-icon {
	display: inline-block;
	flex: none;
	vertical-align: -0.125em;
}

.tq-icon--dir:dir(rtl) {
	transform: scaleX(-1);
}
