/**
 * مجلة إشراقات تنموية — مكوّنات المجلة (.ish-*):
 * العدد الحالي، الأغلفة، فهرس العدد، سطر البحث، صفحة البحث، أرشيف الأعداد.
 * يعتمد على متغيّرات site.css (--adh-* و --ish-*).
 */

/* ---------- الشعار ---------- */
.adh-brand__emblem { width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto; object-fit: contain; background: #fff; }
.adh-brand--light .adh-brand__emblem { box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.adh-brand__text small span { color: var(--adh-muted); font-weight: 500; }
.adh-brand--light .adh-brand__text small span { color: #9fb0c4; }
.adh-brand__text small { color: var(--ish-green) !important; }
.adh-brand--light .adh-brand__text small { color: var(--adh-gold) !important; }

/* ---------- عناصر مشتركة ---------- */
.ish-ico { flex: 0 0 auto; vertical-align: middle; }
.ish-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.5; padding: 3px 10px; border-radius: 6px; background: var(--ish-green-50); color: var(--ish-green-700) !important; }
a.ish-badge:hover { background: var(--ish-green); color: #fff !important; }
.ish-badge--lang { background: #eef2f7; color: var(--adh-navy-700) !important; font-family: "Segoe UI", Arial, sans-serif; letter-spacing: .02em; }
.ish-badge--solid { background: var(--adh-navy); color: #fff !important; }

/* غلاف بديل (عدد بلا صورة غلاف) */
.ish-cover-ph { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 18px 16px; box-sizing: border-box; color: #fff; text-align: center;
	background: radial-gradient(circle at 80% 10%, rgba(184, 137, 44, .35), transparent 45%), linear-gradient(160deg, var(--adh-navy-700), var(--adh-navy-900)); }
.ish-cover-ph__name { font-weight: 700; font-size: 15px; color: var(--adh-gold); }
.ish-cover-ph b { font-size: 64px; line-height: 1; font-weight: 700; }
.ish-cover-ph span:last-child { font-size: 13px; color: #c9d3e0; }

/* ---------- الرئيسية: العدد الحالي ---------- */
.ish-hero { padding: 36px 0 56px; background: linear-gradient(180deg, var(--adh-tint), #fff); }
.ish-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: stretch; }
.ish-hero__issue { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: center; padding: 32px; background: #fff; border: 1px solid var(--adh-line); border-radius: 20px; box-shadow: var(--adh-shadow); }
.ish-hero__cover { display: block; aspect-ratio: 210 / 297; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--adh-navy); box-shadow: -10px 14px 30px rgba(9, 27, 46, .28); transition: transform .3s; }
.ish-hero__cover:hover { transform: translateY(-4px); }
/* الأغلفة المرفوعة غالباً بصيغة "فرش": الواجهة العربية في النصف الأيسر والإنكليزية في الأيمن. */
.ish-hero__cover img, .ish-issue-card__cover img, .ish-issue__cover img, .ish-dl__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; display: block; }
.ish-hero__body { min-width: 0; }
.ish-hero__title { font-size: 44px !important; line-height: 1.2 !important; color: var(--adh-navy); }
.ish-hero__period { display: flex; align-items: center; gap: 8px; margin-top: 10px !important; font-size: 18px; font-weight: 600; color: var(--ish-green); }
.ish-hero__text { margin-top: 16px !important; color: var(--adh-muted); font-size: 16px; line-height: 1.95; max-width: 60ch; }

.ish-facts { background: #fff; border: 1px solid var(--adh-line); border-radius: 20px; padding: 24px; box-shadow: var(--adh-shadow); display: flex; flex-direction: column; }
.ish-facts dl { margin: 0; display: grid; }
.ish-facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--adh-line); font-size: 14.5px; }
.ish-facts dt { color: var(--adh-muted); font-weight: 500; }
.ish-facts dd { margin: 0; color: var(--adh-navy); font-weight: 600; text-align: end; }
.ish-facts__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 18px; }
.ish-facts__links .adh-btn { padding: 0 10px; font-size: 14px; min-height: 42px; }

/* ---------- سطر البحث ---------- */
.ish-rows { display: grid; gap: 14px; }
.ish-rows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ish-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--adh-line); border-radius: var(--adh-radius); transition: border-color .2s, box-shadow .2s; }
.ish-row:hover { border-color: #cfd7e2; box-shadow: var(--adh-shadow); }
.ish-row--num { grid-template-columns: 40px minmax(0, 1fr) auto; }
.ish-row__num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--adh-tint); color: var(--adh-navy); font-weight: 700; font-size: 14px; }
.ish-row__body { min-width: 0; }
.ish-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ish-row__tags:empty { display: none; }
.ish-row__title { font-size: 17px !important; line-height: 1.7 !important; font-weight: 600 !important; }
.ish-row__title a { color: var(--adh-navy) !important; }
.ish-row__title a:hover { color: var(--ish-green) !important; }
.ish-row__title[dir="ltr"] { text-align: left; font-family: "Segoe UI", Arial, sans-serif !important; }
.ish-row__authors { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; font-size: 14px; color: var(--adh-navy-700); font-weight: 500; }
.ish-row__authors .ish-ico { color: var(--adh-gold-600); }
.ish-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--adh-muted); }
.ish-row__actions { display: flex; flex-direction: column; gap: 6px; }
.ish-row__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--adh-tint); color: var(--adh-navy) !important; }
.ish-row__btn:hover { background: var(--adh-navy); color: #fff !important; }
.ish-row__btn--pdf { background: var(--adh-gold-50); color: var(--adh-gold-600) !important; }
.ish-row__btn--pdf:hover { background: var(--adh-gold); color: var(--adh-navy-900) !important; }
.ish-rows--2 .ish-row { grid-template-columns: minmax(0, 1fr); }
.ish-rows--2 .ish-row__actions { flex-direction: row; }

/* ---------- أرشيف البحوث: الفلاتر ---------- */
.ish-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; width: 100%; }
.ish-filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--adh-muted); margin: 0; }
.ish-filters select { height: 40px; min-width: 130px; max-width: 260px; padding: 0 12px; border: 1.5px solid var(--adh-line); border-radius: 10px; background: #fff; font: 14px var(--adh-font); color: var(--adh-ink); }
.ish-filters select:focus { outline: none; border-color: var(--adh-gold); }
.ish-filters__reset { font-size: 14px; font-weight: 600; color: var(--adh-gold-600) !important; margin-inline-start: auto; }
.ish-research__list { max-width: 980px; }

/* ---------- رف الأعداد ---------- */
.ish-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 22px; }
.ish-issue-card { display: flex; flex-direction: column; min-width: 0; }
.ish-issue-card__cover { display: block; aspect-ratio: 210 / 297; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--adh-navy); box-shadow: -6px 8px 20px rgba(9, 27, 46, .2); transition: transform .3s, box-shadow .3s; }
.ish-issue-card__cover:hover { transform: translateY(-5px); box-shadow: -8px 14px 28px rgba(9, 27, 46, .28); }
.ish-issue-card__title { font-size: 16px !important; margin-top: 14px !important; }
.ish-issue-card__title a { color: var(--adh-navy) !important; }
.ish-issue-card__meta { font-size: 13px; color: var(--adh-muted); margin-top: 2px !important; }

/* ---------- أرشيف الأعداد ---------- */
.ish-year { padding-bottom: 44px; margin-bottom: 40px; border-bottom: 1px solid var(--adh-line); scroll-margin-top: 80px; }
.ish-year:last-child { border-bottom: 0; }
.ish-year__title { font-size: 24px !important; margin-bottom: 22px !important; display: flex; align-items: baseline; gap: 10px; color: var(--adh-navy); }
.ish-year__title small { font-size: 14px; color: var(--adh-muted); font-weight: 500; }
.ish-archive .adh-subnav a { padding: 6px 14px; border-radius: 999px; background: var(--adh-tint); color: var(--adh-navy) !important; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ish-archive .adh-subnav a:hover { background: var(--adh-navy); color: #fff !important; }

/* ---------- صفحة العدد ---------- */
.ish-issue__head { padding: 32px 0 48px; background: linear-gradient(180deg, var(--adh-tint), #fff); }
.ish-issue__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 18px; }
.ish-issue__cover { aspect-ratio: 210 / 297; border-radius: 4px 12px 12px 4px; overflow: hidden; background: var(--adh-navy); box-shadow: -12px 16px 34px rgba(9, 27, 46, .28); }
.ish-issue__info { min-width: 0; }
.ish-issue__title { font-size: 46px !important; line-height: 1.2 !important; color: var(--adh-navy); }
.ish-issue__sub { margin-top: 8px !important; font-size: 17px; color: var(--ish-green); font-weight: 600; }
.ish-issue__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0 0; border: 1px solid var(--adh-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ish-issue__meta > div { flex: 1 1 140px; padding: 12px 18px; border-inline-start: 1px solid var(--adh-line); }
.ish-issue__meta > div:first-child { border-inline-start: 0; }
.ish-issue__meta dt { font-size: 12.5px; color: var(--adh-muted); }
.ish-issue__meta dd { margin: 2px 0 0; font-weight: 700; color: var(--adh-navy); font-size: 16px; }
.ish-issue__meta dd a { color: var(--ish-green) !important; }
.ish-issue__desc { margin-top: 16px; color: var(--adh-muted); line-height: 1.9; }

.ish-toc .adh-wrap--narrow { max-width: 980px; }
.ish-toc__group + .ish-toc__group { margin-top: 48px; }
.ish-toc__title { display: flex; align-items: center; gap: 10px; font-size: 22px !important; margin-bottom: 18px !important; padding-inline-start: 14px; border-inline-start: 4px solid var(--adh-gold); color: var(--adh-navy); }
.ish-toc__title small { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--adh-tint); color: var(--adh-muted); font-weight: 600; }
.ish-toc__title[dir="ltr"] { font-family: "Segoe UI", Arial, sans-serif !important; }
.ish-empty p { color: var(--adh-muted); margin-bottom: 18px !important; }
.ish-issue__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--adh-line); }
.ish-issue__nav-link { display: flex; flex-direction: column; gap: 2px; color: var(--adh-navy) !important; }
.ish-issue__nav-link small { color: var(--adh-muted); font-size: 12.5px; }
.ish-issue__nav-link--end { text-align: end; }
.ish-issue__nav-all { padding: 8px 18px; border-radius: 999px; background: var(--adh-tint); color: var(--adh-navy) !important; font-weight: 600; font-size: 14px; }

/* ---------- صفحة البحث ---------- */
.ish-paper__title { font-size: 34px !important; margin-top: 12px !important; }
.ish-paper__title[dir="ltr"] { text-align: left; font-family: "Segoe UI", Arial, sans-serif !important; }
.ish-authors { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ish-authors li { display: flex; align-items: center; gap: 10px; }
.ish-authors li > span:last-child { display: flex; flex-direction: column; }
.ish-authors b { color: var(--adh-navy); font-size: 15.5px; }
.ish-authors small { color: var(--adh-muted); font-size: 13px; }
.ish-authors .adh-avatar { width: 40px; height: 40px; font-size: 16px; }
.ish-paper__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--adh-line); }
.ish-paper__meta > div { padding: 14px 24px 0 0; padding-inline: 0 28px; }
.ish-paper__meta dt { font-size: 12px; color: var(--adh-muted); }
.ish-paper__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--adh-navy); }
.ish-paper__meta dd a { color: var(--ish-green) !important; }

.ish-paper .adh-article__layout { grid-template-columns: minmax(0, 1fr) 290px; }
.ish-paper__content { font-family: var(--ish-serif) !important; font-size: 19px; line-height: 2.1; }
.ish-paper__content[dir="ltr"] { font-family: Georgia, "Times New Roman", serif !important; font-size: 18px; line-height: 1.85; text-align: left; }
.ish-paper__content[dir="ltr"] p { text-align: left !important; }

.ish-dl { background: var(--adh-navy); color: #fff; border-radius: var(--adh-radius); padding: 20px; display: grid; gap: 14px; }
.ish-dl h2 { font-size: 14px !important; color: #9fb0c4 !important; font-weight: 600 !important; margin: 0 !important; }
.ish-dl p { font-size: 14px; line-height: 1.8; color: #d6dee8; margin: 0 !important; }
.ish-dl .adh-btn { width: 100%; box-sizing: border-box; }
.ish-dl__issue { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff !important; }
.ish-dl__issue > span:last-child { display: flex; flex-direction: column; }
.ish-dl__issue small { color: #9fb0c4; font-size: 12px; }
.ish-dl__issue b { font-size: 16px; }
.ish-dl__cover { aspect-ratio: 210 / 297; border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--adh-navy-700); }
.ish-dl__cover .ish-cover-ph { padding: 6px; }
.ish-dl__cover .ish-cover-ph b { font-size: 20px; }
.ish-dl__cover .ish-cover-ph__name, .ish-dl__cover .ish-cover-ph span:last-child { display: none; }
.ish-kw a { background: var(--ish-green-50) !important; color: var(--ish-green-700) !important; }
.ish-kw a:hover { background: var(--ish-green) !important; color: #fff !important; }
.ish-siblings { margin-top: 44px; }
.ish-siblings .adh-head__title { font-size: 21px; }

/* ---------- رأس الجوال ---------- */
.bs-theme .rh-header .ish-rh-brand a { display: inline-flex !important; align-items: center; gap: 10px; height: 100%; font-size: 19px !important; line-height: 1 !important; }
.bs-theme .rh-header .ish-rh-brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; max-height: none !important; }

/* ---------- القائمة: رابط English ---------- */
.bs-theme .main-menu > li.ish-menu-en > a { font-family: "Segoe UI", Arial, sans-serif !important; color: var(--ish-green) !important; }

/* ---------- الموقع الإنجليزي (LTR) ---------- */
html:not([dir="rtl"]) {
	--adh-font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
	--ish-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
/* في الموقع الإنجليزي نُظهر الواجهة الإنجليزية من غلاف "الفرش" (النصف الأيمن). */
html:not([dir="rtl"]) .ish-hero__cover img, html:not([dir="rtl"]) .ish-issue-card__cover img, html:not([dir="rtl"]) .ish-issue__cover img, html:not([dir="rtl"]) .ish-dl__cover img { object-position: 100% 50%; }
html:not([dir="rtl"]) .adh-progress span { transform-origin: left; }
html:not([dir="rtl"]) .adh-article__source { text-align: left; }
html:not([dir="rtl"]) .adh-article__content blockquote { border-radius: 12px 0 0 12px; }
html:not([dir="rtl"]) .ish-hero__cover, html:not([dir="rtl"]) .ish-issue__cover { box-shadow: 10px 14px 30px rgba(9, 27, 46, .28); }
html:not([dir="rtl"]) .ish-issue-card__cover { box-shadow: 6px 8px 20px rgba(9, 27, 46, .2); }
html:not([dir="rtl"]) .ish-paper__content { font-size: 18.5px; line-height: 1.85; }
html:not([dir="rtl"]) .adh-brand__text b { letter-spacing: -.01em; }
/* نص عربي داخل الموقع الإنجليزي */
.ish-row__title[dir="rtl"], .ish-paper__title[dir="rtl"], .ish-toc__title[dir="rtl"] { text-align: right; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif !important; }
.ish-paper__content[dir="rtl"] { font-family: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif !important; text-align: right; line-height: 2.05; }
.ish-paper__content[dir="rtl"] p { text-align: right !important; }
.ish-toc__source { margin-top: 28px !important; font-size: 14px; color: var(--adh-muted); }
.ish-toc__source a { color: var(--ish-green) !important; font-weight: 600; margin-inline-start: 6px; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
	.ish-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.ish-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.ish-facts__links { grid-template-columns: repeat(2, max-content); }
	.ish-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.ish-rows--2 { grid-template-columns: minmax(0, 1fr); }
	.ish-paper .adh-article__layout { grid-template-columns: minmax(0, 1fr); }
	.ish-issue__grid { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
	.ish-issue__title { font-size: 36px !important; }
}
@media (max-width: 640px) {
	.ish-hero { padding: 20px 0 36px; }
	.ish-hero__issue { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; text-align: center; }
	.ish-hero__cover { width: 62%; margin-inline: auto; }
	.ish-hero__period { justify-content: center; }
	.ish-hero__issue .adh-actions { justify-content: center; }
	.ish-hero__title { font-size: 34px !important; }
	.ish-facts dl { grid-template-columns: minmax(0, 1fr); }
	.ish-facts__links { grid-template-columns: 1fr 1fr; }
	.ish-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.ish-row, .ish-row--num { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.ish-row__num { display: none; }
	.ish-row__actions { flex-direction: row; }
	.ish-issue__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.ish-issue__cover { width: 58%; margin-inline: auto; }
	.ish-issue__meta > div { flex-basis: 45%; border-inline-start: 0; border-top: 1px solid var(--adh-line); }
	.ish-issue__info .adh-actions { justify-content: center; }
	.ish-issue__nav { grid-template-columns: 1fr 1fr; }
	.ish-issue__nav-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
	.ish-paper__title { font-size: 26px !important; }
	.ish-paper__content { font-size: 17.5px; }
	.ish-filters label { flex: 1 1 100%; justify-content: space-between; }
	.ish-filters select { flex: 1; max-width: none; }
	.adh-brand__emblem { width: 48px; height: 48px; }
}
@media print {
	.ish-dl, .adh-tools, .ish-siblings, .adh-cite__copy { display: none !important; }
}
