/* ============================================================
   الصحيح — هوية التصميم (أخت بصرية لـ alqoran.net)
   يُحمَّل بعد main.css: يعيد تعريف الألوان للموقع كله،
   ومكوّناته الجديدة كلها ببادئة sh- حتى لا تتصادم مع القديمة.
   ============================================================ */

/* ===== Tokens ===== */
:root {
	--bg: #f8f4ea;
	--surface: #ffffff;
	--surface-2: #f2efe5;
	--paper: #fbf7ea;
	--ink: #1c2a23;
	--ink-soft: #3a4a42;
	--muted: #6d7771;
	--line: #e5e0d2;
	--green: #0f4d36;
	--green-2: #17694a;
	--green-soft: #e3efe8;
	--gold: #a9853a;
	--gold-soft: #efe3c4;
	--ok: #1f7a52;
	--mid: #b07d1a;
	--weak: #b5452f;
	--bad: #8a2a2a;
	--none: #b9b4a6;
	--shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 8px 24px rgba(20, 40, 30, .06);
	--radius-lg: 14px;
	--hero-from: #0c3d2b;
	--hero-to: #145c41;
	--ui: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--display: "Amiri", "Traditional Arabic", serif;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d1512; --surface: #141f1b; --surface-2: #1a2722; --paper: #17221d; --ink: #e9e6dc; --ink-soft: #c9c6bb;
		--muted: #93a099; --line: #24342d; --green: #4fb487; --green-2: #3d9c72; --green-soft: #1c3329;
		--gold: #d6b46c; --gold-soft: #3a3322; --ok: #4fb487; --mid: #d6a645; --weak: #e07a62; --bad: #e07a62; --none: #55625c;
		--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
		--hero-from: #08251b; --hero-to: #0f3f2d; color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0d1512; --surface: #141f1b; --surface-2: #1a2722; --paper: #17221d; --ink: #e9e6dc; --ink-soft: #c9c6bb;
	--muted: #93a099; --line: #24342d; --green: #4fb487; --green-2: #3d9c72; --green-soft: #1c3329;
	--gold: #d6b46c; --gold-soft: #3a3322; --ok: #4fb487; --mid: #d6a645; --weak: #e07a62; --bad: #e07a62; --none: #55625c;
	--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
	--hero-from: #08251b; --hero-to: #0f3f2d; color-scheme: dark;
}

/* أسماء main.css القديمة ← الهوية الجديدة (فتتبعها كل الصفحات) */
:root {
	--color-bg: var(--bg);
	--color-surface: var(--surface);
	--color-surface-2: var(--surface-2);
	--color-primary: var(--green);
	--color-primary-light: var(--green-2);
	--color-accent: var(--gold);
	--color-text: var(--ink);
	--color-text-muted: var(--muted);
	--color-border: var(--line);
	--color-rai-high: var(--ok);
	--color-rai-medium: var(--mid);
	--color-rai-low: var(--weak);
	--shadow-sm: 0 1px 2px rgba(20, 40, 30, .06);
	--shadow-md: var(--shadow);
	--font: var(--ui);
}

/* ===== Base ===== */
body { font-family: var(--ui); font-size: 15px; background: var(--bg); color: var(--ink); transition: background .25s, color .25s; }
h1, h2 { font-family: var(--display); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.site-main { flex: 1; }
/* الصفحات الجديدة تتحكم في هوامشها بنفسها؛ القديمة تبقى على هامش main.css */
.site-main:has(> .sh-page), .site-main:has(> .sh-hero) { padding: 0; }
.sh-page { padding-block: 22px 80px; }

/* ===== Header ===== */
.sh-topbar { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); color: var(--ink); }
.sh-topbar .sh-wrap { display: flex; align-items: center; gap: 22px; height: 84px; }
.sh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.sh-logo { width: 58px; height: 58px; color: var(--green); }
.sh-brand b { display: block; font-family: var(--display); font-size: 36px; line-height: 1; color: var(--green); font-weight: 700; }
.sh-brand small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.sh-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.sh-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 500; position: relative; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.sh-nav a:hover { color: var(--green); }
.sh-nav > a.is-active, .sh-dd > a.is-active { color: var(--green); font-weight: 700; }
.sh-nav > a.is-active::after, .sh-dd > a.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: -22px; height: 2px; background: var(--green); border-radius: 2px; }
.sh-nav svg.i { width: 15px; height: 15px; }
.sh-dd { position: relative; }
.sh-dd-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 200px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; z-index: 5; }
.sh-dd-menu::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
.sh-dd:hover .sh-dd-menu, .sh-dd:focus-within .sh-dd-menu { display: grid; }
.sh-dd-menu a { padding: 8px 12px; border-radius: 8px; }
.sh-dd-menu a:hover { background: var(--surface-2); }
.sh-tools { display: flex; gap: 6px; flex: none; }
.sh-icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px; color: var(--ink-soft); cursor: pointer; text-decoration: none; }
.sh-icon-btn:hover { background: var(--surface-2); color: var(--green); }
.sh-icon-btn svg.i { width: 22px; height: 22px; }
.sh-menu-btn { display: none; }
.sh-theme-btn .moon { display: none; }
:root[data-theme="dark"] .sh-theme-btn .sun { display: none; }
:root[data-theme="dark"] .sh-theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .sh-theme-btn .sun { display: none; }
	:root:not([data-theme="light"]) .sh-theme-btn .moon { display: block; }
}

/* ===== Hero: الصورة (الكتب والمسجد النبوي) ===== */
.sh-hero { position: relative; overflow: hidden; color: #fff; background: #0b3a29; isolation: isolate; }
.sh-hero-bg, .sh-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-hero-bg { z-index: -2; }
.sh-hero-bg img { object-fit: cover; object-position: 50% 50%; }
/* تعتيم أخضر في الوسط حيث النص، تبقى الأطراف (الكتب والمسجد) ظاهرة */
.sh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 42% 75% at 50% 52%, rgba(6, 40, 27, .72), rgba(6, 40, 27, .25) 70%, transparent 100%); }
.sh-hero .sh-wrap { position: relative; min-height: 500px; padding-block: 34px 40px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; text-align: center; }
.sh-hero-title { margin: 0; font-family: var(--display); font-size: clamp(64px, 10vw, 112px); line-height: 1.05; font-weight: 700;
	background: linear-gradient(180deg, #f6e3a8 0%, #d9b45c 48%, #a9802f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 3px 10px rgba(0,0,0,.35)); }
.sh-hero-orn { width: 160px; height: 14px; color: #d6b46c; margin: 2px 0 8px; }
.sh-hero-sub { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.sh-hero .sh-lead { margin: 6px 0 22px; font-size: 17px; color: rgba(255,255,255,.88); max-width: 600px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.sh-search { width: min(620px, 100%); display: flex; align-items: center; gap: 6px; background: #fbf8f0; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin: 0; }
.sh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 18px; height: 48px; color: #1c2a23; font: inherit; font-size: 16px; }
.sh-search input::placeholder { color: #8a948e; }
.sh-search button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--hero-from); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sh-search button svg.i { width: 22px; height: 22px; }
.sh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 18px; }
.sh-chips a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 15px; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.sh-chips a:hover { color: #f1d58f; }
.sh-chips svg.i { width: 19px; height: 19px; color: #e8cf8f; }

/* ===== صف الأقسام تحت الواجهة ===== */
.sh-features { background: var(--bg); border-bottom: 1px solid var(--line); }
.sh-features .sh-wrap { display: grid; grid-template-columns: repeat(6, 1fr); padding-block: 26px; }
.sh-features a { display: grid; justify-items: center; gap: 6px; padding: 8px 10px; text-align: center; color: var(--ink); text-decoration: none; }
.sh-features a + a { border-inline-start: 1px solid var(--line); }
.sh-features svg.i { width: 40px; height: 40px; stroke-width: 1.3; color: var(--gold); margin-bottom: 6px; transition: transform .2s; }
.sh-features a:hover svg.i { transform: translateY(-2px); }
.sh-features b { font-size: 17px; font-weight: 700; }
.sh-features small { font-size: 13.5px; color: var(--muted); }

/* ===== Common ===== */
.sh-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
a.sh-card { color: inherit; text-decoration: none; }
a.sh-hotd, a.sh-hotd:hover { color: #fff; }
.sh-sec-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 34px 0 14px; }
.sh-sec-title h2 { margin: 0; font-family: var(--display); font-size: 28px; color: var(--green); }
.sh-sec-title small { color: var(--muted); }

/* حديث اليوم */
.sh-hotd { display: block; position: relative; overflow: hidden; padding: 26px 26px 22px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; border: 0; text-align: center; }
.sh-hotd .tag { font-size: 13px; color: #e8cf8f; }
.sh-hotd q { display: block; font-family: var(--display); font-size: clamp(21px, 2.8vw, 28px); line-height: 1.9; margin: 8px auto 10px; max-width: 900px; quotes: "«" "»"; }
.sh-hotd .src { font-size: 13.5px; color: rgba(255,255,255,.78); }
.sh-hotd .score { color: #e8cf8f; border-bottom: 1px dashed rgba(232,207,143,.5); }

/* المراتب */
.sh-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sh-rank { padding: 16px 14px; text-align: center; }
.sh-rank .v { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--green); font-weight: 700; }
.sh-rank .t { margin-top: 8px; font-weight: 600; }
.sh-rank .d { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.sh-rank .bar { height: 5px; border-radius: 5px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.sh-rank .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: inherit; }

/* الكتب */
.sh-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sh-book { display: flex; align-items: center; gap: 12px; padding: 14px; }
.sh-book:hover { border-color: var(--gold); }
.sh-bnum { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--green);
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23a9853a' stroke-width='1.4'%3E%3Crect x='8' y='8' width='24' height='24' rx='2'/%3E%3Crect x='8' y='8' width='24' height='24' rx='2' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E"); }
.sh-book b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.3; }
.sh-book small { color: var(--muted); font-size: 12.5px; }
.sh-note-line { margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ===== صفحة الحديث ===== */
.sh-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.sh-crumbs a { color: inherit; text-decoration: none; }
.sh-crumbs a:hover { color: var(--green); }
.sh-crumbs span::before { content: "‹"; margin-inline-end: 8px; color: var(--gold); }
.sh-hlayout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }

.sh-banner { position: relative; padding: 22px 20px 18px; text-align: center; background: linear-gradient(var(--surface-2), var(--surface)); border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sh-frame { display: inline-flex; align-items: center; gap: 18px; padding: 6px 28px; border: 1px solid var(--gold); border-radius: 999px; }
.sh-frame::before, .sh-frame::after { content: "۞"; color: var(--gold); font-size: 22px; line-height: 1; }
.sh-banner h1 { margin: 0; font-family: var(--display); font-size: 30px; color: var(--green); font-weight: 700; }
.sh-banner .meta { margin-top: 8px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: center; gap: 4px 14px; flex-wrap: wrap; }
.sh-banner .meta span + span::before { content: "•"; margin-inline-end: 14px; color: var(--gold); }
.sh-banner .grade { margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.sh-mscore { display: none; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.sh-mscore b { color: var(--green); font-size: 16px; }
.sh-banner .gnote { margin: 8px auto 0; max-width: 620px; font-size: 12.5px; color: var(--mid); }

.sh-text { padding: 22px 26px 26px; }
.sh-isnad { font-size: 14.5px; color: var(--muted); line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; column-gap: 2px; }
.sh-isnad .lbl { color: var(--ink-soft); font-weight: 600; margin-inline-end: 4px; }
.sh-rawi { display: inline-flex; align-items: center; padding: 2px 10px; margin: 2px 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); font-size: 13.5px; text-decoration: none; }
a.sh-rawi:hover { border-color: var(--gold); color: var(--green); }
.sh-rawi.sahabi { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.sh-rawi small { margin-inline-start: 6px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.sh-isnad .arr { color: var(--gold); margin-inline: 4px; }
.sh-matn { margin-top: 16px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; position: relative; }
.sh-matn::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 8px; pointer-events: none; }
.sh-matn p { margin: 0; font-family: var(--display); font-size: clamp(21px, 2.4vw, 26px); line-height: 2.1; text-align: justify; position: relative; }
.sh-source { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.sh-source b { color: var(--green); }

.sh-strip { padding: 18px 20px; border-top: 1px solid var(--line); }
.sh-strip h2, .sh-panel h2 { margin: 0 0 12px; font-family: var(--ui); font-size: 15px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.sh-strip h2::before, .sh-panel h2::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; }
.sh-hint { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); }
.sh-bchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.sh-bchip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
a.sh-bchip:hover { border-color: var(--gold); }
.sh-bchip.is-current { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.sh-bchip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--none); }
.sh-bchip.g-ok .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.sh-bchip.g-mid .dot { background: var(--mid); }
.sh-bchip.g-weak .dot { background: var(--weak); }
.sh-bchip.g-bad .dot { background: var(--bad); }
.sh-bchip span { min-width: 0; }
.sh-bchip b { display: block; font-size: 14px; line-height: 1.3; }
.sh-bchip small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-bchip.is-missing { opacity: .55; border-style: dashed; }

/* نطاق الشهادة: ما تشهد له كل رواية مضافة من متن الأصل */
.sh-wscope { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sh-wscope h3 { margin: 0 0 6px; font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.sh-wscope h3 small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sh-wscope ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.sh-wscope li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sh-wscope li:last-child { border-bottom: 0; }
.sh-wscope li b a { color: inherit; text-decoration: none; }
.sh-wscope li b a:hover { color: var(--gold); }
.sh-wscope .tag { font-style: normal; font-size: 11.5px; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.sh-wscope li.full .tag { color: var(--ok); }
.sh-wscope li.partial .tag { color: var(--mid); }
.sh-wscope li span { flex: 1 1 100%; color: var(--ink-soft); line-height: 1.8; }

/* المؤشران */
.sh-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.sh-gauge { text-align: center; padding: 6px 4px 10px; }
.sh-gauge svg { width: 112px; height: 112px; display: block; margin: 0 auto; }
.sh-gauge .track { stroke: var(--surface-2); }
.sh-gauge .val { stroke: var(--green); }
.sh-gauge.mid .val { stroke: var(--mid); }
.sh-gauge.low .val { stroke: var(--weak); }
.sh-gauge.pending .val { stroke: none; }
.sh-gauge text { font-family: var(--ui); fill: var(--ink); }
.sh-gauge .num { font-size: 26px; font-weight: 700; }
.sh-gauge.pending .num { font-size: 22px; fill: var(--muted); }
.sh-gauge .lbl { margin-top: 4px; font-weight: 600; }
.sh-gauge small { display: block; color: var(--muted); font-size: 12px; }
.sh-verdict { margin: 0 16px 16px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); text-align: center; font-weight: 600; }
.sh-verdict small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.sh-panel { padding: 16px 18px; border-top: 1px solid var(--line); }
details.sh-why summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--green); }
details.sh-why summary::-webkit-details-marker { display: none; }
details.sh-why summary::after { content: "+"; font-size: 20px; color: var(--gold); }
details.sh-why[open] summary::after { content: "−"; }
.sh-bd { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13.5px; }
.sh-bd li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sh-bd li b { font-variant-numeric: tabular-nums; color: var(--green); direction: ltr; }
.sh-bd li.base b { color: var(--ink); }
.sh-bd li.penalty b { color: var(--weak); }
.sh-bd li.total { border-bottom: 0; font-weight: 700; }
.sh-bd li.none { color: var(--muted); }
.sh-bd li.none b { color: var(--muted); }
.sh-ladder-h { margin: 16px 0 6px; font-family: var(--ui); font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.sh-ladder { list-style: none; margin: 0; padding: 0; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sh-ladder li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sh-ladder li:last-child { border-bottom: 0; }
.sh-ladder li b { font-variant-numeric: tabular-nums; direction: ltr; font-weight: 500; }
.sh-ladder li.is-current { color: var(--green); background: var(--green-soft); font-weight: 700; }
.sh-ladder li.is-current b { font-weight: 700; }
.sh-ladder li.is-current span::before { content: "◀ "; color: var(--gold); }
.sh-stat-ghar { border-color: var(--gold); color: var(--gold); }
.sh-rebut { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); border-right: 2px solid var(--gold); padding-right: 8px; }
.sh-inline { display: inline; }
.sh-inline select { font-size: 12.5px; max-width: 160px; }
.sh-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.sh-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-stat { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }

/* آفاق التلقي (ياوس) */
.sh-horizons { display: grid; gap: 14px; }
.sh-hz { position: relative; padding-inline-start: 22px; }
.sh-hz::before { content: ""; position: absolute; inset-inline-start: 6px; top: 8px; bottom: -14px; width: 2px; background: var(--line); }
.sh-hz:last-child::before { bottom: 8px; }
.sh-hz::after { content: ""; position: absolute; inset-inline-start: 1px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.sh-hz h3 { margin: 0 0 6px; font-family: var(--ui); font-size: 13px; color: var(--gold); font-weight: 600; }
.sh-rec { padding: 8px 10px; border-radius: 9px; background: var(--surface-2); margin-bottom: 6px; font-size: 13.5px; }
.sh-rec .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sh-rec b { font-weight: 600; }
.sh-rec small { display: block; color: var(--muted); font-size: 12px; }
.sh-rec p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.sh-rec p.sh-quote { color: var(--ink); font-size: 13px; }

/* شارات الأحكام */
.grade-pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.verdict-sahih, .verdict-hasan-sahih { background: var(--green-soft); color: var(--green); }
.verdict-hasan { background: color-mix(in srgb, var(--mid) 16%, transparent); color: var(--mid); }
.verdict-daif, .verdict-shadh { background: color-mix(in srgb, var(--weak) 14%, transparent); color: var(--weak); }
.verdict-mawdu { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.verdict-unknown, .verdict-missing { background: var(--surface-2); color: var(--muted); }

.sh-error { max-width: 560px; margin: 40px auto; padding: 32px; text-align: center; }
.sh-error h1 { color: var(--green); margin-top: 0; }
.sh-error a { color: var(--green); }

/* ===== Footer ===== */
.sh-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: 13.5px; }
.sh-foot b { display: block; font-family: var(--display); color: var(--green); font-size: 23px; margin-bottom: 6px; }
.sh-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 12px; }
.sh-foot nav a { color: inherit; text-decoration: none; }
.sh-foot nav a:hover { color: var(--green); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
	.sh-nav a { padding: 8px 8px; font-size: 14.5px; }
	.sh-brand b { font-size: 30px; }
	.sh-logo { width: 48px; height: 48px; }
}
@media (max-width: 1020px) {
	.sh-hlayout { grid-template-columns: 1fr; }
	.sh-menu-btn { display: grid; }
	.sh-mscore { display: block; }
	.sh-topbar .sh-wrap { height: 72px; }
	.sh-nav { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
	.sh-nav.is-open { display: flex; }
	.sh-nav > a.is-active::after, .sh-dd > a.is-active::after { display: none; }
	.sh-nav > a.is-active, .sh-dd > a.is-active { background: var(--green-soft); }
	.sh-dd-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 14px 4px; min-width: 0; background: transparent; }
	.sh-dd-menu::before { display: none; }
	.sh-dd-toggle svg.i { display: none; }
	.sh-dd-menu a { font-size: 14px; color: var(--muted); padding: 6px 12px; }
	.sh-tools { margin-inline-start: auto; }
	.sh-features .sh-wrap { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
	.sh-features a:nth-child(4) { border-inline-start: 0; }
}
@media (max-width: 600px) {
	.sh-hero .sh-wrap { min-height: 460px; padding-block: 28px 30px; }
	.sh-hero::after { background: linear-gradient(rgba(6,40,27,.38), rgba(6,40,27,.62)); }
	.sh-chips { gap: 8px 16px; }
	.sh-text { padding: 16px; }
	.sh-matn { padding: 16px 14px; }
	.sh-banner h1 { font-size: 24px; }
	.sh-gauge svg { width: 96px; height: 96px; }
	.sh-brand small { display: none; }
	.sh-brand b { font-size: 28px; }
	.sh-features .sh-wrap { grid-template-columns: repeat(2, 1fr); }
	.sh-features a { border-inline-start: 0 !important; }
	.sh-features b { font-size: 15.5px; }
}

/* ===== صفحات النصوص (عن المنهج، التلقي) ===== */
.sh-prose { max-width: 860px; margin: 0 auto; }
.sh-prose .sh-text { font-size: 15.5px; line-height: 1.95; }
.sh-prose h2 { margin: 26px 0 8px; font-family: var(--display); font-size: 25px; color: var(--green); display: flex; align-items: center; gap: 10px; }
.sh-prose h2::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); flex: none; }
.sh-prose .sh-text > h2:first-child { margin-top: 4px; }
.sh-prose p { margin: 0 0 10px; }
.sh-prose ul, .sh-prose ol { margin: 0 0 12px; padding-inline-start: 22px; }
.sh-prose li { margin-bottom: 4px; }
.sh-prose a { color: var(--green); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; }
.sh-callout { padding: 12px 16px; border-radius: 10px; background: var(--gold-soft); border-inline-start: 3px solid var(--gold); }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-prose a.sh-btn, .sh-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--green); color: #fff; text-decoration: none; font-weight: 500; }
:root[data-theme="dark"] .sh-btn { color: #08251b; }
.sh-prose a.sh-btn-outline, .sh-btn-outline { background: transparent; color: var(--green); border: 1px solid var(--green); }

/* ===== النماذج والأزرار المشتركة ===== */
.sh-form { display: grid; gap: 12px; }
.sh-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.sh-form input:not([type=checkbox]), .sh-form select, .sh-form textarea, .sh-admin-search input {
	width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.sh-form textarea { resize: vertical; line-height: 1.8; }
.sh-form input:focus, .sh-form select:focus, .sh-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); border-color: var(--gold); }
.sh-form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sh-form-row > label { flex: 1 1 140px; }
.sh-form-row > label.grow { flex: 3 1 240px; }
.sh-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.sh-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.sh-btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.sh-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.sh-btn-danger { background: color-mix(in srgb, var(--weak) 14%, var(--surface)); color: var(--weak); border: 1px solid color-mix(in srgb, var(--weak) 40%, transparent); }
.sh-flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.sh-flash.err { background: color-mix(in srgb, var(--weak) 14%, var(--surface)); color: var(--weak); }

/* ===== لوحة الإدارة ===== */
.sh-admin-main { padding-block: 22px 60px; }
.sh-admin-h { font-family: var(--display); color: var(--green); font-size: 30px; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-admin-box { padding: 18px 20px; margin-bottom: 16px; }
.sh-admin-box h2 { margin: 0 0 12px; font-size: 19px; color: var(--green); }
.sh-admin-box h3 { margin: 18px 0 10px; font-size: 16px; }
.sh-admin-login { max-width: 420px; margin: 50px auto; padding: 26px; }
.sh-admin-login h1 { font-family: var(--display); color: var(--green); margin: 0 0 16px; font-size: 26px; text-align: center; }
.sh-admin-nav a { font-size: 14.5px; }
.sh-topbar .sh-admin-nav-sm { display: none; }
.sh-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #b3261e; color: #fff; font-size: 12px; margin-inline-start: 4px; }
.sh-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sh-stat { padding: 16px; text-align: center; }
.sh-stat b { display: block; font-family: var(--display); font-size: 32px; color: var(--green); line-height: 1.2; }
.sh-stat span { color: var(--muted); font-size: 13.5px; }
.sh-stat.ok b { color: var(--ok); } .sh-stat.bad b { color: var(--weak); }
.sh-admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sh-table th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sh-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sh-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-table td.bar { width: 40%; vertical-align: middle; }
.sh-table td.bar i { display: block; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--green)); }
.sh-table-rows a { color: var(--green); font-weight: 700; }
.sh-spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-bottom: 12px; padding: 6px; background: var(--surface-2); border-radius: 10px; }
.sh-spark i { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; opacity: .8; }
.sh-msg-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; align-items: baseline; }
.sh-msg-row:hover { background: var(--surface-2); }
.sh-msg-row.is-new b { color: var(--green); }
.sh-msg-row.is-new b::before { content: "● "; color: var(--gold); }
.sh-msg-row span { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-msg-row small { color: var(--muted); white-space: nowrap; }
.sh-msg-body { padding: 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); line-height: 1.9; margin: 10px 0 14px; }
.sh-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sh-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; }
.sh-tabs a.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.sh-row-edit { border-bottom: 1px solid var(--line); padding: 8px 0; }
.sh-row-edit summary { cursor: pointer; padding: 4px 0; }
.sh-row-edit summary b { color: var(--green); }
.sh-row-edit .sh-form { padding: 12px 0 6px; }
.sh-pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 10px; border-radius: 8px; font-size: 12.5px; max-height: 240px; overflow: auto; direction: ltr; text-align: left; }
.sh-admin-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sh-admin-search input { flex: 1 1 260px; }
.sh-narrow { max-width: 520px; }
.sh-rai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (max-width: 1020px) {
	.sh-admin-cols { grid-template-columns: 1fr; }
	.sh-admin .sh-menu-btn { display: none; }
	.sh-topbar .sh-admin-nav-sm { display: flex; height: auto; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
	.sh-admin-nav-sm a { padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: var(--ink-soft); text-decoration: none; }
	.sh-admin-nav-sm a.is-active { background: var(--green-soft); color: var(--green); font-weight: 600; }
	.sh-msg-row { grid-template-columns: 1fr; gap: 2px; }
}
.sh-gauge-text .num { font-size: 15px; font-weight: 700; }
.sh-gauge-text .val { stroke-dasharray: 289; stroke-dashoffset: 0; }

/* الموضوعات */
.sh-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 0 0 18px; }
.sh-topic { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.sh-topic:hover { border-color: var(--gold); transform: translateY(-1px); }
.sh-topic b { display: block; font-weight: 700; margin-bottom: 4px; }
.sh-topic small { color: var(--muted); font-size: 12.5px; }
.sh-tlist { padding-right: 22px; margin: 0; }
.sh-tlist li { margin: 0 0 10px; line-height: 1.7; }
.sh-tlist li a { font-weight: 600; }
.sh-tlist li small { display: block; color: var(--muted); font-size: 12.5px; }
.sh-pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin: 16px 0 0; font-size: 14px; }

.sh-bd li span small { color: var(--muted); font-size: 11.5px; }

/* أحاديث ذات صلة */
.sh-rel-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sh-rel-col h3 { margin: 0 0 8px; font-family: var(--ui); font-size: 14px; color: var(--green); }
.sh-rel-col h3 small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sh-rel-col ul { list-style: none; margin: 0; padding: 0; }
.sh-rel-col li { padding: 6px 0; border-bottom: 1px dashed var(--line); line-height: 1.6; font-size: 14px; }
.sh-rel-col li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sh-rel-col li a:hover { color: var(--green); }
.sh-rel-col li small { display: block; color: var(--muted); font-size: 12px; }
.sh-rel-more { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--gold); text-decoration: none; }

/* نقد الإسناد: صيغ الأداء بين الرواة، ووسوم التدليس والاختلاط */
.sh-isnad .arr { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1; }
.sh-isnad .arr small { font-size: 10.5px; color: var(--muted); font-family: var(--ui); white-space: nowrap; }
.sh-isnad .arr.is-an small { color: var(--gold); font-weight: 600; }
/* وسم الراوي (تدليس/اختلاط) شارة صغيرة منفصلة عن الاسم والدرجة */
.sh-rawi .sh-flag { display: inline-block; margin-inline-start: 7px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 11px; line-height: 1.6; font-weight: 600; font-family: var(--ui); white-space: nowrap; cursor: help;
	color: #a3261c; background: color-mix(in srgb, #b3261e 10%, var(--surface)); border: 1px solid color-mix(in srgb, #b3261e 28%, transparent); }
.sh-rawi .sh-flag.is-mild { color: var(--mid); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 35%, transparent); font-weight: 500; }
:root[data-theme="dark"] .sh-rawi .sh-flag:not(.is-mild) { color: #ff9b8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-rawi .sh-flag:not(.is-mild) { color: #ff9b8f; } }
.sh-rawi { flex-wrap: wrap; row-gap: 2px; }
.sh-crit { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.8; }
.sh-crit li { padding: 5px 0 5px 0; border-bottom: 1px dashed var(--line); padding-inline-start: 18px; position: relative; }
.sh-crit li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sh-crit li.defect { color: #b3261e; }
.sh-crit li.defect::before { background: #b3261e; }
:root[data-theme="dark"] .sh-crit li.defect { color: #ff8a80; }
.sh-crit li.tadlis_ok::before, .sh-crit li.ikhtilat_ok::before, .sh-crit li.strong_in::before { background: var(--green); }
.sh-crit li.hukum { color: var(--ink-soft); }
.sh-crit li.hukum::before { background: var(--gold); }

/* إبلاغ عن خطأ */
.sh-report details > summary { cursor: pointer; font-family: var(--ui); font-weight: 600; color: var(--green); font-size: 14px; }
.sh-report .sh-form { margin-top: 12px; }

/* الأحاديث الواهية، والمعايرة، وحالات الخلاف، والفحص */
.sh-mawdu-list { padding-inline-start: 22px; margin: 0; }
.sh-mawdu-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); line-height: 1.7; }
.sh-mawdu-list li a.t { font-family: var(--serif); font-size: 16px; color: var(--ink); text-decoration: none; font-weight: 700; }
.sh-mawdu-list li a.t:hover { color: var(--green); }
.sh-mawdu-list li small { display: block; color: var(--muted); font-size: 12.5px; }
.sh-mawdu-list li .grade-pill { margin-inline-start: 6px; vertical-align: middle; }
.sh-matn-sm { font-family: var(--serif); font-size: 19px; line-height: 2; }
.sh-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 14px 0; font-family: var(--ui); }
.sh-table-wrap { overflow-x: auto; margin: 10px 0 6px; }
.sh-cal th { text-align: center; }
.sh-cal td.num { text-align: center; }
.sh-cal td small { display: block; color: var(--muted); font-size: 11.5px; }
.sh-cal td.is-agree { background: color-mix(in srgb, var(--green) 12%, transparent); }
.sh-case { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sh-case h3 { margin: 0 0 4px; font-size: 16px; }
.sh-case h3 a { color: var(--ink); text-decoration: none; }
.sh-case h3 a:hover { color: var(--green); }
.sh-case h3 small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-inline-start: 6px; }
.sh-case-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; font-family: var(--ui); font-size: 13.5px; }
.sh-case-why { margin: 0; padding-inline-start: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.sh-badge.is-ok { background: var(--green); }
.sh-audit-sample { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.8; }
.sh-tadhkira .sh-rec { margin-top: 10px; }

/* ===== الشعار الخطي: قناعان (الحروف والتشكيل) يُلوَّنان بمتغيرات تُضبط من «الصفحة الرئيسية» في اللوحة ===== */
:root { --logo-ink-l: #0f4d36; --logo-deco-l: #a9853a; --logo-ink-d: #f3ead2; --logo-deco-d: #d6b46c; }
.sh-wordmark { position: relative; display: block; width: 116px; aspect-ratio: 760 / 382; flex: none; --ink: var(--logo-ink-l); --deco: var(--logo-deco-l); }
.sh-wordmark::before, .sh-wordmark::after { content: ""; position: absolute; inset: 0; background: var(--ink);
	-webkit-mask: url("../icons/logo-mask-ink.webp") center / contain no-repeat; mask: url("../icons/logo-mask-ink.webp") center / contain no-repeat; }
.sh-wordmark::after { background: var(--deco); -webkit-mask-image: url("../icons/logo-mask-deco.webp"); mask-image: url("../icons/logo-mask-deco.webp"); }
/* على الخلفيات الداكنة: الوضع الداكن، والواجهة، والشريط الجانبي للوحة */
:root[data-theme="dark"] .sh-wordmark, .sh-wordmark.on-dark { --ink: var(--logo-ink-d); --deco: var(--logo-deco-d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-wordmark { --ink: var(--logo-ink-d); --deco: var(--logo-deco-d); } }
.sh-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-brand { gap: 14px; }
.sh-brand .sh-brand-sub { margin: 0; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); line-height: 1.6; font-size: 12.5px; color: var(--ink-soft); }
.sh-foot-mark { width: 150px; margin: 0 auto 8px; }
@media (max-width: 900px) { .sh-wordmark { width: 98px; } }
@media (max-width: 560px) { .sh-brand .sh-brand-sub { display: none; } .sh-wordmark { width: 88px; } }

/* ===== مؤشرات الحديث أعلى الصفحة في الجوال (hadith.php: $gaugeBlock) ===== */
.sh-gauges-top { display: none; margin-bottom: 16px; }
.sh-gauges-top .sh-verdict { margin-bottom: 8px; }
.sh-gauges-more { display: block; text-align: center; padding: 0 16px 14px; font-size: 13px; color: var(--green); text-decoration: none; }
@media (max-width: 1020px) {
	.sh-gauges-top { display: block; }
	.sh-gauges-side { display: none; }
	.sh-gauges-top .sh-gauges { max-width: 420px; margin-inline: auto; padding: 12px 12px 6px; }
	.sh-gauges-top .sh-gauge svg { width: 92px; height: 92px; }
	#hadith-scores { scroll-margin-top: 84px; }
}

/* ===== الشعار الخطي في واجهة الرئيسية مكان العنوان الكبير ===== */
.sh-hero-logo { background: none; color: inherit; line-height: 0; font-size: 0; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }
.sh-hero-logo .sh-wordmark { width: clamp(230px, 30vw, 380px); }

/* ===== تحقق Cloudflare في النماذج ===== */
.sh-turnstile { margin: 4px 0 12px; min-height: 65px; }

/* ===== أحاديث مختارة حسب الموضوع (الرئيسية) ===== */
.sh-daily { margin-top: 8px; }
.sh-daily-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 18px; }
.sh-daily-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.sh-daily-nav a:hover, .sh-daily-nav a:focus-visible { border-color: var(--gold); color: var(--green); background: var(--gold-soft); }
.sh-daily-grid { column-count: 3; column-gap: 18px; }
.sh-daily-card { break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; margin: 0 0 18px; padding: 0; overflow: hidden; scroll-margin-top: 100px; position: relative; }
.sh-daily-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--green)); opacity: .8; }
.sh-daily-card:target { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.sh-daily-card header { padding: 16px 20px 0; }
.sh-daily-topic { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--green); text-decoration: none; }
.sh-daily-topic svg.i { width: 18px; height: 18px; color: var(--gold); }
.sh-daily-topic:hover { color: var(--gold); }
.sh-daily-isnad { margin: 10px 20px 0; font-family: var(--display); font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.sh-daily-matn { margin: 6px 20px 0; font-family: var(--display); font-size: 21px; line-height: 2.05; color: var(--ink); }
.sh-daily-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 11px 20px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.sh-daily-src { color: var(--muted); }
.sh-daily-src b { color: var(--green); font-weight: 600; }
.sh-daily-more { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 700; text-decoration: none; }
.sh-daily-more svg.i { width: 15px; height: 15px; transform: rotate(90deg); }
.sh-daily-more:hover { color: var(--gold); }
@media (max-width: 1100px) { .sh-daily-grid { column-count: 2; } }
@media (max-width: 700px) {
	/* الجوال: الأبواب شريط يُسحب، والبطاقات تتتابع بالسحب أفقيًا */
	.sh-daily-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.sh-daily-nav::-webkit-scrollbar { display: none; }
	.sh-daily-nav a { flex: none; }
	.sh-daily-grid { column-count: initial; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: thin; }
	.sh-daily-card { flex: 0 0 88%; margin: 0; scroll-snap-align: center; display: block; }
	.sh-daily-matn { font-size: 20px; }
}

/* الراوي المبهم في السلسلة: لفظ النص بلا رابط */
.sh-rawi.mubham { border-style: dashed; background: transparent; cursor: help; font-style: normal; }

/* ===== تعتيم صورة الواجهة: --hero-dim من «الصفحة الرئيسية» في اللوحة (1 = الافتراضي) ===== */
.sh-hero::after { background: radial-gradient(ellipse 42% 75% at 50% 52%, rgba(6, 40, 27, calc(.72 * var(--hero-dim, 1))), rgba(6, 40, 27, calc(.25 * var(--hero-dim, 1))) 70%, transparent 100%); }
@media (max-width: 600px) {
	.sh-hero::after { background: linear-gradient(rgba(6, 40, 27, calc(.38 * var(--hero-dim, 1))), rgba(6, 40, 27, calc(.62 * var(--hero-dim, 1)))); }
}
/* ===== أقسام مخصّصة في الرئيسية ===== */
.sh-home-custom-body { padding: 20px 24px; font-size: 16.5px; line-height: 2; }
.sh-home-custom-body p { margin: 0 0 10px; }
.sh-home-custom-body p:last-child { margin-bottom: 0; }
.sh-home-custom-body h3 { font-family: var(--display); color: var(--green); margin: 14px 0 6px; }
.sh-home-custom-body blockquote { margin: 10px 0; padding: 8px 16px; border-inline-start: 3px solid var(--gold); background: var(--paper); font-family: var(--display); font-size: 19px; }
.sh-home-custom-cta { margin-top: 14px !important; }

/* ===== شريط الإعلان المؤقت (من «الصفحة الرئيسية» في اللوحة) ===== */
.sh-announce { position: relative; z-index: 101; color: #fff; font-size: 15px; line-height: 1.7; }
.sh-announce .sh-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 9px; }
.sh-announce p { margin: 0; text-align: center; flex: 1; }
.sh-announce a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sh-announce.tone-green { background: linear-gradient(90deg, #0b3a29, #145c41); }
.sh-announce.tone-green a { color: #e8cf8f; }
.sh-announce.tone-gold { background: linear-gradient(90deg, #8f6d27, #b8923f); }
.sh-announce.tone-red { background: linear-gradient(90deg, #7d2318, #a83a2a); }
.sh-announce-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.sh-announce-x:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 600px) { .sh-announce { font-size: 14px; } }

/* ===== أقوال الجرح والتدليس في صفحة الراوي: بالأحمر (narrator_qawl_kind) ===== */
.rawi-aqwal li.is-jarh .qawl { color: #b3261e; font-weight: 600; }
.sh-qawl-tag { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.7; vertical-align: 1px;
	color: #a3261c; background: color-mix(in srgb, #b3261e 10%, var(--surface)); border: 1px solid color-mix(in srgb, #b3261e 28%, transparent); }
:root[data-theme="dark"] .rawi-aqwal li.is-jarh .qawl, :root[data-theme="dark"] .sh-qawl-tag { color: #ff9b8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rawi-aqwal li.is-jarh .qawl, :root:not([data-theme="light"]) .sh-qawl-tag { color: #ff9b8f; } }
/* معايرة: مقاييس التصنيف وجدول العتبات (28 أكتوبر 2026) */
.sh-cal-metrics th { font-size: 12.5px; font-weight: 600; line-height: 1.5; vertical-align: bottom; }
.sh-cal td.is-weak { background: color-mix(in srgb, var(--gold) 18%, transparent); }
details.sh-details { margin: 8px 0 14px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; }
details.sh-details summary { cursor: pointer; font-family: var(--ui); font-weight: 600; color: var(--green); }
