/* ---------- الخطوط (مستضافة مع الموقع) ---------- */
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("fonts/amiri-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("fonts/amiri-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("fonts/amiri-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }

/* ---------- المتغيرات ---------- */
:root {
  --ink: #10201e;
  --emerald: #0e3b36;
  --emerald-2: #16524a;
  --paper: #f5f7f4;
  --sheet: #ffffff;
  --brass: #96712a;
  --brass-light: #d9bc7a;
  --live: #a3202f;
  --rule: #d3dcd5;
  --muted: #53645f;
  --display: "Amiri", "Traditional Arabic", "Geeza Pro", serif;
  --text: "Plex Arabic", "Amiri", "Segoe UI", Tahoma, sans-serif;
  --gutter: clamp(1.25rem, 3.5vw, 4.5rem);
}

*, *::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: 400 1.0625rem/1.85 var(--text); }
img, svg { max-width: 100%; display: block; }
a { color: var(--emerald-2); text-underline-offset: .25em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--sheet); padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }
.star { width: .7em; height: .7em; fill: var(--brass); display: inline-block; margin-inline-end: .5em; flex: none; }
.todo { border: 1px dashed var(--brass); background: #fbf6e9; color: #5c4514; padding: .6rem .9rem; font-size: .95rem; }
.draft-bar { margin: 0; background: #fbf6e9; color: #5c4514; text-align: center; font-size: .9rem; padding: .35rem 1rem; border-bottom: 1px solid #e6d7ad; }

/* ---------- الترويسة ---------- */
.site-head { background: var(--emerald); color: #fff; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; flex-wrap: wrap; }
.brand { display: grid; color: #fff; text-decoration: none; font-family: var(--display); line-height: 1.3; }
.brand:hover { color: var(--brass-light); }
.brand-lead { font-size: .95rem; color: var(--brass-light); }
.brand-name { font-size: 1.45rem; font-weight: 700; }
.nav { display: flex; align-items: center; gap: .15rem 1.15rem; flex-wrap: wrap; font-size: .98rem; }
.nav a { color: #e6efec; text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: var(--brass-light); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass-light); }
.nav .live-link { background: var(--live); color: #fff; padding: .3rem .9rem; border: 0; border-radius: 2rem; display: inline-flex; align-items: center; gap: .45rem; }
.nav .live-link::before, .btn-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #fff; }
.nav .live-link:hover { background: #8a1826; }
@media (min-width: 52.01rem) {
  .site-head--home .nav { flex: 1; }
  .site-head--home .nav .live-link { margin-inline-start: auto; }
}
.nav-toggle { display: none; background: none; border: 1px solid #ffffff66; color: #fff; padding: .35rem .9rem; border-radius: 2rem; cursor: pointer; }

/* ---------- الواجهة ---------- */
.hero { background-color: var(--emerald); color: #fff; padding-block: 1.5rem 0; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92'%3E%3Cg fill='none' stroke='%23d9bc7a' stroke-opacity='.07'%3E%3Crect x='22' y='22' width='48' height='48'/%3E%3Crect x='22' y='22' width='48' height='48' transform='rotate(45 46 46)'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-in { display: grid; grid-template-columns: clamp(15rem, 27vw, 31rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero-text { padding-block: 2.5rem 3.5rem; }
.hero h1 { display: grid; }
.hero-lead { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 400; color: var(--brass-light); }
.hero-hon { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 400; }
.hero-name { font-size: clamp(3rem, 8.5vw, 6.2rem); line-height: 1.25; }
.hero-role { margin: .9rem 0 2rem; max-width: 34rem; color: #d6e3df; font-size: 1.15rem; padding-block-start: .9rem; border-top: 1px solid #d9bc7a66; }
.hero-arch { align-self: end; }
.arch { width: 100%; height: auto; margin-block-end: -1px; }
.arch-note { font: 400 15px var(--text); fill: #d9bc7a; }

.search { display: flex; max-width: 34rem; background: #fff; border-radius: .35rem; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: .8rem 1rem; background: transparent; color: var(--ink); }
.search input:focus-visible { outline-offset: -3px; }
.search button { border: 0; background: var(--brass-light); color: var(--emerald); font-weight: 600; padding-inline: 1.5rem; cursor: pointer; }
.search button:hover { background: #e7cf97; }
.search-page { border: 1px solid var(--rule); margin-block-end: 1.5rem; }
.hero-links { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 0; }
.hero-social { margin: 1.6rem 0 0; }
.hero-social p { margin: 0 0 .6rem; color: var(--brass-light); font-size: .95rem; }
.hero-social ul { display: grid; grid-template-columns: repeat(4, minmax(0, 10rem)); gap: .6rem; }
.hero-social a { display: flex; align-items: center; justify-content: center; gap: .55rem; height: 2.9rem; color: #fff; text-decoration: none; font-weight: 500; border: 1px solid #d9bc7a80; border-radius: .4rem; }
.hero-social .ico { width: 1.25em; height: 1.25em; color: var(--brass-light); transition: color .16s ease; }
.hero-social a:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--emerald); }
.hero-social a:hover .ico { color: var(--emerald); }
.videos-cta { margin: 1.75rem 0 0; text-align: center; }

.btn, .btn-live, .btn-ghost { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.2rem; border-radius: 2rem; text-decoration: none; font-weight: 500; border: 1px solid transparent; cursor: pointer; }
.btn { background: var(--emerald); color: #fff; }
.btn:hover { background: var(--emerald-2); color: #fff; }
.btn-live { background: var(--live); color: #fff; }
.btn-live:hover { background: #8a1826; color: #fff; }
.btn-ghost { border-color: #ffffff73; color: #fff; }
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

.band { height: 22px; background-color: var(--emerald-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg fill='none' stroke='%23d9bc7a' stroke-opacity='.55'%3E%3Crect x='5.5' y='5.5' width='11' height='11'/%3E%3Crect x='5.5' y='5.5' width='11' height='11' transform='rotate(45 11 11)'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- القبة الخضراء ---------- */
.hero, .page-head { position: relative; isolation: isolate; }
.page-head { overflow: hidden; }
.hero::before, .page-head::before { content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 720 / 656; background: url("dome.webp") no-repeat center bottom / contain; }
.hero::before { left: 0; bottom: 0; width: clamp(22rem, 41vw, 50rem); opacity: .55; transform: translateY(var(--dome-y, 0px)); will-change: transform; -webkit-mask-image: linear-gradient(to left, transparent, #000 26%); mask-image: linear-gradient(to left, transparent, #000 26%); }
.page-head::before { inset-block: 0; inset-inline-end: 0; width: min(46%, 30rem); aspect-ratio: auto; background: url("dome-madina.webp") no-repeat 50% 38% / cover; opacity: .5; -webkit-mask-image: linear-gradient(to right, #000 30%, transparent); mask-image: linear-gradient(to right, #000 30%, transparent); }
.hero-social a { background-color: #0e3b36b8; }
@media (min-width: 52.01rem) {
  section.hero { padding-block-start: 3.25rem; }
}
@media (max-width: 52rem) {
  .hero::before, .hero-arch { display: none; }
  .page-head::before { opacity: .38; }
}

/* ---------- كتاب الواجهة على الهاتف: صفحة القبة يمينًا وصفحة الصورة يسارًا ---------- */
.book { display: none; }
@media (max-width: 52rem) {
  .book { display: grid; grid-template-columns: 1fr 1fr; position: relative; width: min(100%, 27rem); margin: .25rem auto 0; padding: 5px 6px 7px; background: #082724; border: 1px solid #d9bc7a99; border-radius: 6px; box-shadow: 0 22px 30px -18px #020d0c; animation: arch-in .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .book::after { content: ""; position: absolute; top: 5px; bottom: 7px; left: 50%; width: 2.2rem; transform: translateX(-50%); background: linear-gradient(to right, transparent, #3a2f1438 40%, #1c160866 50%, #3a2f1438 60%, transparent); pointer-events: none; }
  .page { display: grid; aspect-ratio: 3 / 4.1; padding: .5rem; background: #fbf7ec; }
  .page:first-child { border-radius: 1px 4px 4px 1px; box-shadow: 2px 0 0 #e7dfcb, 3px 0 0 #b9ae93; }
  .page:last-child { border-radius: 4px 1px 1px 4px; box-shadow: -2px 0 0 #e7dfcb, -3px 0 0 #b9ae93; }
  .page img { width: 100%; height: 100%; min-height: 0; border: 1px solid var(--brass); outline: 1px solid #d9bc7a; outline-offset: 2px; }
  .page:first-child img { object-fit: cover; object-position: 50% calc(25% + var(--dp, 0) * 60%); }
  .page:last-child img { object-fit: cover; object-position: var(--fx, 50%) 0; }
}

/* ---------- بوابة القبة عند فتح الصفحة ---------- */
.gate { display: none; }
.js .gate { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none; --gw: min(80vw, 66vh, 36rem); background: var(--emerald); animation: gate-clear 1ms linear 1.75s forwards, gate-off 1ms linear 3s forwards; }
.gate i { position: absolute; top: 0; bottom: 0; pointer-events: auto; }
.gate i:first-child { left: 0; right: 50%; background: radial-gradient(circle at 100% 50%, #1b6157, var(--emerald) 62%); animation: gate-left 1.2s cubic-bezier(.7, 0, .2, 1) 1.75s forwards; }
.gate i:last-child { left: 50%; right: 0; background: radial-gradient(circle at 0 50%, #1b6157, var(--emerald) 62%); animation: gate-right 1.2s cubic-bezier(.7, 0, .2, 1) 1.75s forwards; }
.gate i::before { content: ""; position: absolute; inset: 0; background: url("dome.webp") no-repeat; background-size: var(--gw) auto; animation: gate-dome 1.6s ease both; }
.gate i:first-child::before { background-position: right calc(var(--gw) / -2) center; }
.gate i:last-child::before { background-position: left calc(var(--gw) / -2) center; }
.js.seen .gate { animation-delay: .3s, 1.2s; }
.js.seen .gate i { animation-duration: .85s; animation-delay: .3s; }
.js.seen .gate i::before { animation: none; }
@keyframes gate-dome { 0% { opacity: 0; filter: grayscale(1) brightness(1.5); } 30%, 45% { opacity: .4; filter: grayscale(1) brightness(1.5); } 100% { opacity: 1; filter: none; } }
@keyframes gate-left { to { transform: translateX(-102%); } }
@keyframes gate-right { to { transform: translateX(102%); } }
@keyframes gate-clear { to { background-color: transparent; } }
@keyframes gate-off { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce), print { .js .gate { display: none; } }

/* ---------- التعريف بالموقع والأبواب ---------- */
.intro { padding-block: 3rem 0; }
.intro-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-block-end: 2rem; }
.intro h2 { font-size: 2rem; display: flex; align-items: center; }
.intro-lead { margin: .4rem 0 0; font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.intro .search { max-width: none; border: 1px solid var(--rule); }
.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.door a { display: grid; gap: .35rem; align-content: start; height: 100%; padding: 1.25rem 1.1rem 1.1rem; background: var(--sheet); color: var(--ink); text-decoration: none; border: 1px solid var(--rule); border-top: 3px solid var(--brass); transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.door svg { width: 2.1rem; height: 2.1rem; fill: none; stroke: var(--emerald-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease, transform .2s ease; }
.door-title { font: 700 1.35rem/1.45 var(--display); }
.door-sub { font-size: .86rem; line-height: 1.65; color: var(--muted); transition: color .2s ease; }
.door-n { font-size: .82rem; font-weight: 600; color: var(--brass); transition: color .2s ease; }
.door a:hover { background: var(--emerald); border-color: var(--emerald); border-top-color: var(--brass-light); color: #fff; transform: translateY(-4px); box-shadow: 0 18px 26px -20px #041a17; }
.door a:hover svg { stroke: var(--brass-light); transform: scale(1.08); }
.door a:hover .door-sub { color: #d6e3df; }
.door a:hover .door-n { color: var(--brass-light); }
.door a:active { transform: translateY(-1px) scale(.98); }
@media (max-width: 75rem) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- عناوين الأقسام ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--emerald); padding-block-end: .4rem; margin-block-end: .25rem; }
.sec-head h2 { font-size: 1.75rem; display: flex; align-items: center; }
.more { font-size: .95rem; }

/* ---------- السجل: صفوف المحتوى ---------- */
.entry { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.25rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.entry[hidden] { display: none; }
.entry-date { display: grid; align-content: start; justify-items: center; text-align: center; border-inline-end: 1px solid var(--rule); padding-inline-end: 1.25rem; color: var(--muted); }
.entry-day { font: 700 2.1rem/1.1 var(--display); color: var(--emerald); }
.entry-my { font-size: .82rem; line-height: 1.5; }
.entry-title { font-weight: 600; font-size: 1.12rem; line-height: 1.6; color: var(--ink); text-decoration: none; }
.entry-title:hover { color: var(--emerald-2); text-decoration: underline; }
.entry-sum { margin: .2rem 0 0; color: var(--muted); font-size: .98rem; max-width: 62ch; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .55rem 0 0; font-size: .82rem; }
.tag, .fmt { padding: .05rem .65rem; border-radius: 2rem; line-height: 1.8; }
.tag { background: #e3ece7; color: var(--emerald); }
.tag-series { background: #f3ead2; color: #5c4514; }
.fmt { border: 1px solid var(--rule); color: var(--muted); }
.ledger-tight .entry { grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1rem; padding-block: .85rem; }
.ledger-tight .entry-date { padding-inline-end: 1rem; }
.ledger-tight .entry-day { font-size: 1.6rem; }
.ledger-tight .entry-sum { display: none; }
.entry-thumb { align-self: start; }
.entry-thumb img { width: 10.5rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--emerald-2); }
.ledger-tight .entry-thumb img { width: 7.5rem; }

/* ---------- الرئيسية ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 3rem; padding-block: 3.5rem; align-items: start; }
.home-side { display: grid; gap: 1.5rem; }
.quote { margin: 0; background: var(--sheet); border-inline-start: 4px solid var(--brass); padding: 1.5rem 1.4rem; }
.quote blockquote { margin: 0; font: 400 1.45rem/1.9 var(--display); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-block-start: .8rem; color: var(--muted); font-size: .9rem; }
.side-list ul { display: grid; }
.side-list li { display: grid; gap: .1rem; padding-block: .7rem; border-bottom: 1px solid var(--rule); }
.side-list a { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.6; }
.side-list a:hover { color: var(--emerald-2); text-decoration: underline; }
.side-list time { color: var(--muted); font-size: .85rem; }
.home-side .sec-head h2 { font-size: 1.45rem; }
.ask { background: var(--emerald); color: #e6efec; padding: 1.5rem 1.4rem; }
.ask h2 { color: #fff; font-size: 1.4rem; margin-block-end: .4rem; }
.ask .btn { background: var(--brass-light); color: var(--emerald); font-weight: 600; }
.ask .btn:hover { background: #e7cf97; }

.videos-sec { background: #e9eeea; padding-block: 3rem; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-block-start: 1.25rem; }
.video a { display: grid; gap: .5rem; text-decoration: none; color: var(--ink); }
.video a:hover .video-title { color: var(--emerald-2); text-decoration: underline; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--emerald-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg fill='none' stroke='%23d9bc7a' stroke-opacity='.3'%3E%3Crect x='11' y='11' width='24' height='24'/%3E%3Crect x='11' y='11' width='24' height='24' transform='rotate(45 23 23)'/%3E%3C/g%3E%3C/svg%3E"); }
.play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #ffffffeb; }
.play::after { content: ""; position: absolute; inset: 50% auto auto 50%; translate: -35% -50%; border-style: solid; border-width: .6rem 0 .6rem 1rem; border-color: transparent transparent transparent var(--emerald); }
.video-title { font-weight: 600; line-height: 1.6; }
.video time { color: var(--muted); font-size: .88rem; }

.home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; padding-block: 3.5rem; }

/* ---------- الصفحات الداخلية ---------- */
.page-head { background: var(--emerald); color: #fff; padding-block: 1.75rem 2.25rem; border-bottom: 6px solid var(--emerald-2); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); max-width: 24em; }
.page-lead { margin: .5rem 0 0; color: #d6e3df; max-width: 60ch; }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .9rem; margin-block-end: .5rem; }
.crumbs a { color: var(--brass-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #ffffff80; }

.list-page { padding-block: 2rem 4rem; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-block-end: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--rule); background: var(--sheet); padding: .3rem 1.05rem; border-radius: 2rem; cursor: pointer; }
.chip:hover { border-color: var(--emerald-2); }
.chip[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.series-pick { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--muted); }
.series-pick select { border: 1px solid var(--rule); background: var(--sheet); padding: .35rem .7rem; border-radius: .3rem; max-width: 16rem; }
.empty, .search-status { color: var(--muted); padding-block: 1rem; margin: 0; }
.more-wrap { text-align: center; margin-block-start: 2rem; }

.item { padding-block: 2rem 4rem; }
.item > * { max-width: 50rem; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .9rem; color: var(--muted); }
.hijri { border-inline-start: 1px solid var(--rule); padding-inline-start: .9rem; }
.item-sum { font-size: 1.2rem; line-height: 1.9; }
.item-img { margin-block: 1.5rem; }
.yt { margin-block: 1.5rem; aspect-ratio: 16 / 9; background: var(--emerald-2); position: relative; }
.yt button { all: unset; position: absolute; inset: 0; cursor: pointer; }
.yt button:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 3px; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.audio { width: 100%; margin-block: 1rem; }
.question { background: var(--sheet); border-inline-start: 4px solid var(--brass); padding: 1.2rem 1.4rem; margin-block: 1.5rem; }
.question h2, .prose h2 { font-size: 1.5rem; margin-block: 1.6rem .5rem; display: flex; align-items: center; }
.question h2 { margin-block-start: 0; }
.question p:last-child { margin: 0; }
.prose { font-size: 1.12rem; line-height: 2.05; max-width: 68ch; }
.source { font-size: .95rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; border-block: 1px solid var(--rule); padding-block: .8rem; margin-block: 2rem; font-size: .95rem; }
.share span { color: var(--muted); }
.share button { background: none; border: 0; padding: 0; color: var(--emerald-2); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.prevnext a { text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.6; }
.prevnext a:hover { color: var(--emerald-2); }
.prevnext a span { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.prevnext a:last-child { text-align: end; }

.about { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; padding-block: 2.5rem 4rem; align-items: start; }
.about-arch { background: var(--emerald); padding: 1.25rem 1.25rem 0; }
.about-intro { font: 400 1.5rem/1.9 var(--display); }
.contact { padding-block: 2rem 4rem; }
.contact > * { max-width: 46rem; }
.contact section { margin-block-end: 2.25rem; }
.contact h2 { font-size: 1.5rem; display: flex; align-items: center; margin-block-end: .6rem; }
.channels { display: flex; flex-wrap: wrap; gap: .6rem; }
.channels a { border: 1px solid var(--rule); background: var(--sheet); padding: .3rem 1.1rem; border-radius: 2rem; text-decoration: none; }
.channels a:hover { border-color: var(--emerald-2); }
.contact-form form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 500; }
.contact-form input, .contact-form textarea { border: 1px solid var(--rule); background: var(--sheet); padding: .6rem .8rem; border-radius: .3rem; }
.contact-form .btn { justify-self: start; }
.live-off { font: 700 1.6rem var(--display); margin-block-end: .3rem; }

/* ---------- التذييل ---------- */
.site-foot { background: var(--emerald); color: #d6e3df; margin-block-start: 0; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-block: 2.75rem 2rem; }
.foot-name { font: 700 1.35rem/1.5 var(--display); color: #fff; margin-block-end: .5rem; }
.foot-nav, .foot-social { display: grid; gap: .3rem; align-content: start; justify-items: start; }
.foot-h { color: var(--brass-light); margin: 0 0 .2rem; }
.site-foot a { color: #e6efec; text-decoration: none; }
.site-foot a:hover { color: var(--brass-light); text-decoration: underline; }
.site-foot .todo { margin: 0; }
.foot-legal { border-top: 1px solid #ffffff26; padding-block: 1rem; font-size: .85rem; }
.foot-legal p { margin: 0; }

/* ---------- الحركة والتفاعل ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.site-head { position: sticky; top: 0; z-index: 20; view-transition-name: site-head; transition: box-shadow .2s ease; }
.site-head .head-in { transition: padding .2s ease; }
.site-head.is-stuck { box-shadow: 0 8px 22px -10px #041a17; }
.site-head.is-stuck .head-in { padding-block: .4rem; }
.site-head.is-stuck .brand-lead { display: none; }
.nav a { transition: color .16s ease, border-color .16s ease, background-color .16s ease; }
.btn, .btn-live, .btn-ghost, .search button, .chip, .nav-toggle, .hero-social a, .channels a, .foot-social a { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease; }
.btn:hover, .btn-live:hover, .btn-ghost:hover, .hero-social a:hover, .channels a:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px #041a17; }
.btn:active, .btn-live:active, .btn-ghost:active, .chip:active, .search button:active, .hero-social a:active, .channels a:active, .nav-toggle:active { transform: translateY(0) scale(.96); box-shadow: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #ffffffb3; } 70%, 100% { box-shadow: 0 0 0 .5rem #ffffff00; } }
.nav .live-link::before, .btn-live::before { animation: pulse 1.8s ease-out infinite; }
.entry-title { background: linear-gradient(var(--brass), var(--brass)) no-repeat 100% 100% / 0 2px; transition: background-size .25s ease, color .16s ease; padding-block-end: .1rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.entry-title:hover { background-size: 100% 2px; text-decoration: none; }
.entry-thumb, .thumb { overflow: hidden; }
.entry-thumb { display: block; }
.entry-thumb img, .thumb img { transition: transform .35s ease; }
.entry:hover .entry-thumb img, .video a:hover .thumb img { transform: scale(1.06); }
.play { transition: transform .2s ease; }
.video a:hover .play, .yt button:hover .play { transform: scale(1.12); }
.share button.done { color: var(--brass); text-decoration: none; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-lead, .hero-hon, .hero-name, .hero-role, .hero .search, .hero-links, .hero-social { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-hon { animation-delay: .06s; }
.hero-name { animation-delay: .12s; }
.hero-role { animation-delay: .22s; }
.hero .search { animation-delay: .3s; }
.hero-links { animation-delay: .38s; }
.hero-social { animation-delay: .32s; }
.hero-arch { animation: arch-in .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav.open { animation: nav-in .2s ease both; }

/* ---------- أيقونات الحسابات ---------- */
.soc { display: inline-flex; align-items: center; gap: .45rem; }
.ico { display: inline-block; flex: none; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-youtube { --m: url("icons/youtube.svg"); }
.ico-facebook { --m: url("icons/facebook.svg"); }
.ico-instagram { --m: url("icons/instagram.svg"); }
.ico-tiktok { --m: url("icons/tiktok.svg"); }
.ico-telegram { --m: url("icons/telegram.svg"); }
.ico-x { --m: url("icons/x.svg"); }
.ico-whatsapp { --m: url("icons/whatsapp.svg"); }
.ico-soundcloud { --m: url("icons/soundcloud.svg"); }
.foot-social a { border: 1px solid #ffffff33; padding: .2rem .9rem; border-radius: 2rem; }
.foot-social a:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--emerald); text-decoration: none; }
.foot-social { display: flex; flex-wrap: wrap; align-content: start; gap: .5rem; }
.foot-social .foot-h { flex-basis: 100%; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 60rem) {
  .home-grid, .home-pair { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; }
  .about-arch { max-width: 15rem; }
}
@media (max-width: 52rem) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block-end: .5rem; }
  .nav.open { display: flex; max-height: calc(100dvh - 5rem); overflow-y: auto; }
  .nav a { padding-block: .65rem; border-bottom: 1px solid #ffffff1f; }
  .nav .live-link { align-self: flex-start; margin-block-start: .8rem; padding: .4rem 1.1rem; }
  .hero { padding-block-start: 1.5rem; }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding-block-end: 2rem; }
  .hero-arch { width: min(62%, 15rem); margin-inline: auto; }
  .hero-text { text-align: center; padding-block: 1.25rem 2rem; }
  .hero h1 { justify-items: center; }
  .hero-role { margin-inline: auto; }
  .hero-social ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 22rem; margin-inline: auto; }
  .intro-head { grid-template-columns: 1fr; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  :root { --gutter: .875rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-lead { font-size: .85rem; }
  .entry, .ledger-tight .entry { grid-template-columns: 3.9rem minmax(0, 1fr) auto; gap: .85rem; }
  .entry-thumb img, .ledger-tight .entry-thumb img { width: 5.5rem; }
  .entry-date, .ledger-tight .entry-date { padding-inline-end: .75rem; }
  .entry-day { font-size: 1.6rem; }
  .search button { padding-inline: 1rem; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a:last-child { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media print {
  .site-head, .site-foot, .share, .prevnext, .draft-bar, .filters { display: none; }
  .page-head { background: none; color: #000; border: 0; }
}
