/* ══════════════════════════════════════════════════════════════════
   أنماط موقع مجموعة الحافظ — مشتركة بين كل الصفحات.

   ★ ملفٌّ واحد لا نسخةٌ في كل صفحة: تغيير لونٍ في الهوية يجب أن
     يسري على الأربع معاً، وإلا انحرفت واحدةٌ عن الباقي بصمت.
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
  --ink: #181818;
  --red: #DB080B;
  --muted: #6b6b68;
  --line: #e6e4e0;
  --bg: #fafaf9;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 90px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  line-height: 1.9;
}

main { max-width: 780px; margin: 0 auto; }

/* ── الترويسة ── */
.site-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 0 22px;
  max-width: 780px;
  margin: 0 auto;
}
.site-head img { width: 46px; height: 46px; object-fit: contain; }
.site-head .name { font-weight: 900; font-size: 1.12rem; line-height: 1.3; }
.site-head .tag { color: var(--muted); font-size: .84rem; line-height: 1.3; }
.site-head nav { margin-inline-start: auto; display: flex; gap: 18px; }
.site-head nav a {
  color: var(--muted); text-decoration: none;
  font-size: .92rem; font-weight: 600; white-space: nowrap;
}
.site-head nav a:hover { color: var(--red); }

h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 900; line-height: 1.3; }
h2 {
  margin: 42px 0 12px;
  font-size: 1.22rem;
  font-weight: 700;
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--red);
}
.sub { color: var(--muted); margin: 0; }

.page-head {
  padding: 26px 0 26px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 34px;
}

/* ── عناصر ── */
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--red);
  padding: 17px 19px;
  border-radius: 11px;
  margin: 22px 0;
}

table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td {
  text-align: right; padding: 10px 12px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
th { background: #f0efec; font-weight: 700; }

code {
  background: #f0efec; padding: 1px 6px;
  border-radius: 4px; font-size: .9em;
}

a { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 26px; border-radius: 11px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(219,8,11,.26); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { box-shadow: 0 8px 20px rgba(0,0,0,.07); }

footer {
  margin: 60px auto 0; max-width: 780px;
  padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .88rem;
}
footer a { color: var(--muted); }

/* ── الهاتف ── */
@media (max-width: 620px) {
  h1 { font-size: 1.6rem; }
  .site-head nav { gap: 12px; }
  .site-head nav a { font-size: .84rem; }
}
