/* ==========================================================================
   مكتبة الملفات الدراسية — تنسيقات الواجهة
   ========================================================================== */

.ef-app,
.ef-single,
.ef-related,
.ef-search--standalone,
.ef-page {
	--ef-ink: #12233b;
	--ef-ink-2: #5b6b83;
	--ef-ink-3: #8b98ac;
	--ef-paper: #fff;
	--ef-bg: #f5f7fa;
	--ef-line: #e3e8f0;
	--ef-accent: #0e7c66;
	--ef-accent-soft: #e6f2ef;
	--ef-stamp: #a8560d;
	--ef-stamp-soft: #fdf2e3;
	--ef-radius: 14px;
	--ef-shadow: 0 1px 2px rgba(18, 35, 59, .06), 0 8px 24px -14px rgba(18, 35, 59, .35);
	--ef-cols: 3;

	font-family: "Tajawal", "Cairo", "Noto Kufi Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--ef-ink);
	line-height: 1.7;
	direction: rtl;
	text-align: right;
	inline-size: 100%;
	min-inline-size: 0;
}

.ef-app,
.ef-single,
.ef-related,
.ef-latest {
	container-type: inline-size;
}

.ef-page,
.ef-page *,
.ef-app,
.ef-app *,
.ef-single,
.ef-single *,
.ef-related,
.ef-related *,
.ef-search--standalone,
.ef-search--standalone * {
	box-sizing: border-box;
}

/* صفحة الملف عربية بالكامل، بما فيها عنوان القالب ومحتوى المنشور. */
body.single-edu_file,
body.single-edu_file .site-main,
body.single-edu_file article,
body.single-edu_file .entry-header,
body.single-edu_file .entry-content,
body.single-edu_file .post-content {
	direction: rtl;
	text-align: right;
}

body.single-edu_file .entry-title,
body.single-edu_file .wp-block-post-title,
body.single-edu_file .post-title {
	direction: rtl;
	text-align: right !important;
}

/* لا نعرض اسم ناشر منشور ووردبريس أو تاريخ النشر في صفحات الملفات. */
body.single-edu_file .entry-meta,
body.single-edu_file .post-meta,
body.single-edu_file .byline,
body.single-edu_file .posted-on,
body.single-edu_file .post-author,
body.single-edu_file .post-date,
body.single-edu_file .wp-block-post-author,
body.single-edu_file .wp-block-post-author-name,
body.single-edu_file .wp-block-post-date {
	display: none !important;
}

.ef-wrap {
	width: 100%;
	margin-inline: auto;
	padding-inline: clamp(12px, 3vw, 42px);
}

/*
 * بعض قواعد العرض مثل display:flex تتغلب على تنسيق المتصفح الافتراضي
 * للخاصية hidden. نثبت معناها هنا لكل عناصر واجهة المكتبة.
 */
.ef-app [hidden],
.ef-search--standalone [hidden] {
	display: none !important;
}

.ef-h1 {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 .5rem;
	color: var(--ef-ink);
	overflow-wrap: anywhere;
}

.ef-h2 {
	font-size: 1.3rem;
	font-weight: 800;
	margin: 2.5rem 0 1rem;
	color: var(--ef-ink);
}

.ef-i {
	flex: none;
	vertical-align: middle;
}

/* --------------------------------------------------------------- الترويسة */
.ef-hero {
	padding: 2.2rem 0 1.4rem;
	border-block-end: 1px solid var(--ef-line);
	margin-block-end: 1.6rem;
}

.ef-hero__eyebrow {
	margin: 0 0 .35rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--ef-accent);
}

.ef-hero__intro {
	margin: 0;
	max-width: 62ch;
	color: var(--ef-ink-2);
	font-size: 1rem;
}

/* ------------------------------------------------------------- شريط الأدوات */
.ef-toolbar {
	display: grid;
	gap: 12px;
	width: 100%;
	padding: 14px;
	background: var(--ef-bg);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
}

.ef-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: calc(var(--ef-radius) - 4px);
	padding-inline: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ef-search:focus-within {
	border-color: var(--ef-accent);
	box-shadow: 0 0 0 3px var(--ef-accent-soft);
}

.ef-search > .ef-i {
	color: var(--ef-ink-3);
}

.ef-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--ef-ink);
	padding-block: 13px;
}

.ef-search__input::placeholder {
	color: var(--ef-ink-3);
}

.ef-search__input::-webkit-search-cancel-button {
	display: none;
}

.ef-search__clear {
	border: 0;
	background: transparent;
	color: var(--ef-ink-3);
	cursor: pointer;
	padding: 4px;
	line-height: 0;
	border-radius: 50%;
}

.ef-search__clear:hover {
	color: var(--ef-ink);
	background: var(--ef-bg);
}

.ef-search--standalone {
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	padding-inline-end: 6px;
}

.ef-search--standalone .ef-btn {
	margin-inline-start: 4px;
}

/* الاقتراحات */
.ef-suggest {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 6px);
	z-index: 40;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: calc(var(--ef-radius) - 4px);
	box-shadow: var(--ef-shadow);
	overflow: hidden;
	max-height: 340px;
	overflow-y: auto;
}

.ef-suggest__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	text-decoration: none;
	color: var(--ef-ink);
	border-block-end: 1px solid var(--ef-line);
}

.ef-suggest__item:last-child {
	border-block-end: 0;
}

.ef-suggest__item:hover,
.ef-suggest__item.is-active {
	background: var(--ef-accent-soft);
}

.ef-suggest__item img {
	width: 34px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	flex: none;
}

.ef-suggest__item b {
	display: block;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.4;
}

.ef-suggest__item small {
	color: var(--ef-ink-3);
	font-size: .8rem;
}

/* القوائم المنسدلة */
.ef-selects {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ef-select {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 999px;
	padding-inline: 14px;
	min-height: 42px;
	cursor: pointer;
}

.ef-select:focus-within {
	border-color: var(--ef-accent);
}

.ef-select__label {
	font-size: .8rem;
	font-weight: 700;
	color: var(--ef-ink-3);
	white-space: nowrap;
}

.ef-select select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	color: var(--ef-ink);
	outline: 0;
	padding-inline: 2px 4px;
	padding-block: 8px;
	max-width: 190px;
	cursor: pointer;
}

.ef-select .ef-i {
	color: var(--ef-ink-3);
	pointer-events: none;
}

/* ---------------------------------------------------------------- الشريط */
.ef-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block: 1.1rem .9rem;
}

.ef-summary {
	margin: 0;
	font-size: .92rem;
	font-weight: 600;
	color: var(--ef-ink-2);
}

.ef-reset {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid var(--ef-line);
	background: var(--ef-paper);
	color: var(--ef-ink-2);
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
}

.ef-reset:hover {
	color: var(--ef-ink);
	border-color: var(--ef-ink-3);
}

/* ---------------------------------------------------------------- الشبكة */
.ef-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
	gap: 18px;
}

.ef-grid[data-ef-columns="1"] {
	grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 480px) {

	.ef-grid[data-ef-columns="2"],
	.ef-grid[data-ef-columns="3"],
	.ef-grid[data-ef-columns="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (min-width: 760px) {

	.ef-grid[data-ef-columns="3"],
	.ef-grid[data-ef-columns="4"] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (min-width: 1040px) {

	.ef-grid[data-ef-columns="4"] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ef-grid.is-loading {
	opacity: .45;
	pointer-events: none;
	transition: opacity .15s ease;
}

/* البطاقة */
.ef-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ef-card:hover {
	transform: translateY(-3px);
	border-color: #d3dae6;
	box-shadow: var(--ef-shadow);
}

.ef-card__media {
	position: relative;
	display: block;
	aspect-ratio: 210 / 297;
	background: linear-gradient(160deg, #eef2f7, #e2e8f1);
	overflow: hidden;
}

/* التوقيع البصري: شريط «كعب الملزمة» على الحافة الداخلية */
.ef-card__media::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: 7px;
	background: repeating-linear-gradient(180deg, var(--ef-ink) 0 6px, rgba(18, 35, 59, .55) 6px 12px);
	opacity: .85;
}

.ef-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.ef-card__blank {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 100%;
	color: var(--ef-ink-3);
}

.ef-card__blank em {
	font-style: normal;
	font-weight: 700;
	font-size: .85rem;
	color: var(--ef-ink-2);
}

/* الختم */
.ef-stamp {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	background: var(--ef-stamp-soft);
	color: var(--ef-stamp);
	border: 1px dashed currentColor;
	border-radius: 6px;
	font-size: .72rem;
	font-weight: 800;
	padding: 3px 9px;
	transform: rotate(-3deg);
	letter-spacing: .01em;
}

.ef-card__body {
	padding: 12px 14px 4px;
	flex: 1;
}

.ef-card__eyebrow {
	margin: 0 0 4px;
	font-size: .78rem;
	font-weight: 700;
	color: var(--ef-accent);
	min-height: 1em;
}

.ef-card__title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.55;
}

.ef-card__title a {
	color: var(--ef-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ef-card__title a:hover {
	color: var(--ef-accent);
}

.ef-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: .82rem;
	color: var(--ef-ink-2);
}

.ef-facts li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.ef-facts .ef-i {
	color: var(--ef-ink-3);
}

.ef-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px 14px;
}

.ef-count {
	font-size: .8rem;
	font-weight: 700;
	color: var(--ef-ink-3);
}

.ef-count::before {
	content: "↓ ";
}

/* ---------------------------------------------------------------- الأزرار */
.ef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	font-size: .92rem;
	text-decoration: none;
	padding: 10px 18px;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ef-btn--solid {
	background: var(--ef-accent);
	color: #fff;
}

.ef-btn--solid:hover {
	background: color-mix(in srgb, var(--ef-accent) 85%, #000);
	color: #fff;
}

.ef-btn--sm {
	padding: 7px 14px;
	font-size: .86rem;
}

.ef-btn--ghost {
	background: var(--ef-paper);
	border-color: var(--ef-line);
	color: var(--ef-ink);
}

/* -------------------------------------------------------------- لا نتائج */
.ef-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--ef-ink-2);
	background: var(--ef-bg);
	border: 1px dashed var(--ef-line);
	border-radius: var(--ef-radius);
}

.ef-empty .ef-i {
	color: var(--ef-ink-3);
	margin-block-end: .5rem;
}

.ef-empty p {
	margin: 0;
	font-weight: 600;
}

/* ------------------------------------------------------------ ترقيم الصفحات */
.ef-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-block: 2rem 1rem;
}

.ef-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-inline: 12px;
	border: 1px solid var(--ef-line);
	border-radius: 10px;
	background: var(--ef-paper);
	color: var(--ef-ink-2);
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
}

.ef-pagination .page-numbers:hover {
	border-color: var(--ef-accent);
	color: var(--ef-accent);
}

.ef-pagination .page-numbers.current {
	background: var(--ef-ink);
	border-color: var(--ef-ink);
	color: #fff;
}

.ef-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ------------------------------------------------------------- التحميل */
.ef-loading {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 1.2rem 0;
}

.ef-loading span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ef-accent);
	animation: ef-bounce 1s infinite ease-in-out;
}

.ef-loading span:nth-child(2) {
	animation-delay: .12s;
}

.ef-loading span:nth-child(3) {
	animation-delay: .24s;
}

@keyframes ef-bounce {

	0%, 80%, 100% {
		transform: translateY(0);
		opacity: .4;
	}

	40% {
		transform: translateY(-7px);
		opacity: 1;
	}
}

/* =========================================================== صفحة الملف */
.ef-single-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-block-end: 1.25rem;
	direction: rtl;
}

.ef-single-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	margin: 0;
	direction: rtl;
}

.ef-back-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 7px 15px;
	color: var(--ef-ink);
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(18, 35, 59, .05);
	font-size: .9rem;
	font-weight: 750;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}

.ef-back-all:hover {
	color: var(--ef-accent);
	border-color: color-mix(in srgb, var(--ef-accent) 35%, var(--ef-line));
	background: var(--ef-accent-soft);
	transform: translateY(-1px);
}

.ef-back-all .ef-i {
	color: var(--ef-accent);
}

.ef-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	direction: ltr;
}

.ef-single__grid > * {
	direction: rtl;
	text-align: right;
}

@container (min-width: 760px) {

	.ef-single__grid {
		grid-template-columns: clamp(240px, 28%, 320px) minmax(0, 1fr);
	}

	.ef-single__cover {
		width: 100%;
		max-width: none;
		margin-inline: 0;
	}
}

.ef-single__cover {
	position: relative;
	direction: ltr;
	width: min(100%, 380px);
	max-width: 100%;
	margin-inline: auto;
	border-radius: var(--ef-radius);
	overflow: hidden;
	border: 1px solid var(--ef-line);
	background: linear-gradient(160deg, #eef2f7, #e2e8f1);
	aspect-ratio: 210 / 297;
}

.ef-single__cover img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.ef-single__cover::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: 9px;
	background: repeating-linear-gradient(180deg, var(--ef-ink) 0 8px, rgba(18, 35, 59, .5) 8px 16px);
	opacity: .85;
}

.ef-badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	gap: 10px;
	margin: 0;
	padding: 0;
	direction: rtl;
	text-align: right;
}

.ef-badges .ef-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 5px 7px 5px 12px;
	margin: 0;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 12px;
	box-shadow: 0 4px 14px -12px rgba(18, 35, 59, .5);
}

.ef-badge__label {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 9px;
	background: var(--ef-accent-soft);
	color: var(--ef-accent);
	border-radius: 8px;
	font-size: .72rem;
	font-weight: 750;
	white-space: nowrap;
}

.ef-badges a {
	display: inline-block;
	color: var(--ef-ink);
	font-size: .86rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	max-width: 100%;
}

.ef-badges a:hover {
	color: var(--ef-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@container (max-width: 620px) {

	.ef-single-toolbar {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.ef-badges {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		gap: 7px;
	}

	.ef-badges .ef-badge {
		width: 100%;
		min-width: 0;
		min-height: 38px;
		gap: 6px;
		padding: 4px 6px 4px 9px;
	}

	.ef-badges a {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.ef-single-nav {
		width: 100%;
	}

	.ef-back-all {
		width: 100%;
		min-height: 44px;
		justify-content: center;
		padding-inline: 11px;
	}
}

/* احتياط للمتصفحات القديمة التي لا تدعم استعلامات الحاوية. */
@media (max-width: 620px) {

	.ef-single-toolbar {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.ef-badges {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		gap: 7px;
	}

	.ef-badges .ef-badge {
		width: 100%;
		min-width: 0;
		min-height: 38px;
		gap: 6px;
		padding: 4px 6px 4px 9px;
	}

	.ef-badges a {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.ef-single-nav,
	.ef-back-all {
		width: 100%;
	}

	.ef-back-all {
		min-height: 44px;
		justify-content: center;
		padding-inline: 11px;
	}
}

/* جدول المواصفات */
.ef-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	margin: 0 0 1.6rem;
	background: var(--ef-line);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	overflow: hidden;
}

.ef-specs > div {
	background: var(--ef-paper);
	padding: 12px 14px;
}

.ef-specs dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .8rem;
	font-weight: 600;
	color: var(--ef-ink-3);
	margin: 0 0 3px;
}

.ef-specs dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ef-ink);
}

/* صندوق التحميل */
.ef-dlbox {
	background: var(--ef-bg);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	padding: 16px;
}

.ef-dlbox__title {
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 800;
}

.ef-dlbox__list {
	display: grid;
	gap: 10px;
}

.ef-dl {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-inline-start: 4px solid var(--ef-prov, var(--ef-accent));
	border-radius: calc(var(--ef-radius) - 4px);
	padding: 12px 14px;
	text-decoration: none;
	color: var(--ef-ink);
	transition: transform .15s ease, box-shadow .15s ease;
}

.ef-dl:hover {
	transform: translateY(-2px);
	box-shadow: var(--ef-shadow);
	color: var(--ef-ink);
}

.ef-dl.is-counting {
	pointer-events: none;
	border-color: color-mix(in srgb, var(--ef-prov, var(--ef-accent)) 40%, var(--ef-line));
	box-shadow: 0 8px 24px color-mix(in srgb, var(--ef-prov, var(--ef-accent)) 12%, transparent);
}

.ef-dl__ic {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--ef-prov, var(--ef-accent)) 12%, #fff);
	color: var(--ef-prov, var(--ef-accent));
	flex: none;
}

.ef-dl__txt {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}

.ef-dl__txt strong {
	display: block;
	font-size: .98rem;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.ef-dl__txt small {
	display: block;
	color: var(--ef-ink-3);
	font-size: .8rem;
	overflow-wrap: anywhere;
}

.ef-dl__go {
	color: var(--ef-prov, var(--ef-accent));
	flex: none;
}

.ef-dl__countdown {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ef-prov, var(--ef-accent));
	color: #fff;
	font-size: .9rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--ef-prov, var(--ef-accent)) 12%, transparent);
}

.ef-download-frame {
	display: none !important;
	width: 0;
	height: 0;
	border: 0;
}

.ef-dlbox__note {
	margin: 12px 0 0;
	font-size: .82rem;
	color: var(--ef-ink-3);
}

.ef-desc {
	margin-block: 2rem;
	font-size: 1.02rem;
	line-height: 1.9;
	color: #253449;
	direction: rtl;
	text-align: right;
	overflow-wrap: anywhere;
}

.ef-desc img,
.ef-desc video,
.ef-desc iframe,
.ef-desc embed,
.ef-desc object {
	max-width: 100%;
	height: auto;
}

.ef-desc table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ef-desc pre,
.ef-desc code {
	max-width: 100%;
	overflow-x: auto;
}

.ef-related {
	margin-block-start: 2.5rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--ef-line);
}

/* ------------------------------------------------------- الهاتف والأجهزة اللمسية */
@media (max-width: 767px) {

	.ef-wrap {
		padding-inline: clamp(10px, 3.5vw, 18px);
	}

	.ef-hero {
		padding-block: 1.35rem 1rem;
		margin-block-end: 1rem;
	}

	.ef-hero__intro {
		font-size: .92rem;
	}

	.ef-toolbar {
		gap: 10px;
		padding: 10px;
		border-radius: 12px;
	}

	.ef-search {
		gap: 8px;
		padding-inline: 10px;
	}

	.ef-search__input {
		font-size: 16px;
		padding-block: 11px;
	}

	.ef-selects {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ef-select {
		width: 100%;
		min-width: 0;
		min-height: 46px;
		padding-inline: 10px;
		border-radius: 11px;
	}

	.ef-select select {
		width: 100%;
		min-width: 0;
		max-width: none;
		font-size: .88rem;
	}

	.ef-select__label {
		font-size: .72rem;
	}

	.ef-bar {
		flex-wrap: wrap;
		margin-block: .9rem .75rem;
	}

	.ef-reset {
		min-height: 44px;
	}

	.ef-grid {
		gap: 14px;
	}

	.ef-card__body {
		padding: 11px 12px 4px;
	}

	.ef-card__foot {
		padding: 9px 12px 12px;
	}

	.ef-btn {
		min-height: 44px;
	}

	.ef-pagination {
		gap: 5px;
		margin-block: 1.5rem .75rem;
	}

	.ef-pagination .page-numbers {
		min-width: 44px;
		height: 44px;
		padding-inline: 10px;
	}

	.ef-single__grid {
		gap: 18px;
	}

	.ef-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-block-end: 1rem;
	}

	.ef-specs > div {
		min-width: 0;
		padding: 10px 11px;
	}

	.ef-specs dt,
	.ef-specs dd {
		overflow-wrap: anywhere;
	}

	.ef-dlbox {
		padding: 11px;
	}

	.ef-dl {
		min-height: 68px;
		gap: 10px;
		padding: 10px 11px;
	}

	.ef-dl__ic {
		width: 40px;
		height: 40px;
	}

	.ef-desc {
		margin-block: 1.4rem;
		font-size: .97rem;
		line-height: 1.8;
	}

	.ef-related {
		margin-block-start: 1.75rem;
		padding-block-start: 1rem;
	}

	.ef-h2 {
		margin-block: 1.75rem .8rem;
	}
}

@media (max-width: 420px) {

	.ef-selects {
		grid-template-columns: minmax(0, 1fr);
	}

	.ef-summary {
		flex: 1 1 auto;
	}

	.ef-specs {
		gap: 1px;
	}

	.ef-dl {
		gap: 8px;
		padding-inline: 9px;
	}

	.ef-dl__ic {
		width: 38px;
		height: 38px;
		border-radius: 9px;
	}

	.ef-dl__go {
		margin-inline-start: 2px;
	}
}

@media (max-width: 340px) {

	.ef-specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.ef-dl__go {
		display: none;
	}
}

@media (hover: none) and (pointer: coarse) {

	.ef-card:hover,
	.ef-dl:hover,
	.ef-back-all:hover {
		transform: none;
	}

	.ef-search__clear {
		display: grid;
		place-items: center;
		min-width: 44px;
		min-height: 44px;
		margin-inline-end: -8px;
	}
}

/* ------------------------------------------------------------- إتاحة */
.ef-btn:focus-visible,
.ef-dl:focus-visible,
.ef-card__title a:focus-visible,
.ef-select select:focus-visible,
.ef-suggest__item:focus-visible {
	outline: 3px solid var(--ef-accent);
	outline-offset: 2px;
	border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {

	.ef-card,
	.ef-dl,
	.ef-loading span {
		transition: none;
		animation: none;
	}

	.ef-card:hover,
	.ef-dl:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------- الوضع الليلي */
@media (prefers-color-scheme: dark) {

	.ef-app.ef-dark,
	.ef-single.ef-dark {
		--ef-ink: #eef2f7;
		--ef-ink-2: #b3bfd0;
		--ef-ink-3: #8493a8;
		--ef-paper: #17202c;
		--ef-bg: #111823;
		--ef-line: #26313f;
	}
}
