/* ————————————————————————————————————————————
   نتيجة٢٤ — Design system
   Ink navy × warm paper × brass gold
   ———————————————————————————————————————————— */

:root {
  --paper: #FAF7EF;
  --paper-2: #F2EDDF;
  --card: #FFFDF8;
  --ink: #1C2534;
  --muted: #6E6957;
  --navy: #0F2340;
  --royal: #1D3E6E;
  --navy-deep: #0A1830;
  --gold: #A98634;
  --gold-soft: #C9AC63;
  --sand: #E6DAC0;
  --line: #DFD6C0;
  --line-gold: #D8C79E;
  --green: #1D5B3C;
  --green-tint: #E7F0E9;
  --on-navy: #EFE9DA;
  --on-navy-muted: #A8B4C8;
  --shadow: 0 1px 2px rgba(15, 35, 64, .05), 0 12px 32px -16px rgba(15, 35, 64, .22);
  --shadow-lift: 0 2px 4px rgba(15, 35, 64, .06), 0 24px 48px -20px rgba(15, 35, 64, .3);
  --r: 12px;
  --star-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23A98634' stroke-opacity='.16'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  --mashrabiya-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23C9AC63' stroke-opacity='.5'%3E%3Cpath d='M18 1 L35 18 L18 35 L1 18 Z'/%3E%3Ccircle cx='18' cy='18' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1524;
    --paper-2: #0A1220;
    --card: #131F35;
    --ink: #EAE4D4;
    --muted: #9CA4B4;
    --navy: #0A1626;
    --royal: #24487E;
    --navy-deep: #070F1C;
    --gold: #C9A85C;
    --gold-soft: #A98634;
    --sand: #2A3A57;
    --line: #26334C;
    --line-gold: #3D4A66;
    --green: #4CA576;
    --green-tint: #14301F;
    --on-navy: #EFE9DA;
    --on-navy-muted: #93A0B5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --paper: #0C1524;
  --paper-2: #0A1220;
  --card: #131F35;
  --ink: #EAE4D4;
  --muted: #9CA4B4;
  --navy: #0A1626;
  --royal: #24487E;
  --navy-deep: #070F1C;
  --gold: #C9A85C;
  --gold-soft: #A98634;
  --sand: #2A3A57;
  --line: #26334C;
  --line-gold: #3D4A66;
  --green: #4CA576;
  --green-tint: #14301F;
  --on-navy: #EFE9DA;
  --on-navy-muted: #93A0B5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
}

/* ————— أساسيات ————— */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grain);
  pointer-events: none;
  z-index: 999;
  opacity: .5;
}

h1, h2, h3 { text-wrap: balance; }

a { color: inherit; }

img, svg { max-width: 100%; }

.container { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute;
  top: -48px;
  inset-inline-start: 16px;
  background: var(--navy);
  color: var(--on-navy);
  padding: 10px 20px;
  border-radius: 0 0 var(--r) var(--r);
  text-decoration: none;
  z-index: 100;
  transition: top .2s;
}
.skip:focus { top: 0; }

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

::selection { background: var(--sand); }

/* ————— الشريط الرسمي ————— */
.gov-strip {
  background: var(--navy);
  color: var(--on-navy-muted);
  font-size: .78rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
.gov-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}
.gov-strip-sep { color: var(--gold); font-size: .6rem; }
.gov-strip-date { margin-inline-start: auto; color: var(--on-navy-muted); }

/* ————— الترويسة ————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
:root[data-theme="dark"] .brand { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: var(--ink); } }
.brand-seal { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand-word {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}
.brand-word b { color: var(--gold); font-weight: 700; }

.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }

.header-cta {
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: var(--r);
  transition: background-color .2s, color .2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
:root[data-theme="dark"] .header-cta { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header-cta { color: var(--ink); } }

/* ————— الواجهة ————— */
.hero {
  position: relative;
  padding-block: 72px 56px;
  background:
    var(--star-tile),
    linear-gradient(var(--paper-2), var(--paper) 55%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner { text-align: center; position: relative; }

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.eyebrow span { font-size: .6rem; }

.hero-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.45;
  color: var(--navy);
  margin-top: 8px;
}
:root[data-theme="dark"] .hero-title { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-title { color: var(--ink); } }

.ink { position: relative; display: inline-block; }
.ink-stroke {
  position: absolute;
  inset-inline: -2%;
  bottom: -.08em;
  width: 104%;
  height: .28em;
  overflow: visible;
}
.ink-stroke path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ink-draw 1.1s cubic-bezier(.4, 0, .2, 1) .5s forwards;
}
@keyframes ink-draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* منصة البحث + الختم */
.search-stage { position: relative; margin-top: 44px; }
.hero-seal {
  position: absolute;
  top: -60px;
  left: 50%;
  translate: -50% 0;
  width: 460px;
  height: 460px;
  color: var(--gold);
  opacity: .13;
  pointer-events: none;
}
.seal-outer { animation: seal-spin 110s linear infinite; transform-origin: 200px 200px; }
.seal-inner { animation: seal-spin 70s linear infinite reverse; transform-origin: 200px 200px; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* بطاقة على هيئة شهادة */
.certificate {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.certificate::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: calc(var(--r) - 5px);
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold);
  rotate: 45deg;
  opacity: .85;
  pointer-events: none;
}
.c-tl { top: 5px; inset-inline-start: 5px; }
.c-tr { top: 5px; inset-inline-end: 5px; }
.c-bl { bottom: 5px; inset-inline-start: 5px; }
.c-br { bottom: 5px; inset-inline-end: 5px; }

.search-card {
  max-width: 700px;
  margin-inline: auto;
  padding: 40px 44px 32px;
  text-align: center;
}
.search-title {
  font-family: 'Amiri', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
:root[data-theme="dark"] .search-title { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .search-title { color: var(--ink); } }
.search-hint { color: var(--muted); font-size: .92rem; margin-top: 2px; }

.tabs {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px;
  margin-top: 20px;
  gap: 4px;
}
.tab {
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--r) - 4px);
  padding: 7px 26px;
  cursor: pointer;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.tab.is-active {
  background: var(--card);
  color: var(--navy);
  border-color: var(--line-gold);
  box-shadow: 0 1px 3px rgba(15, 35, 64, .1);
}
:root[data-theme="dark"] .tab.is-active { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab.is-active { color: var(--ink); } }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  text-align: start;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.field select,
.field input {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 16px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
.field input::placeholder { color: var(--muted); opacity: .65; font-weight: 400; }
.field.field-error input { border-color: #A3402E; box-shadow: 0 0 0 3px rgba(163, 64, 46, .12); }

.btn-primary {
  font: inherit;
  font-weight: 700;
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 24px;
  color: var(--on-navy);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover { background: var(--royal); border-color: var(--royal); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }

.search-note {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  transition: color .3s;
}
.search-note.is-error { color: #A3402E; font-weight: 600; }
.search-note.is-info { color: var(--green); font-weight: 600; }

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 36px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 19px; height: 19px; color: var(--gold); flex: none; }

/* ————— الأقسام ————— */
.section { padding-block: 84px; }
.section-tinted { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow { justify-content: center; }
.section-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--navy);
  line-height: 1.4;
  margin-top: 4px;
}
:root[data-theme="dark"] .section-title { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section-title { color: var(--ink); } }

.ornament-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  margin: 14px auto 0;
  color: var(--gold);
}
.ornament-rule::before,
.ornament-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--rule-dir, left), var(--line-gold), transparent);
}
.ornament-rule::before { --rule-dir: right; }
.ornament-rule span { font-size: .7rem; }

/* ————— بطاقات المراحل ————— */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.stage-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  border-top: 2px solid var(--line-gold);
  padding: 30px 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.3, .7, .4, 1), box-shadow .3s, border-color .3s;
  margin-top: 12px;
}
/* لسان الحافظة */
.stage-card::before {
  content: '';
  position: absolute;
  top: -13px;
  inset-inline-start: 22px;
  width: 92px;
  height: 12px;
  background: var(--sand);
  border: 1px solid var(--line-gold);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: background-color .3s;
}
.stage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-gold);
}
.stage-card:hover::before { background: var(--gold-soft); }

.stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold);
  background: var(--paper);
  transition: background-color .3s, color .3s;
}
.stage-icon svg { width: 26px; height: 26px; }
.stage-card:hover .stage-icon { background: var(--navy); color: var(--gold-soft); }

.stage-card h3 {
  font-family: 'Amiri', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 14px;
  line-height: 1.4;
}
:root[data-theme="dark"] .stage-card h3 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-card h3 { color: var(--ink); } }
.stage-card p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--gold);
}
.stage-link b { font-weight: 400; transition: transform .25s; display: inline-block; }
.stage-card:hover .stage-link b { transform: translateX(-4px); }

.stage-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stage-card-wide-text { flex: 1; min-width: 260px; }
.stage-card-wide h3 { margin-top: 0; }
.stage-card-wide .stage-link { margin-top: 0; }

/* ————— صفحات المحتوى (خصوصية / شروط / عن / اتصل) ————— */
.legal-main { padding-block: 56px 84px; }
.prose {
  max-width: 760px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}
.prose .updated {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  display: inline-block;
  margin-bottom: 26px;
}
.prose h2 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.5;
  margin-top: 34px;
  padding-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
:root[data-theme="dark"] .prose h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose h2 { color: var(--ink); } }
.prose h2 .num {
  font-size: .95rem;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: 'Cairo', sans-serif;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink); line-height: 2; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li { position: relative; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--navy); font-weight: 700; }
:root[data-theme="dark"] .prose strong { color: var(--gold-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose strong { color: var(--gold-soft); } }
.prose a { color: var(--royal); font-weight: 600; }
.prose .callout {
  background: color-mix(in srgb, var(--gold) 8%, var(--card));
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-top: 22px;
  font-size: .95rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  background: var(--paper);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-card svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.contact-card b { display: block; font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--navy); }
:root[data-theme="dark"] .contact-card b { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-card b { color: var(--ink); } }
.contact-card span { font-size: .9rem; color: var(--muted); }

/* ————— روابط الكلمات المفتاحية (تشبيك داخلي) ————— */
.keyword-links {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.keyword-links .kw-head {
  font-family: 'Amiri', serif; font-weight: 700; font-size: 1.35rem;
  color: var(--navy); margin-bottom: 4px;
}
:root[data-theme="dark"] .keyword-links .kw-head { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .keyword-links .kw-head { color: var(--ink); } }
.keyword-links .kw-sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.kw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  color: var(--navy); background: var(--card);
  border: 1px solid var(--line-gold); border-radius: 999px;
  padding: 8px 16px; transition: background-color .2s, color .2s, transform .2s;
}
:root[data-theme="dark"] .kw-chip { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kw-chip { color: var(--ink); } }
.kw-chip::before { content: '✦'; color: var(--gold); font-size: .6rem; }
.kw-chip:hover { background: var(--navy); color: var(--on-navy); transform: translateY(-2px); }

/* ————— قائمة الأخبار والمقالات ————— */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-gold);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.3,.7,.4,1), box-shadow .3s, border-color .3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-gold); }
.article-card .kicker { color: var(--gold); font-weight: 700; font-size: .78rem; }
.article-card h2 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--navy);
  margin-top: 6px;
}
:root[data-theme="dark"] .article-card h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .article-card h2 { color: var(--ink); } }
.article-card p { color: var(--muted); font-size: .93rem; margin-top: 8px; flex: 1; }
.article-card .article-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .82rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.article-card .article-meta .read { margin-inline-start: auto; color: var(--gold); }
.article-card .article-meta span[aria-hidden] { color: var(--gold); font-size: .55rem; }

/* رأس بيانات المقال داخل .prose */
.prose .article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .84rem; font-weight: 700; color: var(--muted);
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.prose .article-meta .cat { color: var(--gold); }
.prose .article-meta time { color: var(--muted); }
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 30px; font-weight: 700; color: var(--royal); text-decoration: none;
}
.article-back:hover { text-decoration: underline; }

/* ————— خريطة الموقع ————— */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.sitemap-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-gold);
  border-radius: var(--r);
  padding: 26px 28px 22px;
  box-shadow: var(--shadow);
}
.sitemap-col > h2 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .sitemap-col > h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sitemap-col > h2 { color: var(--ink); } }
.sitemap-col > h2 svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.sitemap-link {
  display: block;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  transition: padding .2s;
}
.sitemap-link:last-child { border-bottom: none; }
.sitemap-link:hover { padding-inline-start: 8px; }
.sitemap-link b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
:root[data-theme="dark"] .sitemap-link b { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sitemap-link b { color: var(--ink); } }
.sitemap-link b::after {
  content: '←';
  color: var(--gold);
  font-weight: 400;
  margin-inline-start: auto;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
.sitemap-link:hover b::after { opacity: 1; transform: none; }
.sitemap-link span { display: block; font-size: .86rem; color: var(--muted); margin-top: 2px; }

.section-cta { text-align: center; margin-top: 34px; }
.section-cta .header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; font-size: .95rem; }
.section-cta b { font-weight: 400; }

/* ————— شريط المشربية ————— */
.mashrabiya {
  height: 52px;
  background: var(--navy);
  background-image: var(--mashrabiya-tile);
  border-block: 1px solid var(--gold);
  box-shadow: inset 0 6px 12px -8px rgba(0, 0, 0, .5), inset 0 -6px 12px -8px rgba(0, 0, 0, .5);
}

/* ————— المحافظات ————— */
.gov-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}
.map-panel { padding: 28px 28px 20px; margin: 0; }
.map-panel figcaption {
  text-align: center;
  font-size: .84rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 10px;
}
#egypt-map { display: block; width: 100%; height: auto; }
.map-outline {
  fill: color-mix(in srgb, var(--sand) 45%, transparent);
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.map-nile { fill: none; stroke: var(--royal); stroke-width: 2; stroke-linecap: round; opacity: .65; }
.map-dot { fill: var(--gold); stroke: var(--card); stroke-width: 1.5; cursor: pointer; transition: r .2s; }
.map-dot.is-active { fill: var(--green); }
.map-halo {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
}
.map-halo.is-active { opacity: .8; animation: halo 1.6s ease-out infinite; }
@keyframes halo {
  0% { r: 7; opacity: .8; }
  100% { r: 20; opacity: 0; }
}
.map-label {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: var(--navy);
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
:root[data-theme="dark"] .map-label { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-label { fill: var(--ink); } }
.map-label.is-visible { opacity: 1; }

.gov-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  align-content: start;
}
.gov-chip {
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background-color .2s, transform .2s, color .2s;
}
.gov-chip:hover,
.gov-chip.is-active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--sand) 45%, var(--card));
  transform: translateY(-2px);
  color: var(--navy);
}
:root[data-theme="dark"] .gov-chip:hover,
:root[data-theme="dark"] .gov-chip.is-active { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gov-chip:hover,
  :root:not([data-theme="light"]) .gov-chip.is-active { color: var(--ink); }
}

/* ————— الخط الزمني ————— */
.timeline {
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  padding-inline-start: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 8px;
  width: 1px;
  background: linear-gradient(var(--line-gold), var(--line-gold) 85%, transparent);
}
.timeline-item { position: relative; padding-block-end: 22px; }
.timeline-item:last-child { padding-block-end: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 26px;
  inset-inline-start: -33px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  rotate: 45deg;
  outline: 4px solid var(--paper-2);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-gold); }
.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-meta time { font-size: .85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-meta small { font-weight: 400; }
.timeline-card h3 {
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-top: 6px;
}
:root[data-theme="dark"] .timeline-card h3 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .timeline-card h3 { color: var(--ink); } }
.timeline-card p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

.badge {
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.badge-ok { color: var(--green); background: var(--green-tint); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.badge-wait { color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.badge-soon { color: var(--muted); background: var(--paper-2); border-color: var(--line); }

/* ————— شريط الأرقام ————— */
.stats-band {
  background: var(--navy-deep);
  background-image: var(--star-tile);
  color: var(--on-navy);
  border-block: 1px solid var(--gold);
  padding-block: 64px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-inline-start: 1px solid rgba(201, 172, 99, .25); }
.stat-num {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.3;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .stat-num { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-num { color: var(--gold); } }
.stat-label { color: var(--on-navy-muted); font-weight: 600; font-size: .95rem; }

/* ————— الأخبار ————— */
#news .container { border-top: 4px double var(--line-gold); padding-top: 40px; }
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
}
.news-featured { padding-inline-end: 40px; }
.kicker { color: var(--gold); font-weight: 700; font-size: .8rem; }
.news-featured h3 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.55;
  color: var(--navy);
  margin-top: 6px;
}
:root[data-theme="dark"] .news-featured h3 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .news-featured h3 { color: var(--ink); } }
.news-featured h3 a,
.news-item h4 a {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 0 2px;
  transition: background-size .35s;
}
.news-featured h3 a:hover,
.news-item h4 a:hover { background-size: 100% 2px; }
.standfirst { color: var(--muted); margin-top: 12px; max-width: 56ch; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-meta span[aria-hidden] { color: var(--gold); font-size: .55rem; }

.news-side {
  border-inline-start: 1px solid var(--line-gold);
  padding-inline-start: 40px;
  display: flex;
  flex-direction: column;
}
.news-item { padding-block: 18px; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item h4 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--navy);
  margin-top: 4px;
}
:root[data-theme="dark"] .news-item h4 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .news-item h4 { color: var(--ink); } }
.news-item time { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ————— التذييل ————— */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  border-top: 3px double var(--gold);
  padding-block: 64px 32px;
  font-size: .92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
}
.footer-brand .brand-seal { width: 46px; height: 46px; color: var(--gold-soft); }
.footer-brand .brand-word { color: var(--on-navy); font-size: 1.9rem; margin-top: 10px; }
.footer-mission { max-width: 40ch; margin-top: 10px; line-height: 1.9; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  color: var(--gold-soft);
  font-size: .85rem;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(201, 172, 99, .25);
}
.footer-cols a {
  display: block;
  color: var(--on-navy-muted);
  text-decoration: none;
  padding-block: 4px;
  transition: color .2s, padding .2s;
}
.footer-cols a:hover { color: var(--on-navy); padding-inline-start: 4px; }

.footer-rule {
  text-align: center;
  color: var(--gold);
  font-size: .6rem;
  letter-spacing: .5em;
  margin-block: 44px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-rule::before,
.footer-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 172, 99, .3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--on-navy-muted); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--on-navy); }

/* ————— حركة الظهور ————— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.25, .6, .3, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ————— استجابة ————— */
@media (max-width: 900px) {
  .gov-layout, .footer-top { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-featured { padding-inline-end: 0; padding-bottom: 32px; }
  .news-side { border-inline-start: none; padding-inline-start: 0; border-top: 1px solid var(--line-gold); padding-top: 24px; }
  .site-nav { display: none; }
  .stat + .stat { border-inline-start: none; }
}
@media (max-width: 640px) {
  .section { padding-block: 60px; }
  .fields { grid-template-columns: 1fr; }
  .search-card { padding: 32px 22px 26px; }
  .hero { padding-block: 48px 40px; }
  .hero-seal { width: 340px; height: 340px; top: -30px; }
  .gov-strip-date { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .timeline { padding-inline-start: 28px; }
  .timeline-item::before { inset-inline-start: -25px; }
}

/* ————— تقليل الحركة ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-outer, .seal-inner { animation: none; }
  .ink-stroke path { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map-halo.is-active { animation: none; opacity: .6; }
  *, *::before, *::after { transition-duration: .01s !important; }
}
