/*
Theme Name: حوريت الثقافية
Theme URI: https://horiet.org/
Author: مركز حوريت للإنتاج الثقافي
Description: قالب مخصّص لمجلة حوريت الثقافية: أعداد المجلة بقارئ PDF داخلي وأرشيف، ومواد الموقع الحصرية من مقالات وأخبار ومتابعات.
Version: 1.3.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horiet
*/

/* ---------- الأساس ---------- */
:root {
	--olive: #373823;
	--olive-2: #45472e;
	--olive-line: #5d5e40;
	--olive-deep: #26271a;
	--sand: #e3d3b3;
	--cream: #f3ead6;
	--cream-text: #efe6d2;
	--cream-muted: #c9c1a6;
	--gold: #d4b877;
	--gold-line: #b99a5b;
	--paper: #f6f1e6;
	--paper-2: #ece4d2;
	--paper-card: #fbf8f0;
	--line: #d5cab0;
	--ink: #23241a;
	--ink-2: #45442f;
	--muted: #5c5a48;
	--bronze: #7a5a1e;
	--rust: #9a4f2a;
	--display: 'Readex Pro', 'Noto Naskh Arabic', sans-serif;
	--verse: 'Amiri', 'Noto Naskh Arabic', serif;
	--body: 'Noto Naskh Arabic', 'Amiri', serif;
	--ui: 'IBM Plex Sans Arabic', system-ui, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--ui);
	font-size: 16px;
	line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rust); }

:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.45; margin: 0; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--sand); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.container--narrow { max-width: 980px; }
.container--text { max-width: 880px; }
.container--wide { max-width: 1264px; }

.icon { display: block; flex-shrink: 0; }

.kicker { color: var(--bronze); font-weight: 600; font-size: 14px; font-family: var(--ui); }
a.kicker:hover { color: var(--rust); }
.kicker--gold { color: var(--gold); }

.tag { display: inline-block; background: var(--rust); color: #fff7ea; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }

.rule { display: block; width: 120px; height: 1px; background: var(--gold-line); margin: 12px auto 0; }

.admin-note { background: #fff8d6; border: 1px dashed var(--gold-line); padding: 12px 16px; font-size: 14px; margin: 16px 0; }

/* ---------- الأزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 10px 28px; border-radius: 999px;
	font-family: var(--ui); font-weight: 600; font-size: 16px; line-height: 1.4;
	border: 1px solid transparent; cursor: pointer; text-align: center;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--small { min-height: 44px; padding: 8px 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; border-radius: 0; }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: var(--cream); color: var(--ink); }
.btn--olive { background: var(--olive); color: var(--cream-text); }
.btn--olive:hover { background: var(--olive-2); color: #fff; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { background: transparent; border-color: #c9b78f; color: var(--cream-text); }
.btn--outline-light:hover { background: var(--sand); color: var(--ink); }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { color: var(--gold); }
.icon-btn--ring { border: 1px solid #6b6c4c; }
.icon-btn--ring-dark { border: 1px solid var(--ink); }
.icon-btn--ring-dark:hover { background: var(--ink); color: var(--paper); }
.icon-btn[aria-pressed="true"] { color: var(--gold); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.btn__size { font-family: var(--ui); font-size: 13px; font-weight: 400; opacity: .75; }
.issue-head__actions .btn { flex-wrap: wrap; }


/* ---------- الترويسة ---------- */
.site-header { background: var(--olive); color: var(--cream-text); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 14px; }
.site-header__tools { display: flex; align-items: center; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand__badge img { height: 50px; width: auto; display: block; }
.brand__wordmark { height: 60px; width: auto; display: block; }
.brand__custom { max-height: 68px; width: auto; display: block; }
.brand--footer .brand__badge { width: 76px; height: 76px; }
.brand--footer .brand__badge img { height: 60px; }
.brand--footer .brand__wordmark { height: 72px; }
.brand--footer .brand__custom { max-height: 84px; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; font-size: 16px; font-weight: 500; }
.site-nav .menu li { position: relative; }
.site-nav .menu a { display: block; padding: 10px 0; color: var(--cream-text); border-bottom: 2px solid transparent; }
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-menu-ancestor > a { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; inset-inline-start: -16px; min-width: 200px; background: var(--olive-2); display: none; z-index: 30; }
.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 8px 16px; border: 0; }

.nav-toggle { display: none; }

.site-search { background: var(--olive-2); padding-block: 18px; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--olive-line); background: var(--olive); color: var(--cream-text);
	font-family: var(--ui); font-size: 16px;
}
.search-form input::placeholder { color: var(--cream-muted); }
.page-head__search .search-form input[type="search"] { background: var(--paper-card); border-color: var(--ink); color: var(--ink); }
.page-head__search .search-form input::placeholder { color: var(--muted); }
.page-head__search .btn--sand { background: var(--olive); color: var(--cream-text); }

/* ---------- واجهة العدد (الرئيسية) ---------- */
.hero { background: var(--olive); color: var(--cream-text); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px 72px; align-items: center; padding-block: 48px 88px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; color: var(--gold); font-size: 15px; font-weight: 600; }
.hero__kicker span { display: block; width: 44px; height: 1px; background: var(--gold); }
.hero__title { font-size: clamp(38px, 5vw, 62px); line-height: 1.3; color: var(--cream); }
.hero__desc { margin: 0; font-family: var(--body); font-size: 20px; line-height: 1.9; color: #d9d0b6; max-width: 520px; }
.hero__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--olive-line); max-width: 520px; }
.hero__lines a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--olive-line); font-family: var(--display); font-size: 19px; color: var(--cream-text); }
.hero__lines a:hover { color: var(--gold); }
.hero__lines small { font-family: var(--ui); font-size: 14px; color: var(--cream-muted); white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__cover { display: block; justify-self: center; max-width: 420px; width: 100%; }
.hero__cover img { display: block; width: 100%; border: 1px solid var(--olive-line); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 4px 10px rgba(0,0,0,.3); transition: transform .25s; }
.hero__cover:hover img { transform: translateY(-4px); }

/* ---------- الأقسام ---------- */
.section { padding-block: 80px 72px; }
.section--tight { padding-block: 24px 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 40px; }
.section-head__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; }
.section-head h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.3; }
.more { font-weight: 600; color: var(--bronze); font-size: 16px; }

/* ---------- بطاقة المادة ---------- */
.item { display: flex; flex-direction: column; gap: 8px; }
.item__title { font-size: 25px; line-height: 1.5; }
.item__meta { font-size: 14px; color: var(--muted); }
.item__image { display: block; margin-bottom: 8px; }
.item__image img { display: block; width: 100%; aspect-ratio: 19 / 12; object-fit: cover; }
.item--lead { gap: 14px; }
.item--lead .item__title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.45; }
.item--lead .item__image img { aspect-ratio: 16 / 10; }
.item__excerpt { margin: 0; font-family: var(--body); font-size: 19px; line-height: 2; color: var(--ink-2); }
.item--small .item__title { font-size: 22px; }

.from-issue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 56px; }
.from-issue__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; align-content: start; }
.from-issue__list .item { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }

/* ---------- شريط الاقتباس ---------- */
.quote-band { background: var(--paper-2); padding-block: 80px; text-align: center; }
.quote-band .container { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.quote-band svg { fill: var(--gold-line); }
.quote-band blockquote { margin: 0; font-family: var(--verse); font-weight: 700; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.55; }
.quote-band__by { font-size: 16px; color: var(--ink-2); }

/* ---------- جديد الموقع ---------- */
.web-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 48px; }
.web-col { display: flex; flex-direction: column; gap: 20px; }
.web-col__title { font-family: var(--ui); font-size: 17px; font-weight: 600; color: var(--bronze); }
.web-col--articles .item + .item { border-top: 1px solid var(--line); padding-top: 16px; }
.web-col--follow .item { background: var(--paper-card); border: 1px solid var(--line); padding: 22px; }
.web-col .item .kicker { display: none; }
.numbered { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.numbered__n { font-family: var(--display); font-size: 34px; line-height: 1.2; color: var(--gold-line); min-width: 30px; }

/* ---------- البودكاست ---------- */
.podcast-band { background: var(--olive); color: var(--cream-text); }
.podcast-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; padding-block: 56px; }
.podcast-band__play { width: 84px; height: 84px; border-radius: 50%; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.podcast-band__play:hover { background: var(--cream); color: var(--ink); }
.podcast-band__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.podcast-band h2 { font-size: clamp(26px, 3vw, 34px); color: var(--cream); }
.podcast-band h2 a:hover { color: var(--gold); }
.podcast-band__meta { font-size: 15px; color: var(--cream-muted); }

/* ---------- رفّ الأعداد ---------- */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 48px 36px; }
.shelf__item a { display: flex; flex-direction: column; height: 100%; }
.shelf__cover { display: flex; align-items: flex-end; flex: 1; border-bottom: 8px solid #c9b78f; padding-inline: 10px; }
.shelf__cover img { display: block; width: 100%; box-shadow: -6px 0 14px rgba(0,0,0,.2); transition: transform .2s; transform-origin: bottom center; }
.shelf__item a:hover .shelf__cover img { transform: translateY(-6px); }
.shelf__blank { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 595 / 822; background: var(--olive-2); color: #d9d0b6; font-family: var(--display); font-size: 22px; box-shadow: -6px 0 14px rgba(0,0,0,.2); }
.shelf__label { padding: 14px 10px 0; font-size: 15px; color: var(--ink-2); }
.shelf__label strong { display: block; color: var(--ink); }

/* ---------- الاشتراك ---------- */
.subscribe { background: var(--paper-2); }
.subscribe__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-block: 64px; }
.subscribe__text { flex: 1 1 340px; }
.subscribe h2 { font-size: clamp(30px, 3.6vw, 38px); }
.subscribe p { margin: 8px 0 0; font-family: var(--body); font-size: 19px; color: var(--ink-2); }
.subscribe__form { flex: 1 1 380px; }
.subscribe__form input[type="email"], .subscribe__form input[type="text"] { height: 52px; border: 1px solid var(--ink); background: var(--paper-card); padding: 0 16px; font-size: 16px; font-family: var(--ui); max-width: 100%; }
.subscribe__form input[type="submit"], .subscribe__form button { min-height: 52px; padding: 0 30px; background: var(--olive); color: var(--cream-text); border: 0; font-family: var(--ui); font-size: 16px; font-weight: 600; cursor: pointer; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--olive); color: #d9d0b6; }
.site-footer .container { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 36px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 64px; }
.site-footer__about { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__about p { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.9; }
.site-footer__nav strong { display: block; color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { display: block; padding: 6px 0; color: var(--cream-text); }
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__bottom { border-top: 1px solid var(--olive-line); padding-top: 20px; font-size: 14px; color: var(--cream-muted); }

/* ---------- رؤوس الصفحات ---------- */
.page-head { padding-block: 56px 24px; display: flex; flex-direction: column; gap: 10px; }
.page-head__title { font-size: clamp(31px, 4.2vw, 46px); line-height: 1.4; }
.page-head__desc { margin: 0; font-family: var(--body); font-size: 19px; color: var(--ink-2); max-width: 720px; }
.page-head__search { max-width: 560px; margin-top: 12px; }
.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 48px; }
.listing .item { border-top: 2px solid var(--ink); padding-top: 16px; }
.empty { font-family: var(--body); font-size: 19px; color: var(--muted); }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current { background: var(--olive); color: var(--cream-text); border-color: var(--olive); }

/* ---------- صفحة العدد ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs span:last-child { color: var(--ink); }
.issue-head { padding-block: 40px 36px; display: flex; flex-direction: column; gap: 18px; }
.issue-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.issue-head__title { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.35; }
.issue-head__facts { font-size: 16px; color: var(--ink-2); }
.issue-head__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.issue-cover-only { text-align: center; padding-bottom: 40px; }
.issue-cover-only img { max-width: 420px; width: 100%; box-shadow: 0 24px 50px rgba(35,36,26,.3); }
.issue-intro { padding-top: 56px; }

.contents__section { margin: 36px 0 4px; font-family: var(--ui); font-size: 16px; font-weight: 600; color: var(--bronze); }
.contents__section:first-child { margin-top: 0; }
.contents__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contents__main { flex: 999 1 420px; min-width: 0; }
.contents__title { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.5; }
.contents__by { font-size: 14px; color: var(--muted); }
.contents__links { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.contents__links a { padding: 10px 0; }
.contents__page { color: var(--muted); font-weight: 400; }
.contents__pdf { color: var(--bronze); }

/* ---------- القارئ ---------- */
.reader-wrap { scroll-margin-top: 16px; }
.reader { background: var(--olive-deep); color: var(--cream-text); box-shadow: 0 24px 50px rgba(35,36,26,.25); display: flex; flex-direction: column; }
.reader:focus-visible { outline-offset: 0; }
.reader__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 10px 16px; border-bottom: 1px solid var(--olive-2); }
.reader__nav, .reader__tools { display: flex; align-items: center; gap: 6px; }
.reader__pageno { display: flex; align-items: center; gap: 8px; font-size: 15px; padding-inline: 8px; white-space: nowrap; }
.reader__pageno input { width: 64px; height: 40px; text-align: center; background: var(--olive); color: var(--gold); border: 1px solid var(--olive-line); border-radius: 6px; font-family: var(--ui); font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.reader__pageno input::-webkit-outer-spin-button, .reader__pageno input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.reader__body { display: flex; min-height: 420px; }
.reader__toc { flex: 0 0 290px; background: #2e2f1f; padding: 16px 0; max-height: 82vh; overflow-y: auto; }
.reader.is-toc-hidden .reader__toc { display: none; }
.reader__filter { display: block; width: calc(100% - 32px); margin: 0 16px 12px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--olive-line); background: var(--olive); color: var(--cream-text); font-family: var(--ui); font-size: 15px; }
.reader__filter::placeholder { color: var(--cream-muted); }
.reader__list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.reader__section { padding: 14px 20px 4px; color: var(--gold); font-weight: 600; font-size: 13px; }
.reader__list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 20px; color: #d9d0b6; line-height: 1.6; }
.reader__list a:hover { background: var(--olive); color: var(--cream); }
.reader__list a.is-active { background: var(--sand); color: var(--ink); font-weight: 600; }
.reader__list small { color: inherit; opacity: .8; font-size: 13px; }
.reader__stage { flex: 1; min-width: 0; position: relative; overflow: auto; padding: 28px; display: flex; max-height: 82vh; touch-action: pan-y pinch-zoom; }
.reader__spread { display: flex; margin: auto; box-shadow: 0 18px 40px rgba(0,0,0,.55); background: #fff; }
.reader__spread:empty { box-shadow: none; background: transparent; }
.reader__spread canvas { display: block; }
.reader__status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--cream-muted); font-size: 16px; pointer-events: none; }
.reader__status a { color: var(--gold); pointer-events: auto; text-decoration: underline; }
.reader__status[hidden] { display: none; }
.reader__progress { padding: 10px 24px 14px; border-top: 1px solid var(--olive-2); }
.reader__progress input { width: 100%; accent-color: var(--gold); direction: rtl; }
.reader:fullscreen { width: 100vw; height: 100vh; }
.reader:fullscreen .reader__body { flex: 1; min-height: 0; }
.reader:fullscreen .reader__stage, .reader:fullscreen .reader__toc { max-height: none; }

/* ---------- المقال ---------- */
.article__head { padding-block: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.article__kickers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.article__kickers .kicker { font-size: 15px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-line); }
.article__title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.45; }
.article__author { display: flex; align-items: center; gap: 14px; text-align: start; }
.article__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--olive); color: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; font-weight: 700; flex-shrink: 0; }
.article__name { font-weight: 600; font-size: 17px; display: block; }
.article__sub { font-size: 14px; color: var(--muted); }

.article__layout { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 48px 64px; padding-block: 16px 80px; }
.article__body { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.article__figure { margin: 0 0 32px; }
.article__figure img { display: block; width: 100%; }
.article__figure figcaption, .wp-element-caption, .wp-caption-text { font-family: var(--ui); font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }

.entry-content { font-family: var(--body); font-size: 21px; line-height: 2.15; color: #2b2c20; overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 26px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content a { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.entry-content h2 { font-size: 29px; margin-top: 48px; }
.entry-content h3 { font-size: 24px; margin-top: 40px; }
.entry-content h4 { font-size: 24px; margin-top: 32px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content blockquote, .entry-content .wp-block-pullquote {
	margin-block: 44px; margin-inline: 0; padding: 30px 0; border: 0;
	border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
	font-family: var(--verse); font-size: 32px; line-height: 1.7; font-weight: 700; color: var(--olive); text-align: center;
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-family: var(--ui); font-size: 15px; font-weight: 400; font-style: normal; color: var(--muted); }
.entry-content .wp-block-verse, .entry-content pre.wp-block-verse { font-family: var(--verse); font-size: 24px; line-height: 2.1; text-align: center; white-space: pre-wrap; background: transparent; padding: 0; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; height: 1px; width: 120px; background: var(--gold-line); margin-block: 44px; margin-inline: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content img { display: block; }
.entry-content .alignwide { margin-inline: -60px; max-width: none; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.entry-content sup { font-family: var(--ui); font-size: .6em; }
.entry-content .wp-block-footnotes { font-size: 17px; line-height: 1.9; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 24px; }
.entry-content iframe, .entry-content audio, .entry-content video { max-width: 100%; }
.entry-content audio { width: 100%; }
.page-content { padding-bottom: 80px; }
.page-full { font-family: inherit; }
.page-links { font-family: var(--ui); font-size: 15px; }

.article__foot { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.article__share { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.copied { color: var(--bronze); font-weight: 500; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags a { border: 1px solid #b9ad90; padding: 6px 14px; border-radius: 999px; }

.issue-card { flex: 1 1 260px; max-width: 320px; background: var(--paper-2); padding: 26px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
.issue-card__cover img { display: block; width: 100%; box-shadow: 0 12px 24px rgba(35,36,26,.25); }
.issue-card__no { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.4; }
.issue-card__season { font-size: 15px; color: var(--ink-2); }

.related { background: var(--paper-2); padding-block: 64px 72px; }
.related__title { font-size: 38px; margin-bottom: 32px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.related .item { border-top: 2px solid var(--ink); padding-top: 16px; }

.comments { margin-top: 64px; font-family: var(--ui); font-size: 16px; }
.comments__title { font-size: 30px; margin-bottom: 24px; }
.comments__list { list-style: none; padding: 0; }
.comments textarea, .comments input[type="text"], .comments input[type="email"], .comments input[type="url"] { width: 100%; border: 1px solid var(--line); background: var(--paper-card); padding: 12px 14px; font-family: var(--ui); font-size: 16px; }
.comments input[type="submit"] { min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--olive); color: var(--cream-text); font-family: var(--ui); font-weight: 600; font-size: 16px; cursor: pointer; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 1000px) {
	.nav-toggle { display: inline-flex; order: 3; }
	.site-header__inner { flex-wrap: wrap; }
	.site-header__tools { margin-inline-start: auto; }
	.site-nav { display: none; order: 4; flex-basis: 100%; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; padding-bottom: 8px; }
	.site-nav .menu a { padding: 12px 0; border-bottom: 1px solid var(--olive-line); }
	.site-nav .sub-menu { position: static; display: block; background: transparent; padding: 0 16px 0 0; }
	.reader__toc { flex-basis: 240px; }
}

@media (max-width: 820px) {
	.container { padding-inline: 20px; }
	.hero__inner { grid-template-columns: 1fr; padding-block: 28px 56px; text-align: center; }
	.hero__cover { order: -1; max-width: 250px; }
	.hero__text { align-items: center; }
	.hero__kicker span { display: none; }
	.hero__lines { width: 100%; text-align: start; }
	.hero__actions { width: 100%; flex-direction: column; }
	.hero__desc { font-size: 18px; }
	.section { padding-block: 48px 40px; }
	.from-issue { grid-template-columns: 1fr; }
	.quote-band { padding-block: 48px; }
	.brand__badge { width: 48px; height: 48px; }
	.brand__badge img { height: 38px; }
	.brand__wordmark { height: 46px; }
	.site-header__tools .btn { display: none; }
	.entry-content { font-size: 19px; line-height: 2.05; }
	.entry-content blockquote, .entry-content .wp-block-pullquote { font-size: 25px; }
	.entry-content .alignwide { margin-inline: 0; }
	.article__head { padding-block: 40px 28px; }
	.issue-card { position: static; max-width: none; }
	.issue-card__cover { max-width: 200px; }
	.shelf { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 32px 20px; }
	.contents__title { font-size: 22px; }
	.reader-wrap { padding-inline: 0; }
	.reader__body { flex-direction: column-reverse; }
	.reader__toc { flex-basis: auto; max-height: 300px; }
	.reader__stage { padding: 12px; max-height: none; }
	.reader__pageno span:first-child { display: none; }
	.reader [data-reader="layout"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* ---------- محتوى الصفحات الثابتة ---------- */
.page-content { padding-bottom: 80px; }
.page-content .lede { font-size: 23px; line-height: 2; color: var(--ink-2); }

/* جداول */
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 16px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.entry-content thead th { background: var(--paper-2); font-weight: 600; border-bottom-color: var(--gold-line); }

/* بطاقات عامة داخل المحتوى */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); font-family: var(--ui); }
.card {
	background: var(--paper-card); border: 1px solid var(--line); padding: 26px 24px;
	font-size: 16px; line-height: 1.85; color: var(--ink-2);
}
.card h3 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; color: var(--olive); line-height: 1.5; }
.card p { margin: 0; }
.card--olive { background: var(--olive); border-color: var(--olive-line); color: var(--cream-text); }
.card--olive h3 { color: var(--gold); }
.card--olive a { color: var(--cream-text); }

/* هيئة التحرير */
.people { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); font-family: var(--ui); }
.person { border-top: 1px solid var(--gold-line); padding-top: 18px; }
.person__role { font-size: 13px; letter-spacing: .08em; color: var(--bronze); text-transform: none; margin-bottom: 4px; }
.person__name { font-family: var(--display); font-size: 24px; color: var(--olive); margin: 0 0 8px; line-height: 1.5; }
.person__bio { font-size: 15.5px; line-height: 1.85; color: var(--muted); margin: 0; }
.names { font-family: var(--ui); font-size: 17px; line-height: 2.1; columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.names li { break-inside: avoid; border-bottom: 1px dotted var(--line); padding-block: 6px; }

/* قائمة معلومات */
.deflist { font-family: var(--ui); font-size: 17px; margin: 0; }
.deflist dt { font-weight: 600; color: var(--olive); margin-top: 18px; }
.deflist dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- النماذج ---------- */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content input[type="search"],
.entry-content select,
.entry-content textarea,
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="url"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container select,
.wpforms-container textarea {
	width: 100%; max-width: 100%; font-family: var(--ui); font-size: 16.5px; line-height: 1.6;
	color: var(--ink); background: var(--paper-card);
	border: 1px solid var(--line); border-radius: 0; padding: 12px 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.entry-content textarea, .wpforms-container textarea { min-height: 180px; resize: vertical; }
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus,
.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus {
	outline: 0; border-color: var(--gold-line); box-shadow: 0 0 0 3px rgba(185, 154, 91, .18);
}
.entry-content label, .wpforms-container label, .wpforms-field-label {
	display: block; font-family: var(--ui); font-size: 15px; font-weight: 600;
	color: var(--olive); margin-bottom: 6px; line-height: 1.6;
}
.wpforms-required-label { color: var(--rust); }
.wpforms-field-sublabel, .wpforms-field-description, .entry-content .description {
	font-family: var(--ui); font-size: 13.5px; color: var(--muted); font-weight: 400;
}
.wpforms-container .wpforms-field { padding: 0 0 20px; }
.wpforms-container .wpforms-form { max-width: 100%; }
.entry-content button, .entry-content input[type="submit"],
.wpforms-container button[type="submit"], .wpforms-container input[type="submit"],
.wpforms-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 12px 34px; width: auto;
	font-family: var(--ui); font-size: 16px; font-weight: 600; letter-spacing: .01em;
	color: var(--cream-text) !important; background: var(--olive) !important;
	border: 1px solid var(--olive) !important; border-radius: 0 !important; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.entry-content button:hover, .entry-content input[type="submit"]:hover,
.wpforms-container button[type="submit"]:hover, .wpforms-submit:hover {
	background: var(--olive-2) !important; color: #fff !important;
}
.wpforms-error, .wpforms-container label.wpforms-error { color: var(--rust); font-size: 14px; font-weight: 400; }
.wpforms-confirmation-container, .wpforms-confirmation-container-full {
	background: var(--paper-card); border: 1px solid var(--gold-line); border-inline-start: 4px solid var(--gold-line);
	padding: 20px 24px; font-family: var(--ui); font-size: 17px; color: var(--ink-2);
}

/* فتات الخبز القديمة الواردة في محتوى الصفحات */
.entry-content nav[aria-label="Breadcrumb"] { font-family: var(--ui); font-size: 14px; color: var(--muted); }
.entry-content nav[aria-label="Breadcrumb"] ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }

@media (max-width: 680px) {
	.names { columns: 1; }
	.page-content { padding-bottom: 56px; }
}

/* ---------- الطباعة ---------- */
@media print {
	.site-header, .site-footer, .related, .issue-card, .article__foot, .reader-wrap, .subscribe, .comments { display: none !important; }
	body { background: #fff; }
	.entry-content { font-size: 13pt; line-height: 1.9; }
}
