/* ==========================================================================
   ثيم كاتب — Obsidian & Gilt
   يعتمد الخصائص المنطقية (inline-start/end) فيعمل RTL و LTR دون ملف rtl.css.
   ========================================================================== */

:root {
	--bg: #131315;
	--bg-lowest: #0e0e10;
	--bg-low: #1c1b1d;
	--bg-mid: #201f21;
	--bg-high: #2a2a2c;
	--bg-highest: #353437;
	--bg-bright: #39393b;

	--text: #e5e1e4;
	--text-dim: #d3c4b5;
	--outline: #9c8f80;
	--outline-var: #4f4539;

	--gold: #ffcd8b;
	--gold-2: #e2b170;
	--gold-ink: #452b00;
	--gold-deep: #65430b;
	--sky: #7bd0ff;
	--sky-2: #00a6e0;
	--sky-ink: #00354a;
	--error: #ffb4ab;

	--font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--font-serif: "Noto Naskh Arabic", "Amiri", "Noto Serif", Georgia, "Times New Roman", serif;

	--r-sm: 0.25rem;
	--r: 0.5rem;
	--r-lg: 0.75rem;
	--r-xl: 1rem;

	--gutter: 1.5rem;
	--pad-x: 1.25rem;
	--section-y: 3.5rem;
	--header-h: 5rem;
	--maxw: 80rem;
}

@media (min-width: 768px) {
	:root { --pad-x: 3rem; }
}
@media (min-width: 1024px) {
	:root { --pad-x: 5rem; --section-y: 5rem; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
::selection { background: var(--gold-2); color: var(--gold-deep); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; z-index: 1000; inset-block-start: 0.5rem; inset-inline-start: 0.5rem;
	width: auto; height: auto; margin: 0; clip: auto; clip-path: none; padding: 0.75rem 1.25rem;
	background: var(--gold); color: var(--gold-ink); border-radius: var(--r);
}
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Icons ---------- */
.material-symbols-outlined {
	font-size: 1.25rem; line-height: 1; vertical-align: middle; flex-shrink: 0;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	user-select: none;
}
.icon-xl.material-symbols-outlined { font-size: 2rem; }
/* الأسهم الاتجاهية تنعكس تلقائياً في LTR */
.katib-ltr .material-symbols-outlined:is([data-flip]) { transform: scaleX(-1); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.container--md { max-width: 64rem; }
.container--sm { max-width: 46rem; }
.container--article { max-width: 46rem; }
.container--article-wide { max-width: 68rem; }

.site-main { padding-block-start: var(--header-h); min-height: 60vh; }

.section { padding-block: var(--section-y); background: var(--bg); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--mid { background: var(--bg-mid); }
.section--lowest { background: var(--bg-lowest); }

.text-gold { color: var(--gold); }
.text-sky { color: var(--sky); }
.muted { color: var(--text-dim); font-size: 0.9rem; }
.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* ---------- Typography ---------- */
.display {
	font-family: var(--font-serif); font-weight: 700; color: var(--text);
	font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.5; letter-spacing: 0;
	margin-block-end: 1.25rem;
}
.display--md { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.55; }
.accent { color: var(--gold-2); }
.accent--italic { font-style: italic; color: var(--gold); }

.h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.6; }
.h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.6; }
.h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.2rem; line-height: 1.6; color: var(--text); margin-block-end: 0.4rem; }
.h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; line-height: 1.6; color: var(--text); }

.lead { font-size: 1.125rem; line-height: 2; color: var(--text-dim); max-width: 42rem; margin-block-end: 2rem; }
.lead--sub { font-size: 1rem; color: var(--outline); margin-block-start: -1rem; }

.eyebrow {
	display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold);
	margin-block-end: 0.375rem;
}
.eyebrow--sky { color: var(--sky); }
.eyebrow--icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.eyebrow--icon .material-symbols-outlined { font-size: 1rem; }
.eyebrow--line { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow--line::after { content: ""; width: 2rem; height: 1px; background: var(--gold); opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.7rem 1.5rem; border: 0; border-radius: var(--r-lg); font-weight: 600; font-size: 0.875rem;
	line-height: 1.4; min-height: 2.75rem; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
	text-align: center; cursor: pointer;
}
.btn .material-symbols-outlined { font-size: 1.1rem; }
.btn--primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 40px -12px rgba(226, 177, 112, 0.35); }
.btn--primary:hover { background: var(--gold-2); }
.btn--soft { background: var(--bg-high); color: var(--gold); }
.btn--soft:hover { background: var(--gold-2); color: var(--gold-deep); }
.btn--ghost { background: var(--bg-mid); color: var(--text); }
.btn--ghost:hover { background: var(--bg-high); }
.btn--sm { padding: 0.4rem 1.1rem; min-height: 2.25rem; font-weight: 500; }
.btn--lg { padding: 0.9rem 2rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-block-end: 2.5rem; }
.btn-row--center { justify-content: center; margin-block-end: 0; margin-block-start: 1.5rem; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
	border: 0; border-radius: var(--r-lg); background: var(--bg-mid); color: var(--text-dim);
	transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-high); color: var(--gold); }
.icon-btn--lg { width: 2.75rem; height: 2.75rem; }

.link-more { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--gold); font-size: 0.8125rem; font-weight: 600; transition: color .2s; }
.link-more:hover { color: #ffddb4; }
.link-more .material-symbols-outlined { font-size: 1rem; transition: transform .2s; }
.link-more:hover .material-symbols-outlined { transform: translateX(-3px); }

.pill {
	display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 1rem; border-radius: 999px;
	background: var(--bg-high); color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; margin-block-end: 1.25rem;
}
.pill .material-symbols-outlined { font-size: 1rem; }
.pill--sm { margin-block-end: 0.75rem; }

.badge { display: inline-block; padding: 0.15rem 0.75rem; border-radius: 999px; background: var(--bg-mid); color: var(--text-dim); font-size: 0.75rem; font-weight: 600; }
.badge--sky { color: var(--sky); }

/* ---------- Glows ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(120px); z-index: 0; }
.glow--gold { inset-inline-end: -8rem; inset-block-start: 0; width: 24rem; height: 24rem; background: rgba(255, 205, 139, 0.10); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.glow--sky { inset-inline-start: -5rem; inset-block-end: 2.5rem; width: 20rem; height: 20rem; background: rgba(123, 208, 255, 0.05); background: color-mix(in srgb, var(--sky) 5%, transparent); }
.glow--corner { inset-inline-end: -6rem; inset-block: auto -6rem; width: 20rem; height: 20rem; filter: blur(100px); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; height: var(--header-h);
	background: rgba(14, 14, 16, 0.82); background: color-mix(in srgb, var(--bg-lowest) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { inset-block-start: 0; } }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; background: #000; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__role { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }

.primary-nav { display: none; }
.primary-nav__list { display: flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-lg); background: var(--bg-low); }
.primary-nav__list a {
	display: block; padding: 0.375rem 1.25rem; border-radius: var(--r); font-size: 0.8125rem; font-weight: 500;
	color: var(--text-dim); transition: color .2s, background-color .2s;
}
.primary-nav__list a:hover { color: var(--text); }
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a,
.primary-nav__list .current-menu-ancestor > a {
	background: var(--gold-2); color: var(--gold-deep); font-weight: 600;
}
.primary-nav__cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header__cta { display: none; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--r-lg); background: var(--bg-low); color: var(--text); }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-block; }

@media (min-width: 768px) {
	.primary-nav { display: block; }
	.nav-toggle { display: none; }
}
@media (min-width: 640px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 768px) { .primary-nav__cta { display: none !important; } }

/* قائمة الجوال */
@media (max-width: 767px) {
	.primary-nav {
		position: fixed; inset-inline: 0; inset-block-start: var(--header-h); display: block;
		background: rgba(14, 14, 16, 0.97); background: color-mix(in srgb, var(--bg-lowest) 97%, transparent); padding: 1rem var(--pad-x) 1.5rem; border-block-end: 1px solid var(--bg-high);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.admin-bar .primary-nav { inset-block-start: calc(var(--header-h) + 46px); }
	.nav-open .primary-nav { opacity: 1; transform: none; visibility: visible; }
	.primary-nav__list { flex-direction: column; align-items: stretch; background: transparent; padding: 0; gap: 0.25rem; }
	.primary-nav__list a { padding: 0.85rem 1rem; font-size: 1rem; background: var(--bg-low); }
	.primary-nav__cta { display: inline-flex; width: 100%; margin-block-start: 1rem; }
	.site-header__cta { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-lowest); padding-block: var(--section-y); }
@media (min-width: 1024px) { .hero { padding-block: 6rem; } }
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: 2fr 1fr; }
	.hero__grid--about { grid-template-columns: 7fr 5fr; }
}
.hero__main { display: flex; flex-direction: column; align-items: flex-start; }
.hero--about { padding-block: 3rem var(--section-y); }
.hero--contact { padding-block: 3.5rem 2rem; background: var(--bg); }
.hero--contact .lead { margin-block-end: 0; }
.crumb-line { display: flex; align-items: center; gap: 0.5rem; margin-block-end: 1.5rem; font-size: 0.75rem; }
.crumb-line .eyebrow { margin: 0; }

.stats { display: grid; gap: 1rem; width: 100%; padding-block-start: 0.5rem; }
.stats--4 { grid-template-columns: repeat(2, 1fr); }
.stats--3 { grid-template-columns: repeat(3, 1fr); margin-block-end: 1.5rem; }
@media (min-width: 640px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-low); }
.stat__num { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.3; color: var(--text); }
.stat__num--gold { color: var(--gold); }
.stat__num--sky { color: var(--sky); }
.stat__label { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.6; }

/* Emblem */
.hero__emblem { display: flex; justify-content: center; }
.emblem {
	position: relative; width: 100%; max-width: 24rem; aspect-ratio: 1; border-radius: var(--r-xl);
	background: var(--bg-mid); display: flex; align-items: center; justify-content: center; padding: 2rem;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); overflow: hidden;
}
.emblem__wash { position: absolute; inset: 0; background: linear-gradient(45deg, var(--bg-lowest), var(--bg-mid) 50%, var(--bg-high)); opacity: 0.8; }
.emblem__inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.emblem__photo { position: relative; width: 12rem; height: 12rem; padding: 0.25rem; border-radius: 50%; background: var(--bg-lowest); margin-block-end: 1.25rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.emblem__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: transform .5s; }
.emblem:hover .emblem__photo img { transform: scale(1.05); }
.emblem__badge {
	position: absolute; inset-inline: 0; inset-block-end: -0.5rem; margin-inline: auto; width: fit-content; white-space: nowrap;
	padding: 0.1rem 0.6rem; border-radius: 4px; background: var(--gold); color: var(--gold-ink); font-size: 0.625rem; font-weight: 700;
}
.emblem__name { font-size: 1.2rem; font-weight: 600; }
.emblem__sub { font-size: 0.8125rem; color: var(--gold); margin-block-start: 0.25rem; }

/* ---------- Section head ---------- */
.section-head { margin-block-end: 3rem; max-width: 46rem; }
.section-head--split { max-width: none; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head__desc { color: var(--text-dim); margin-block-start: 0.5rem; max-width: 34rem; }

/* ---------- Manifesto ---------- */
.manifesto { display: flex; flex-direction: column; gap: 2rem; padding: 2rem; border-radius: var(--r-xl); background: var(--bg); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
@media (min-width: 768px) { .manifesto { flex-direction: row; padding: 3.5rem; } }
.manifesto__icon { width: 4rem; height: 4rem; border-radius: var(--r-lg); background: var(--gold-2); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.manifesto__icon .material-symbols-outlined { font-size: 2rem; font-variation-settings: "FILL" 1; }
.manifesto__body { display: flex; flex-direction: column; gap: 1.25rem; }
.manifesto__body .eyebrow { margin: 0; }
.manifesto__quote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 2; font-style: italic; }
.manifesto__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-block-start: 0.75rem; }
.manifesto__by { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; }
.manifesto__by .muted { font-size: 0.7rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
	position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl);
	background: var(--bg-low); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: background-color .3s;
}
.card:hover { background: var(--bg-mid); }
.card__media { position: relative; display: block; height: 14rem; overflow: hidden; background: var(--bg-lowest) center / cover no-repeat; }
.card__media--short { height: 12rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-mid), var(--bg-lowest)); color: var(--gold-2); }
.card__placeholder .material-symbols-outlined { font-size: 3.5rem; opacity: .7; }
.card__shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-low), rgba(28, 27, 29, .4), transparent); }
.card__body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding: 2rem; gap: 1rem; }
.card__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; line-height: 1.7; margin-block-end: 0.5rem; transition: color .2s; }
.card__title--sm { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; margin-block: 0.25rem 0; }
.card:hover .card__title { color: var(--gold); }
.card__excerpt { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__excerpt--2 { -webkit-line-clamp: 2; margin-block-start: 0.5rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding-block-start: 0.75rem; }
.card__foot--plain { font-size: 0.75rem; color: var(--text-dim); border-block-start: 0; }
.card--appearance .card__body { padding: 1.25rem; }
.card--appearance:hover .card__title { color: var(--gold); }
a.card--appearance { color: inherit; }

.meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-dim); margin-block-end: 0.5rem; }
.meta--wrap { flex-wrap: wrap; gap: 0.5rem 1rem; }
.meta__item { display: inline-flex; align-items: center; gap: 0.25rem; }
.meta__item .material-symbols-outlined { font-size: 0.9rem; }
.meta__dot { opacity: .6; }

.chip-float {
	position: absolute; inset-block-start: 0.75rem; inset-inline-end: 0.75rem; z-index: 2; padding: 0.2rem 0.65rem; border-radius: 6px;
	background: rgba(14, 14, 16, .9); background: color-mix(in srgb, var(--bg-lowest) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.6875rem; font-weight: 600; letter-spacing: .04em;
}
.chip-float--gold { color: var(--gold); }
.chip-float--sky { color: var(--sky); }
.chip-solid { padding: 0.2rem 0.75rem; border-radius: 6px; background: var(--bg-high); color: var(--gold); font-size: 0.6875rem; font-weight: 600; }

.bookmark { display: inline-flex; padding: 0.25rem; border: 0; background: transparent; color: var(--text-dim); border-radius: var(--r); transition: color .2s; }
.bookmark:hover, .bookmark[aria-pressed="true"] { color: var(--gold); }
.bookmark[aria-pressed="true"] .material-symbols-outlined,
.icon-btn[aria-pressed="true"] .material-symbols-outlined { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.icon-btn[aria-pressed="true"] { color: var(--gold); }

/* ---------- Tiles ---------- */
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: 2rem; border-radius: var(--r-xl); background: var(--bg-mid); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: background-color .25s; }
.tile:hover { background: var(--bg-high); }
.tile__icon { width: 3rem; height: 3rem; border-radius: var(--r-lg); background: var(--bg-high); display: flex; align-items: center; justify-content: center; margin-block-end: 1.25rem; transition: background-color .25s, color .25s; }
.tile__icon .material-symbols-outlined { font-size: 1.5rem; }
.tile__icon--gold { color: var(--gold); }
.tile__icon--sky { color: var(--sky); }
.tile__icon--sm { width: 2.5rem; height: 2.5rem; background: var(--bg-mid); color: var(--gold); margin-inline-start: auto; }
.tile__text { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.9; }
.tile__foot { color: var(--text-dim); font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; }
.tile__foot--accent { display: flex; align-items: center; gap: 0.5rem; color: var(--gold); padding-block-start: 1rem; }
.tile__foot--accent.is-sky { color: var(--sky); }
.tile__foot--accent .material-symbols-outlined { font-size: 0.9rem; }
.tile--pillar:hover .tile__icon--gold { background: var(--gold); color: var(--gold-ink); }
.tile--pillar:hover .tile__icon--sky { background: var(--sky); color: var(--sky-ink); }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 2rem; border-radius: var(--r-xl); background: var(--bg-low); }
.quote-card__text { line-height: 2; }
.quote-card__who { display: flex; align-items: center; gap: 0.75rem; }
.quote-card__id { display: flex; flex-direction: column; }
.quote-card__name { font-size: 0.875rem; font-weight: 600; }
.quote-card__role { font-size: 0.6875rem; color: var(--text-dim); }
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--bg-high); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.avatar--gold { color: var(--gold); }
.avatar--sky { color: var(--sky); }

/* ---------- CTA panels ---------- */
.panel-cta { position: relative; overflow: hidden; padding: 2rem; border-radius: var(--r-xl); background: var(--bg-mid); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
@media (min-width: 768px) { .panel-cta { padding: 3.5rem; } }
.panel-cta--accent { background: var(--bg-low); border-inline-end: 4px solid var(--gold-2); }
.panel-cta--wide { background: var(--bg-low); }
.panel-cta__grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .panel-cta__grid { grid-template-columns: 7fr 5fr; } }
.panel-cta__text .h1, .panel-cta__text .h2 { margin-block-end: 0.5rem; }
.panel-cta__text p { color: var(--text-dim); line-height: 1.9; }

/* ---------- Forms (shared) ---------- */
.field {
	width: 100%; padding: 0.8rem 1rem; border: 1px solid transparent; border-radius: var(--r-lg);
	background: var(--bg); color: var(--text); font-size: 0.9375rem; transition: background-color .2s, border-color .2s;
}
.field::placeholder { color: var(--outline); opacity: 1; }
.field:focus { outline: none; border-color: var(--gold-2); background: var(--bg-bright); }
.field--ltr { direction: ltr; text-align: end; }
textarea.field { resize: vertical; min-height: 9rem; }
select.field { appearance: none; -webkit-appearance: none; padding-inline-end: 2.5rem; }

.nl-form__form { display: flex; flex-direction: column; gap: 0.5rem; }
.nl-form--inline .nl-form__form { flex-direction: column; }
@media (min-width: 640px) { .nl-form--inline .nl-form__form { flex-direction: row; } }
.nl-form--inline .field { flex: 1; background: var(--bg-mid); padding-block: 0.6rem; }
.nl-form--inline .btn { min-height: 0; padding-block: 0.6rem; }
.nl-form__note { font-size: 0.6875rem; color: var(--outline); margin-block-start: 0.5rem; }
.nl-form--stack .btn { width: 100%; }

.notice-box { display: flex; align-items: flex-start; gap: 0.5rem; padding: 1rem; border-radius: var(--r-lg); font-size: 0.875rem; font-weight: 500; margin-block-end: 1rem; }
.notice-box--success { background: var(--bg-high); color: var(--gold); }
.notice-box--error { background: rgba(147, 0, 10, .35); color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-lowest); color: var(--text-dim); }
.site-footer__inner { padding-block: var(--section-y) 2rem; }
.site-footer__grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 5fr 3fr 4fr; } }
.site-footer__name { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text); margin-block-end: 0.75rem; }
.site-footer__text { font-size: 0.9375rem; line-height: 1.9; max-width: 28rem; margin-block-end: 1rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-block-start: 0.5rem; }
.social-links .icon-btn { background: var(--bg-mid); }
.footer-nav__list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav__list a { color: var(--text-dim); transition: color .2s; }
.footer-nav__list a:hover { color: var(--text); }
.site-footer .eyebrow { margin-block-end: 1rem; }
.site-footer__bottom {
	display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: center;
	margin-block-start: 3rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--bg-mid); font-size: 0.6875rem; color: var(--outline);
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }

/* ==========================================================================
   صفحات داخلية: المقالات
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: 3rem 2rem; background: var(--bg-lowest); }
.page-hero--compact { padding-block: 2.5rem 1.5rem; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__head { display: flex; flex-direction: column; gap: 1.5rem; margin-block-end: 2.5rem; }
@media (min-width: 768px) { .page-hero__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.page-hero--compact .page-hero__head { margin-block-end: 0; }
.page-hero__text { max-width: 44rem; }
.page-hero__text .lead { margin-block-end: 0; }

.counter { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-radius: var(--r-lg); background: var(--bg-low); flex-shrink: 0; }
.counter__text { display: flex; flex-direction: column; }
.counter__label { font-size: 0.6875rem; font-weight: 600; color: var(--text-dim); }
.counter__value { font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.counter__icon { color: var(--gold); }

/* المقال المميز */
.featured { position: relative; display: grid; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-low); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
@media (min-width: 1024px) { .featured { grid-template-columns: 5fr 7fr; } }
.featured__media { position: relative; display: block; min-height: 18rem; overflow: hidden; background: var(--bg-lowest); }
.featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .7s; }
.featured:hover .featured__media img { transform: scale(1.04); }
.featured__badge { position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(14, 14, 16, .9); color: var(--gold); font-size: 0.75rem; font-weight: 600; }
.featured__badge .material-symbols-outlined { font-size: 1rem; font-variation-settings: "FILL" 1; }
.featured__body { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem; }
@media (min-width: 768px) { .featured__body { padding: 3rem; } }
.featured__title { margin-block: 0.5rem 1rem; }
.featured__title a:hover { color: var(--gold); }
.featured__excerpt { color: var(--text-dim); line-height: 2; margin-block-end: 1.25rem; }
.featured__quote { font-family: var(--font-serif); font-style: italic; color: var(--gold); border-inline-start: 4px solid var(--gold-2); background: var(--bg); padding: 1rem 1.25rem; border-radius: 0 var(--r-lg) var(--r-lg) 0; line-height: 1.9; }
.featured__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.featured__foot .btn-row { margin: 0; gap: 0.75rem; }
.featured__stats { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-dim); }

/* شريط الأدوات */
.toolbar { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; border-radius: var(--r-lg); background: var(--bg-low); margin-block-end: 1rem; }
@media (min-width: 768px) { .toolbar { flex-direction: row; align-items: center; } }
.toolbar__search { position: relative; flex: 1; }
.toolbar__search-icon { position: absolute; inset-block-start: 50%; inset-inline-end: 1rem; transform: translateY(-50%); color: var(--outline); pointer-events: none; }
.toolbar__input {
	width: 100%; padding: 0.8rem 3rem 0.8rem 1rem; border: 1px solid transparent; border-radius: var(--r-lg);
	background: var(--bg); font-size: 0.875rem;
}
[dir="ltr"] .toolbar__input { padding: 0.8rem 1rem 0.8rem 3rem; }
.toolbar__input:focus { outline: none; border-color: var(--gold-2); background: var(--bg-bright); }
.toolbar__controls { display: flex; align-items: center; gap: 0.75rem; }
.toolbar__sort { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: var(--r-lg); background: var(--bg-mid); font-size: 0.75rem; color: var(--text-dim); }
.toolbar__sort select { border: 0; background: transparent; color: var(--gold); font-weight: 600; font-size: 0.8125rem; padding: 0.4rem 0.25rem; cursor: pointer; }
.toolbar__sort select option { background: var(--bg-mid); color: var(--text); }
.toolbar__views { display: none; gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-lg); background: var(--bg-mid); }
@media (min-width: 640px) { .toolbar__views { display: flex; } }
.view-btn { display: inline-flex; padding: 0.4rem; border: 0; border-radius: var(--r); background: transparent; color: var(--text-dim); }
.view-btn.is-active { background: var(--gold-2); color: var(--gold-deep); }

.chips, .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 2rem; }
.filters { margin-block-end: 2.5rem; }
.chip { display: inline-flex; padding: 0.4rem 1.1rem; border: 0; border-radius: 6px; background: var(--bg-mid); color: var(--text-dim); font-size: 0.75rem; font-weight: 600; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--bg-high); color: var(--text); }
.chip.is-active { background: var(--gold-2); color: var(--gold-deep); }

/* وضع القائمة */
.js-articles-grid.is-list { grid-template-columns: 1fr; }
.js-articles-grid.is-list .card--post { flex-direction: row; }
.js-articles-grid.is-list .card--post .card__media { width: 34%; height: auto; min-height: 100%; flex-shrink: 0; }
@media (max-width: 767px) {
	.js-articles-grid.is-list .card--post { flex-direction: column; }
	.js-articles-grid.is-list .card--post .card__media { width: 100%; height: 14rem; }
}

/* الاقتباس */
.pullquote-block { position: relative; overflow: hidden; display: flex; gap: 1.5rem; margin-block: 3.5rem; padding: 2.5rem; border-radius: var(--r-xl); background: var(--bg-low); }
@media (min-width: 768px) { .pullquote-block { padding: 3.5rem; } }
.pullquote-block__mark { position: absolute; inset-block-end: -2rem; inset-inline-start: 1rem; color: var(--bg-high); opacity: .6; pointer-events: none; }
.pullquote-block__mark .material-symbols-outlined { font-size: 9rem; font-variation-settings: "FILL" 1; }
.pullquote-block__body { position: relative; z-index: 1; max-width: 48rem; }
.pullquote-block__text { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 2; margin-block: 0.5rem 1rem; font-style: normal; }
.pullquote-block__by { font-size: 0.875rem; font-weight: 600; color: var(--gold); font-style: normal; display: block; }
.pullquote-block--big { margin-block-end: 0; margin-block-start: 3rem; background: var(--bg-mid); }

/* الترقيم */
.pager { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-block-start: 1rem; }
@media (min-width: 768px) { .pager { flex-direction: row; justify-content: space-between; } }
.pager__count { font-size: 0.75rem; color: var(--text-dim); }
.pager__count strong { color: var(--text); }
.pagination__list { display: flex; align-items: center; gap: 0.5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding-inline: 0.5rem; border-radius: var(--r-lg); background: var(--bg-mid); color: var(--text-dim); font-size: 0.875rem; font-weight: 600; transition: background-color .2s, color .2s; }
.pagination a.page-numbers:hover { background: var(--bg-high); color: var(--gold); }
.pagination .page-numbers.current { background: var(--gold-2); color: var(--gold-deep); }
.pagination .page-numbers.dots { background: transparent; }
.js .pager .js-load-more { display: inline-flex; }
.js-load-more { display: none; }
.js .pagination { display: none; }
.js-load-more[disabled] { opacity: .6; cursor: progress; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--text-dim); }
.empty__icon.material-symbols-outlined { font-size: 3.5rem; color: var(--gold-2); margin-block-end: 1rem; }
.empty .h2 { margin-block-end: 0.5rem; color: var(--text); }

/* ==========================================================================
   المقال المفرد والصفحات
   ========================================================================== */
.single__hero { position: relative; overflow: hidden; padding-block: 3rem 2rem; background: var(--bg-lowest); }
.single__hero > .container { position: relative; z-index: 1; }
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--gold); margin-block-end: 1.25rem; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--outline); }
.single__title { margin-block-end: 1rem; }
.single__meta { margin-block-start: 1rem; }
.single__figure { margin-block: 2rem; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-low); }
.single__figure img { width: 100%; }
.single__figure figcaption { padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--text-dim); }
.single .container--article { padding-block-end: 3rem; }

.entry-content { font-size: 1.125rem; line-height: 2.1; color: var(--text); overflow-wrap: anywhere; }
.entry-content > * + * { margin-block-start: 1.5rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-serif); line-height: 1.6; margin-block-start: 2.5rem; color: var(--text); }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: #ffddb4; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-block-start: 0.5rem; }
.entry-content blockquote, .entry-content .wp-block-quote {
	font-family: var(--font-serif); font-style: italic; color: var(--gold); padding: 1.25rem 1.5rem; background: var(--bg-low);
	border-inline-start: 4px solid var(--gold-2); border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.entry-content img, .entry-content video { border-radius: var(--r-lg); }
.entry-content figcaption { font-size: 0.8125rem; color: var(--text-dim); margin-block-start: 0.5rem; text-align: center; }
.entry-content hr { border: 0; height: 1px; background: var(--bg-high); margin-block: 2.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 0.75rem 1rem; border: 1px solid var(--bg-high); text-align: start; }
.entry-content th { background: var(--bg-low); }
.entry-content pre { overflow-x: auto; padding: 1rem; border-radius: var(--r-lg); background: var(--bg-lowest); direction: ltr; text-align: left; font-size: .9rem; line-height: 1.7; }
.entry-content code { background: var(--bg-mid); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content .alignwide { max-width: 68rem; margin-inline: auto; }
.entry-content .alignfull { max-width: none; }
.entry-content .has-drop-cap:not(:focus)::first-letter { color: var(--gold); }
.page-links { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; margin-block-start: 2rem; }

.single__foot { margin-block-start: 3rem; padding-block-start: 2rem; border-block-start: 1px solid var(--bg-high); display: flex; flex-direction: column; gap: 1.5rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list a { padding: 0.25rem 0.85rem; border-radius: 6px; background: var(--bg-mid); font-size: 0.75rem; color: var(--text-dim); }
.tag-list a:hover { color: var(--gold); }
.share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.share__label { font-size: 0.8125rem; color: var(--text-dim); margin-inline-end: 0.5rem; }
.author-box { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border-radius: var(--r-xl); background: var(--bg-low); }
.author-box__avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: #000; flex-shrink: 0; }
.author-box__name { font-weight: 600; display: block; }
.author-box__bio { font-size: 0.875rem; color: var(--text-dim); line-height: 1.8; }

.post-navigation .nav-links { display: grid; gap: 1rem; margin-block-start: 2.5rem; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-low); transition: background-color .2s; height: 100%; }
.post-navigation a:hover { background: var(--bg-mid); }
.post-navigation .nav-next { text-align: end; }
.post-navigation .nav-label { font-size: 0.75rem; color: var(--gold); font-weight: 600; }
.post-navigation .nav-title { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.7; }

/* التعليقات */
.comments { margin-block-start: 3rem; }
.comments__title { margin-block-end: 1.5rem; }
.comment-list, .comment-list .children { display: flex; flex-direction: column; gap: 1rem; }
.comment-list .children { margin-block-start: 1rem; padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--bg-high); }
.comment__body { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-low); }
.comment__avatar img { border-radius: 50%; }
.comment__main { flex: 1; min-width: 0; }
.comment__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: baseline; margin-block-end: 0.5rem; }
.comment__author { font-weight: 600; }
.comment__meta time { font-size: 0.75rem; color: var(--text-dim); }
.comment__content { color: var(--text-dim); line-height: 1.9; overflow-wrap: anywhere; }
.comment__content > * + * { margin-block-start: 0.75rem; }
.comment__pending { color: var(--gold); font-size: 0.8125rem; }
.comment__actions { margin-block-start: 0.75rem; font-size: 0.75rem; color: var(--outline); }
.comment__actions a { color: var(--gold); }
.comment-respond { margin-block-start: 2.5rem; }
.comment-form { display: grid; gap: 1rem; margin-block-start: 1rem; }
.comment-form label { display: block; font-size: 0.8125rem; color: var(--text-dim); margin-block-end: 0.4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.8rem 1rem; border: 1px solid transparent; border-radius: var(--r-lg); background: var(--bg-low); font-size: 0.9375rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gold-2); background: var(--bg-mid); }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8125rem; color: var(--text-dim); }
.comment-form-cookies-consent label { margin: 0; }
.comment-reply-title small { margin-inline-start: 1rem; font-size: 0.8rem; }
.logged-in-as, .comment-notes { font-size: 0.8125rem; color: var(--text-dim); }

.search-form { display: flex; gap: 0.5rem; max-width: 30rem; margin-inline: auto; margin-block-start: 1.5rem; }
.not-found { text-align: center; padding-block: 5rem; }
.not-found__code { display: block; font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--bg-high); margin-block-end: 0.5rem; }
.not-found .lead { margin-inline: auto; margin-block-end: 0.5rem; }

/* ==========================================================================
   من أنا
   ========================================================================== */
.portrait { display: flex; justify-content: center; }
.portrait__card { position: relative; width: 100%; max-width: 26rem; padding: 0.75rem; border-radius: var(--r-xl); background: var(--bg-low); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: #000; }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 16, .95), transparent 55%); }
.portrait__caption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.5rem; display: flex; flex-direction: column; }
.portrait__name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; }
.portrait__role { font-size: 0.8125rem; color: var(--gold); }
.portrait__creds { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.85rem 0.75rem 0.25rem; font-size: 0.6875rem; color: var(--text-dim); }
.portrait__creds span { display: inline-flex; align-items: center; gap: 0.35rem; }
.portrait__creds .material-symbols-outlined { font-size: 1rem; }

/* المحطات */
.timeline { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
.milestone { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: 2rem; border-radius: var(--r-xl); background: var(--bg-low); transition: background-color .25s; }
.milestone:hover { background: var(--bg-mid); }
.milestone[hidden] { display: none; }
.milestone--full { grid-column: 1 / -1; flex-direction: column; }
@media (min-width: 768px) { .milestone--full { flex-direction: row; gap: 2.5rem; } }
.milestone__side { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; flex-shrink: 0; }
@media (min-width: 768px) { .milestone__side { width: 11rem; } }
.milestone__main { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.milestone__main p { color: var(--text-dim); line-height: 1.9; font-size: 0.9375rem; }
.milestone__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-block-end: 0.5rem; }
.milestone__period { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.milestone__period--lg { font-size: 1.6rem; }
.milestone__period--sky { color: var(--sky); }
.milestone__period--outline { color: var(--outline); }
.badge--gold { color: var(--gold); }
.badge--outline { color: var(--outline); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block-start: 0.75rem; }
.tags li { padding: 0.2rem 0.7rem; border-radius: 4px; background: var(--bg-high); color: var(--text-dim); font-size: 0.6875rem; font-weight: 600; }
.milestone__hl { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-block-start: 0.5rem; }
.milestone__hl--sky { color: var(--sky); }
.milestone__hl .material-symbols-outlined { font-size: 1rem; }
.milestone.is-hidden { display: none; }

/* المهارات */
.skills { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .skills { grid-template-columns: 1fr 2fr; } }
.method { margin-block-start: 2rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg-mid); border-inline-start: 4px solid var(--gold-2); }
.method p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.9; margin-block-start: 0.5rem; }
.skills__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
.skill { padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg-low); transition: background-color .25s; }
.skill:hover { background: var(--bg-mid); }
.skill__head { display: flex; align-items: center; gap: 0.75rem; margin-block-end: 0.5rem; }
.skill p { font-size: 0.875rem; color: var(--text-dim); line-height: 1.9; }

.dossier { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .dossier { grid-template-columns: 7fr 5fr; } }
.dossier__text p { color: var(--text-dim); line-height: 1.9; margin-block-start: 0.75rem; }
.dossier__meta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: 0.75rem; color: var(--outline) !important; }
.dossier__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.dossier__meta .material-symbols-outlined { font-size: 1rem; color: var(--gold); }
.dossier__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ==========================================================================
   تواصل معي
   ========================================================================== */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-form-wrap { padding: 2rem; border-radius: var(--r-xl); background: var(--bg-low); }
@media (min-width: 768px) { .contact-form-wrap { padding: 3rem; } }
.contact-form__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 2rem; }
.contact-form__head .tile__icon { margin: 0; flex-shrink: 0; }
.contact-form__head .muted { margin-block-start: 0.25rem; }
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-dim); margin-block-end: 0.5rem; }
.req { color: var(--gold); }
.select-wrap { position: relative; }
.select-wrap__icon { position: absolute; inset-block-start: 50%; inset-inline-start: 1rem; transform: translateY(-50%); color: var(--outline); pointer-events: none; }
.select-wrap select.field { padding-inline: 1rem 2.5rem; }
.select-wrap select option { background: var(--bg-mid); }
.form__privacy { display: flex; align-items: center; gap: 0.4rem; font-size: 0.6875rem; color: var(--outline); }
.form__privacy .material-symbols-outlined { font-size: 1rem; color: var(--gold); }
.form__quote { font-family: var(--font-serif); font-style: italic; color: var(--text-dim); margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--bg-high); }

.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.card-box { padding: 1.5rem; border-radius: var(--r-xl); background: var(--bg-low); }
.card-box__title { display: flex; align-items: center; gap: 0.5rem; margin-block-end: 1.25rem; }
.id-card { display: flex; align-items: center; gap: 1.25rem; }
.id-card__icon { width: 4rem; height: 4rem; border-radius: var(--r-lg); background: #000; color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.id-card__icon .material-symbols-outlined { font-size: 1.75rem; }
.id-card__role { font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.channels { display: flex; flex-direction: column; gap: 1.25rem; }
.channel { display: flex; align-items: flex-start; gap: 1rem; }
.channel__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--r-lg); background: var(--bg-mid); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.channel__icon--sky { color: var(--sky); }
.channel__body { display: flex; flex-direction: column; min-width: 0; }
.channel__label { font-size: 0.6875rem; color: var(--text-dim); }
.channel__value { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.channel__value:hover { color: var(--gold); }
.channel__text { font-size: 0.875rem; line-height: 1.8; }
.collab { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-block-start: 1rem; }
.collab li { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem; border-radius: var(--r-lg); background: var(--bg-mid); font-size: 0.8125rem; font-weight: 500; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-block-start: 1rem; }
.platforms a { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem; border-radius: var(--r-lg); background: var(--bg-mid); font-size: 0.8125rem; font-weight: 600; transition: background-color .2s; }
.platforms a:hover { background: var(--bg-high); color: var(--gold); }
.banner { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem; border-radius: var(--r-xl); background: var(--bg-low); }
@media (min-width: 768px) { .banner { flex-direction: row; align-items: center; justify-content: space-between; } }
.banner__info { display: flex; align-items: center; gap: 1.25rem; }
.banner__info .tile__icon { margin: 0; flex-shrink: 0; }

/* ---------- WordPress core alignment ---------- */
.alignleft { float: left; margin-inline-end: 1.5rem; }
.alignright { float: right; margin-inline-start: 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.8125rem; color: var(--text-dim); }
.sticky { position: relative; }
.bypostauthor { position: relative; }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .share, .toolbar, .nl-form, .panel-cta { display: none !important; }
	body { background: #fff; color: #000; }
	.site-main { padding: 0; }
}
