/* ==========================================================
   رحلة التحسين — التصميم «التحريري» (نسخة 2 للمعاينة)
   مظهر فقط: نفس المحتوى بالكامل. يُحمَّل بعد كل ملفات CSS؛ إزالته (مع سطر الخطوط) تعيد التصميم السابق.
   ورق رملي دافئ، حبر تركوازي عميق، أرقام ذهبية، خطوط فاصلة رفيعة بدل الظلال،
   قائمة جانبية فاتحة على الشاشات الواسعة يجلس فيها الشعار مباشرة على الخلفية.
   الخطوط: Noto Kufi Arabic للعناوين، وIBM Plex Sans Arabic للنصوص.
   ========================================================== */

:root {
  --paper: #f5f0e6;
  --paper-2: #ede5d6;
  --paper-3: #e4d9c5;
  --side: #faf6ef;
  --forest: #0f2e2a;
  --forest-2: #163a35;
  --sand: #f1e8d6;
  --gold: #8f6b1c;
  --gold-2: #c4a04a;
  --gold-soft: #efe2bd;

  /* هوية تركوازية أعمق وأهدأ */
  --brand-900: #082f2b;
  --brand-800: #0b403a;
  --brand-700: #0d5149;
  --brand-600: #0f6359;
  --brand-500: #2a7d72;
  --brand-400: #5d9f94;
  --brand-300: #9cc4bc;
  --brand-200: #cfe0db;
  --brand-100: #e5ede8;
  --brand-50: #f0f3ee;

  --ink: #14201e;
  --ink-2: #3c4643;
  --ink-3: #646a65;
  --ink-4: #95978e;

  --bg: var(--paper);
  --surface: #fffcf6;
  --surface-2: #f8f3ea;
  --surface-3: #efe7da;
  --line: #e1d6c3;
  --line-2: #cbbca3;
  --muted-bg: #efe8dc;
  --neutral-bg: #efe8dc;

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(20, 32, 30, .05);
  --shadow-lg: 0 26px 60px -30px rgba(20, 32, 30, .4);
  --ring: 0 0 0 3px rgba(196, 160, 74, .45);

  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
  --font-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --side-w: 280px;
  /* حجم رقم التبويب الزخرفي في ترويسة الصفحة */
  --num-size: clamp(3.6rem, 2.2rem + 4.6vw, 7rem);
}

/* ---------- أساسيات ---------- */
body { background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.85; }
::selection { background: var(--gold-soft); color: var(--ink); }
h1, h2, .page-title, .section-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
h3, h4 { font-family: var(--font); font-weight: 700; }
a { color: var(--brand-700); }
a:hover { color: var(--gold); }
.page { padding-block: 32px 80px; }
@media (min-width: 768px) { .page { padding-block: 44px 100px; } }
.hm-stat-value, .ac-stat-value, .rv-value, .pl-room-n, .ic-metric-value, .pl-tile-no, .pl-an-no { font-family: var(--font-display); }

/* ==========================================================
   الهيكل: قائمة جانبية فاتحة على الشاشات الواسعة
   ========================================================== */
.side-meta { display: none; }

@media (min-width: 1100px) {
  html { scroll-padding-top: 28px; }
  #app:has(> .site-header) { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; }
  #app > .site-header { grid-column: 1; grid-row: 1 / -1; }
  #app > .net-banner { grid-column: 2; grid-row: 1; }
  #app > .main { grid-column: 2; grid-row: 2; min-width: 0; }
  #app > .site-footer { grid-column: 2; grid-row: 3; }

  .site-header {
    position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    display: flex; flex-direction: column; background: var(--side); color: var(--ink);
    border: 0; border-inline-end: 1px solid var(--line-2);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  /* لا ينكمش أي جزء من القائمة: إن قصر ارتفاع الشاشة تُمرَّر القائمة بدل أن تتداخل عناصرها */
  .site-header > * { flex: none; }
  .site-header .container { padding-inline: 0; max-width: none; }
  .site-header .header-row { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px 20px 0; min-height: 0; }
  .brand { flex-direction: column; align-items: flex-start; gap: 12px; flex: none; color: var(--ink); }
  .brand:hover { color: var(--ink); }
  .brand-logo { width: 140px; height: auto; }
  .brand-sep { display: none; }
  .brand-text { gap: 2px; }
  .brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--forest); line-height: 1.4; }
  .brand-sub { white-space: normal; color: var(--ink-3); font-size: .8rem; line-height: 1.6; }

  .header-tools { width: 100%; }
  .header-tools .icon-btn {
    width: 100%; height: 40px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-inline: 12px;
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink-3); background: var(--surface);
  }
  .header-tools .icon-btn::after { content: attr(aria-label); font-size: .88rem; }
  .header-tools .icon-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }

  .site-nav { border: 0; padding: 14px 12px 14px; }
  .nav-list { flex-direction: column; gap: 2px; overflow: visible; padding: 0; counter-reset: nav; }
  .nav-list li { counter-increment: nav; }
  .nav-link {
    display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); white-space: normal;
    color: var(--ink-2); font-size: .95rem; font-weight: 500; line-height: 1.5; box-shadow: none;
  }
  .nav-link::before { content: counter(nav, decimal-leading-zero); flex: none; min-width: 22px; font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--gold-2); }
  .nav-link .i { display: none; }
  .nav-link:hover { background: var(--paper-2); color: var(--ink); }
  .nav-link.active { background: var(--forest); color: #fff; font-weight: 600; box-shadow: none; }
  .nav-link.active::before { color: var(--gold-2); }

  .pl-nav { top: 16px; }
}
/* معلومات المدرسة أسفل القائمة: فقط حين يتسع ارتفاع الشاشة */
@media (min-width: 1100px) and (min-height: 780px) {
  .side-meta { display: block; margin-top: auto; padding: 16px 20px 22px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.7; color: var(--ink-3); }
  .side-meta strong { display: block; color: var(--ink); font-weight: 700; font-size: .88rem; }
}
/* شاشات الحواسيب المحمولة القصيرة: قائمة أكثر إحكامًا */
@media (min-width: 1100px) and (max-height: 640px) {
  .site-header .header-row { padding-top: 16px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-logo { width: 124px; }
  .brand-name { font-size: 1.18rem; }
  .site-nav { padding-block: 10px; }
  .nav-link { padding-block: 6px; }
}

/* ---------- الشاشات الأصغر: شريط علوي فاتح وتبويبات أفقية مرقّمة على خلفية داكنة ---------- */
@media (max-width: 1099px) {
  .site-header { background: var(--side); border: 0; border-bottom: 1px solid var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand, .brand:hover { color: var(--ink); }
  .brand-logo { height: 38px; width: auto; }
  .brand-sep { background: var(--line-2); }
  .brand-name { color: var(--forest); font-family: var(--font-display); font-weight: 700; }
  .brand-sub { color: var(--ink-3); }
  .header-tools .icon-btn { color: var(--ink-2); }
  .header-tools .icon-btn:hover { background: var(--paper-2); color: var(--ink); }
  .site-nav { border-top: 0; background: var(--forest); }
  .nav-list { counter-reset: nav; padding-block: 0; gap: 0; }
  .nav-list li { counter-increment: nav; }
  .nav-link { border-radius: 0; padding: 12px 12px 10px; color: rgba(241, 232, 214, .8); border-bottom: 3px solid transparent; box-shadow: none; }
  .nav-link::before { content: counter(nav, decimal-leading-zero); font-family: var(--font-display); font-size: .72rem; font-weight: 600; color: var(--gold-2); }
  .nav-link .i { display: none; }
  .nav-link:hover { background: transparent; color: #fff; }
  .nav-link.active { background: transparent; color: #fff; font-weight: 700; border-bottom-color: var(--gold-2); box-shadow: none; }
  .site-nav::after { background: linear-gradient(to left, rgba(15, 46, 42, 0), rgba(15, 46, 42, .95) 72%); }
  .pl-nav { top: calc(var(--header-h) + 50px); }
}
@media (max-width: 420px) { .brand-logo { height: 34px; } }

/* ==========================================================
   ترويسة الصفحة: عنوان تحريري ورقم ذهبي مفرّغ
   ========================================================== */
.page-head { position: relative; padding: 4px 0 28px; margin-bottom: 40px; border-bottom: 1.5px solid var(--ink); }
.page-head[data-n]::before {
  content: attr(data-n); pointer-events: none;
  font-family: var(--font-display); font-size: var(--num-size); line-height: 1; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold-2);
}
.page-head-icon { display: none; }
.page-title { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.9rem); color: var(--ink); line-height: 1.35; }
.page-lead { margin-top: 12px; color: var(--ink-2); font-size: clamp(1rem, .97rem + .25vw, 1.15rem); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .86rem; font-weight: 700; margin-bottom: 8px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--gold-2); transform: rotate(45deg); }
.crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--gold); }
/* الشاشات المتوسطة والواسعة: الرقم على الطرف، والنص يترك له مساحته فلا يتداخلان */
@media (min-width: 640px) {
  .page-head[data-n]::before { position: absolute; inset-inline-end: 0; bottom: 24px; }
  .page-head[data-n] .page-head-text { padding-inline-end: calc(var(--num-size) * 1.45 + 16px); }
}
/* الجوال: الرقم فوق العنوان */
@media (max-width: 639px) {
  .page-head[data-n]::before { display: block; font-size: 3.2rem; margin-bottom: 10px; }
}

/* ---------- الأقسام ---------- */
.section-head { align-items: baseline; gap: 12px; padding-top: 18px; margin-bottom: 24px; border-top: 1px solid var(--line-2); }
.page-head + .section .section-head { border-top: 0; padding-top: 0; }
.section-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: transparent; color: var(--gold); border: 1px solid var(--gold-2); align-self: center; }
.section-icon .i { width: 18px; height: 18px; }
.section-title { font-size: clamp(1.3rem, 1.12rem + .8vw, 1.8rem); color: var(--ink); line-height: 1.45; }
.section-lead { color: var(--ink-3); }
.band { background: var(--paper-2); border-color: var(--line-2); }

/* ---------- البطاقات ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.card-link:hover, .card-hover:hover { transform: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold-2); }
.card-icon { border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--line-2); color: var(--brand-700); }
.card-soft { background: var(--surface-2); }
.card-brand { background: var(--forest); }
.card-accent { border-top: 3px solid var(--gold-2); }

/* ---------- الأزرار والشارات ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-primary { background: var(--ink); color: var(--sand); box-shadow: none; }
.btn-primary:hover { background: var(--brand-800); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.icon-btn { border-radius: var(--radius-sm); }
.badge { border-radius: var(--radius-xs); }
.badge-brand { background: var(--brand-50); }
.chip { border-radius: var(--radius-xs); background: var(--surface); border-color: var(--line-2); }
a.chip:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.count-pill { border-radius: var(--radius-xs); background: var(--gold-soft); color: #6b5110; }
.seg { border-radius: var(--radius-sm); background: var(--paper-2); }
.seg button, .seg a { border-radius: var(--radius-xs); }
.awaiting { background: var(--paper-2); color: var(--ink-3); border-color: var(--line-2); border-radius: var(--radius-xs); }
.progress { height: 6px; border-radius: 0; background: var(--paper-3); }
.progress > span { border-radius: 0; background: var(--gold-2); }
.empty { background: var(--surface-2); border-color: var(--line-2); border-radius: var(--radius); }
.table-wrap { border-radius: var(--radius); background: var(--surface); }
.table th { background: var(--paper-2); }
.table tbody tr:hover { background: var(--surface-2); }
.input, .select, .textarea { border-radius: var(--radius-sm); background: var(--surface); }
.modal { border-radius: var(--radius-lg); background: var(--surface); }

/* ==========================================================
   التذييل
   ========================================================== */
.site-footer { margin-top: 0; background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.footer-logo-card { background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none; }
.footer-logo-card img { height: 54px; }
.footer-school { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.6; text-wrap: balance; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr); } }
.footer-links a:hover { color: var(--gold); }
.footer-tagline { background: var(--forest); color: var(--gold-soft); font-weight: 600; }

/* ==========================================================
   الرئيسية: صفحة غلاف تحريرية
   ========================================================== */
.hm-hero { background: var(--paper); border-bottom: 1.5px solid var(--ink); padding-block: 36px 44px; }
.hm-hero::after { display: none; }
@media (min-width: 768px) { .hm-hero { padding-block: 56px 60px; } }
.hm-hero-in { justify-items: stretch; gap: 40px; }

.hm-id {
  display: grid; align-items: start; text-align: start; max-width: none; width: 100%;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "name" "sub" "rule" "school" "chips" "people" "tagline";
}
/* الشعار مباشرة على الخلفية: بلا إطار ولا بطاقة */
.hm-logo { grid-area: logo; justify-self: start; margin: 0 0 22px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hm-logo img { width: clamp(150px, 42vw, 210px); }
.hm-name { grid-area: name; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem); line-height: 1.2; }
.hm-sub { grid-area: sub; margin-top: 10px; color: var(--ink-2); font-size: clamp(1.08rem, 1rem + .5vw, 1.4rem); }
.hm-rule { grid-area: rule; width: 96px; height: 4px; border-radius: 0; margin-block: 22px 18px; background: var(--gold-2); }
.hm-school { grid-area: school; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink); }
.hm-school .i { color: var(--gold); }
.hm-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-plan { margin-top: 0; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-xs); color: var(--ink-2); }
.hm-plan .i { color: var(--gold); }
.hm-people { grid-area: people; justify-content: flex-start; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--ink); }
.hm-people p { padding-inline: 0 18px; }
.hm-people p + p { padding-inline-start: 18px; border-inline-start-color: var(--line-2); }
.hm-tagline {
  grid-area: tagline; justify-self: start; margin-top: 24px; padding: 4px 18px; background: transparent; border: 0; border-radius: 0;
  border-inline-start: 4px solid var(--gold-2); box-shadow: none; color: var(--brand-800);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.7;
}
@media (min-width: 900px) {
  .hm-id {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px;
    grid-template-areas: "name logo" "sub logo" "rule logo" "school logo" "chips logo" "people people" "tagline tagline";
  }
  .hm-logo { justify-self: end; margin: 4px 0 0; }
  .hm-logo img { width: clamp(200px, 19vw, 270px); }
}
@media (max-width: 560px) {
  .hm-people { flex-direction: column; gap: 4px; }
  .hm-people p, .hm-people p + p { padding-inline: 0; border-inline-start: 0; }
}

.hm-welcome {
  max-width: none; text-align: start; padding: 26px 0 0; background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none;
  display: grid; gap: 12px 40px;
}
@media (min-width: 900px) { .hm-welcome { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); align-items: start; } }
.hm-welcome-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.6; }
.hm-welcome-text { margin: 0; max-width: none; color: var(--ink-2); font-size: clamp(1rem, .97rem + .25vw, 1.12rem); }

/* لمحة رقمية: أرقام تحريرية بخطوط فاصلة */
.hm-stats { grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@media (min-width: 560px) { .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-stat, .hm-stat.is-empty {
  flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0 22px;
  background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none;
}
.hm-stat-icon, .hm-stat.is-empty .hm-stat-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: transparent; color: var(--gold); border: 1px solid var(--gold-2); }
.hm-stat-label { color: var(--ink-2); font-size: .98rem; }
.hm-stat-value { color: var(--ink); font-weight: 700; font-size: clamp(1.9rem, 1.45rem + 1.4vw, 2.6rem); }

/* فهرس أقسام المنصة */
.hm-index { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; border-top: 1.5px solid var(--ink); counter-reset: hmi; }
@media (min-width: 900px) { .hm-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-index li { counter-increment: hmi; border-bottom: 1px solid var(--line-2); min-width: 0; }
.hm-index a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; color: var(--ink); transition: background .2s, padding .25s var(--ease); }
.hm-index a::before { content: counter(hmi, decimal-leading-zero); flex: none; min-width: 44px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.hm-index-label { flex: 1; min-width: 0; font-family: var(--font-display); font-size: clamp(1.02rem, .97rem + .3vw, 1.2rem); font-weight: 600; line-height: 1.6; }
.hm-index-go { flex: none; color: var(--ink-4); transition: transform .25s var(--ease), color .2s; }
.hm-index a:hover { background: var(--surface-2); padding-inline: 12px; color: var(--ink); }
.hm-index a:hover .hm-index-go { color: var(--gold); transform: translateX(-6px); }

/* ==========================================================
   مكونات الصفحات
   ========================================================== */
/* لوحات الأيقونات: الخطة، الوثائق، البرامج */
.pl-tile, .nx-doc, .pl-prog { background: var(--surface); border-radius: var(--radius); box-shadow: none; }
.pl-tile:hover, .nx-doc:hover, .pl-prog:hover { transform: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold-2); }
.pl-tile-icon, .nx-doc-icon, .pl-prog-icon { border-radius: var(--radius); background: transparent; border: 1px solid var(--line-2); color: var(--brand-700); }
.pl-tile:hover .pl-tile-icon, .nx-doc:hover .nx-doc-icon, .pl-prog:hover .pl-prog-icon { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }
.pl-tile-no { background: transparent; color: var(--gold); font-size: 1rem; width: auto; height: auto; }
.pl-tile-label, .pl-prog-name, .nx-doc-title { font-family: var(--font-display); font-weight: 600; }
.pl-tile-count, .pl-values li { border-radius: var(--radius-xs); }
.pl-nav { border-radius: var(--radius); background: var(--surface); }
.pl-nav-back, .pl-nav-item { border-radius: var(--radius-sm); }
.pl-nav-item.active { background: var(--ink); color: var(--sand); }
.pl-an-no, .evd-row-num { background: var(--ink); color: var(--gold-soft); border-radius: var(--radius-sm); }
.pl-vmv-card { border-top-width: 3px; }
.pl-goal { background: var(--surface-2); border-color: var(--line); }

/* التنقل داخل الصفحات */
.ac-jumps, .nx-jumps { gap: 0; border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); }
.ac-jump, .nx-jump {
  border: 0; border-bottom: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2); border-radius: 0;
  background: transparent; box-shadow: none; padding: 12px 14px;
}
.ac-jump:hover, .nx-jump:hover { background: var(--surface); box-shadow: inset 0 -3px 0 var(--gold-2); border-color: var(--line-2); }
.ac-jump-icon, .nx-jump-icon { background: transparent; color: var(--gold); border-radius: 0; width: 22px; }

/* بطاقات الإنجازات والكفاءات */
.ac-card { border-radius: var(--radius); }
.ac-card:hover { transform: none; box-shadow: inset 0 -3px 0 var(--gold-2); border-color: var(--ink); }
.ac-icon { border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--line-2); color: var(--brand-700); }
.ac-card:hover .ac-icon { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }
.ac-cert { border-top: 3px solid var(--gold-2); background: var(--surface); }
.ac-cert .ac-icon { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-2); }
.ac-cert:hover .ac-icon { background: var(--gold); color: #fff; border-color: var(--gold); }
.ac-official { background: var(--gold-soft); color: #6b5110; border-color: var(--gold-2); border-radius: var(--radius-xs); }
.ac-part { border-radius: var(--radius-xs); }
.ac-person .ac-icon { border-radius: 50%; }
.ac-name { border-radius: var(--radius); }
.ac-name::before { background: var(--ink); color: var(--gold-soft); border-radius: var(--radius-xs); font-family: var(--font-display); }
.ac-li { background: var(--surface-2); border-radius: var(--radius-sm); }
.ac-stats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 28px; }
.ac-stat { border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: transparent; padding-inline: 0; }
.ac-stat:hover { transform: none; box-shadow: none; }
.ac-stat-value { color: var(--ink); font-weight: 700; font-size: clamp(2.4rem, 1.9rem + 2vw, 3.3rem); }
.ac-stat .ac-icon { border-color: var(--gold-2); color: var(--gold); }

/* قصص الأثر والتقويم */
.sy-stages { background: var(--surface); border-color: var(--line-2); border-radius: var(--radius); }
.sy-stage-num { border-radius: var(--radius-xs); }

/* الحركة: هادئة */
.reveal { transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* شاشة التحميل */
.boot { color: var(--ink); font-family: var(--font-display); }
.boot-bar { border-radius: 0; background: linear-gradient(90deg, var(--paper-3), var(--gold-2), var(--paper-3)); background-size: 200% 100%; }

.hm-block + .hm-block { padding-top: 0; }

@media print {
  #app:has(> .site-header) { display: block; }
  .page-head[data-n]::before { display: none; }
}

/* إضافات قصص الأثر بالطابع التحريري */
.sy-hl { background: var(--surface-2); border-color: var(--line-2); border-radius: var(--radius-sm); }
.sy-hl-v { font-family: var(--font-display); color: var(--ink); }
.sd-platform-icon { border-radius: var(--radius-sm); background: transparent; border-color: var(--line-2); }
.sd-video-title .i { color: var(--gold); }
