/*
 * DK GROUP / مجموعة دخون - desk + web typography and RTL touch-ups.
 *
 * Arabic glyphs: Frappe and every nexus_theme preset use "Inter"/"InterVariable",
 * which have no Arabic. Registering IBM Plex Sans Arabic (OFL-1.1) as the Arabic
 * unicode-range of those same families makes the browser take Arabic from Plex and
 * Latin from Inter, whichever theme a user picks.
 */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/dk_theme/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
		U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/dk_theme/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
		U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/dk_theme/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
		U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/dk_theme/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
		U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* InterVariable is a single variable face; one Arabic companion covering the weight range */
@font-face {
	font-family: "InterVariable";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/dk_theme/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
		U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Arabic script needs a touch more line height than Latin to keep diacritics clear */
html[lang="ar"] body {
	line-height: 1.6;
}

/*
 * nexus_theme d37575d sets `margin-right: auto` inline on the theme dialog's
 * "Reset to Default" button. Mirror it for RTL so the footer lays out like LTR.
 */
html[dir="rtl"] .modal-footer .btn-reset-theme {
	margin-right: 0 !important;
	margin-left: auto !important;
}

/* Login page language switch (public/js/dk_login.js) */
.dk-lang-switch {
	position: fixed;
	top: 18px;
	inset-inline-end: 22px;
	z-index: 20;
	padding: 6px 12px;
	border: 1px solid var(--theme-border, #e4dccf);
	border-radius: 999px;
	background: var(--theme-bg-surface, #fff);
	color: var(--theme-text-primary, #231f20);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
}
.dk-lang-switch:hover,
.dk-lang-switch:focus-visible {
	border-color: var(--theme-accent, #7d6547);
	color: var(--theme-accent, #7d6547);
	text-decoration: none;
}

/*
 * Nexus login: English and mixed lines inside the RTL page keep their own direction, so
 * trailing punctuation stays at the end (".POS and accounts in one place" otherwise).
 */
.nxlogin-panel-sub,
.nxlogin-footnote {
	unicode-bidi: plaintext;
}
html[dir="rtl"] .nxlogin-panel-sub,
html[dir="rtl"] .nxlogin-footnote {
	text-align: right;
}
