/* ============================================================================
   مدينة الملك عبدالله الطبية — مكوّنات المحتوى المنقول من الموقع القديم (2026-11-08)
   صفحات الخدمات (تخطيط دليل الخدمات)، والتنزيلات، والفيديو، ومكتبة التثقيف الصحي،
   وشريط التوعية في الرئيسية، وشريط التطبيق، وبطاقات التواصل في وحدات الأبحاث.
   على رموز الثيم المعتمد فقط (THEME.md) — لا ألوان جديدة.
   ========================================================================== */

.ic-back { transform: scaleX(-1); }
[dir="rtl"] .ic-back { transform: none; }
[dir="rtl"] .icon-btn .ic-fwd { transform: scaleX(-1); }

/* ── قائمة التنزيلات الموحّدة ─────────────────────────────────────────── */
.downloads { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .625rem; }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 1.125rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-surface); color: var(--fg-strong); font-weight: 700; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-flow), background var(--dur-fast) var(--ease-flow); }
.downloads a::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-surface-3)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23116E9E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / 20px no-repeat; }
.downloads a span { flex: 1; }
.downloads a small { color: var(--fg-faint); font-weight: 400; font-size: .8125rem; white-space: nowrap; }
.downloads a:hover { border-color: var(--accent); background: var(--bg-surface-2); }

/* ── الفيديو ──────────────────────────────────────────────────────────── */
.media-video { margin: 1.25rem 0; }
.media-video video { width: 100%; border-radius: var(--radius-lg); background: #000; display: block; aspect-ratio: 16 / 9; }
.media-video figcaption { font-size: .875rem; color: var(--fg-muted); margin-block-start: .5rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.video-grid .media-video { margin: 0; }

/* ── بطاقة التواصل (وحدات الأبحاث) والتوقيع ───────────────────────────── */
.contact-box { margin: 1.75rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--bg-surface-3); border-inline-start: 4px solid var(--accent); }
.article-body .contact-box h2 { font-size: 1.0625rem; margin: 0 0 .75rem; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem 1.5rem; }
.contact-box dt { font-size: .8125rem; color: var(--fg-faint); }
.contact-box dd { margin: 0; font-weight: 700; color: var(--fg-strong); }
.article-body .signature { font-weight: 700; color: var(--fg-strong); border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; }
.unit-tiles { margin-block-start: 1rem; }

/* ── صفحة الخدمة (تخطيط دليل الخدمات المعتمد) ───────────────────────── */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.svc-main { display: grid; gap: 1.5rem; min-width: 0; }
.svc-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); }
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.svc-head__txt h2 { font-size: var(--step-2); color: var(--accent-text); margin: 0 0 .5rem; }
.svc-head__txt p { color: var(--fg-muted); margin: 0; line-height: 1.85; }
.svc-head__go { flex: none; display: grid; gap: .5rem; justify-items: end; }
.svc-start { min-width: 170px; }
.svc-app__lbl { margin: 0; font-size: .875rem; color: var(--fg-muted); }
.store-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-btns .ic { width: 20px; height: 20px; }
.svc-card__h { font-size: var(--step-1); color: var(--accent-text); margin: 0 0 1rem; }
.svc-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: .75rem; }
.svc-steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: .75rem; align-items: start; color: var(--fg); line-height: 1.8; }
.svc-steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .875rem;
  background: var(--bg-surface-3); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.svc-attrs { position: sticky; top: 1.5rem; }
.svc-attrs dl { margin: 0; display: grid; gap: 1.125rem; }
.svc-attr { position: relative; padding-inline-start: 48px; min-height: 36px; }
.svc-attr__ic { position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--bg-surface-3); color: var(--accent-text); }
.svc-attr__ic .ic { width: 22px; height: 22px; }
.svc-attr dt { font-size: .8125rem; color: var(--fg-faint); }
.svc-attr dd { margin: .125rem 0 0; font-weight: 700; color: var(--fg-strong); line-height: 1.6; }
.svc-details h2 { font-size: var(--step-1); color: var(--accent-text); }
.svc-tile { display: flex; flex-direction: column; }
.svc-tile .chip { margin-block-start: auto; align-self: flex-start; }
.svc-tile p { margin-block-end: .875rem; }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-attrs { position: static; order: -1; }
  .svc-attrs dl { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .svc-head { flex-direction: column; }
  .svc-head__go { justify-items: start; }
}

/* ── مكتبة التثقيف الصحي ──────────────────────────────────────────────── */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 1.75rem; }
.filter-pills a { display: inline-flex; align-items: center; gap: .375rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--fg-muted); font-weight: 700; font-size: .875rem; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-flow), border-color var(--dur-fast) var(--ease-flow), color var(--dur-fast) var(--ease-flow); }
.filter-pills a small { font-weight: 400; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.filter-pills a:hover { border-color: var(--accent); color: var(--accent-text); }
.filter-pills a[aria-current] { background: var(--btn-fill); border-color: var(--btn-fill); color: var(--btn-on-fill); }
.filter-pills a[aria-current] small { color: inherit; }
.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .875rem; }
.doc-card { display: flex; align-items: center; gap: .875rem; height: 100%; padding: 1rem; border-radius: var(--radius-lg); background: var(--bg-surface);
  border: 1px solid var(--border); color: var(--fg); text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-flow), transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms cubic-bezier(.2,.8,.2,1); }
.doc-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--fg); text-decoration: none; }
.doc-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.doc-card__ic { position: relative; flex: none; width: 48px; height: 56px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-surface-3); color: var(--accent-text); }
.doc-card__ic b { position: absolute; inset-block-end: 4px; font-size: .625rem; color: var(--accent-text); }
.doc-card__ic .ic { margin-block-end: 8px; }
.doc-card__txt { display: grid; gap: .25rem; min-width: 0; }
.doc-card__h { font-weight: 700; color: var(--fg-strong); line-height: 1.5; }
.doc-card small { color: var(--fg-faint); font-size: .8125rem; }
.pdf-view { width: 100%; height: min(80vh, 900px); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-block-start: 1.25rem; background: var(--bg-surface-3); }

/* ── شريط التوعية في الرئيسية ─────────────────────────────────────────── */
.aware .sec-head { align-items: flex-end; }
.aware__ctrl { display: flex; align-items: center; gap: .5rem; }
.aware__ctrl .i-play { display: none; }
.aware__ctrl [aria-pressed="false"] .i-play { display: inline-block; }
.aware__ctrl [aria-pressed="false"] .i-pause { display: none; }
.aware__count { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; color: var(--fg-muted); font-size: .875rem; }
.aware__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--radius-xl); scrollbar-width: none; background: var(--bg-surface-3); }
.aware__track::-webkit-scrollbar { display: none; }
.aware__track:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.aware__slide { margin: 0; scroll-snap-align: center; aspect-ratio: 47 / 16.5; display: grid; place-items: center; overflow: hidden; }
.aware__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.quick-row { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.quick-chip { display: flex; align-items: center; gap: .75rem; height: 100%; padding: .875rem 1rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--fg-strong); font-weight: 700; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-flow), transform 300ms cubic-bezier(.2,.8,.2,1); }
.quick-chip:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); text-decoration: none; }
.quick-chip__ib { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--bg-surface-3); color: var(--accent-text); }
@media (max-width: 600px) { .aware__slide { aspect-ratio: 2 / 1; } }

/* ── شريط التطبيق في الخدمات الإلكترونية ─────────────────────────────── */
.app-band { margin-block-start: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-xl); position: relative; overflow: hidden;
  background: url("../brand-kamc/04-patterns/flow/flow-band.svg") center / 100% 100% no-repeat, var(--kamc-navy); }
.app-band h2 { margin: .25rem 0 .5rem; font-size: var(--step-3); }
.app-band p { margin: 0; max-width: 560px; color: var(--kamc-text-body-dk); }
.app-band .btn .ic { width: 20px; height: 20px; }

/* أقسام مُلحقة بالصفحات (الملف التعريفي، الفيديو، خطوات التطوع) */
.page-extra { margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--border); }

/* ============================================================================
   الدليل التعريفي 2026 (2026-11-12): الأقسام التابعة، والهيكل التنظيمي، ومحاور
   الرعاية، ورحلة المريض، والمحتوى المرئي في الرئيسية. رموز الثيم فقط (THEME.md).
   ========================================================================== */

/* الأقسام التابعة (units) */
.unitgrid { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.unitcard { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.375rem; }
.unitcard__h { display: flex; align-items: flex-start; gap: .625rem; font-size: 1.0625rem; line-height: 1.5; margin: 0 0 .5rem; color: var(--fg-strong); }
.unitcard__h .ic { width: 22px; height: 22px; margin-block-start: .125rem; color: var(--accent-text); }
.unitcard__h a { color: inherit; text-decoration: none; }
.unitcard--link { transition: border-color var(--dur-fast) var(--ease-flow), box-shadow var(--dur-fast) var(--ease-flow); }
.unitcard--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.unitcard--link .unitcard__h a:hover { color: var(--accent-text); }
.unitcard__d { color: var(--fg-muted); font-size: .9375rem; line-height: 1.75; margin: 0 0 .75rem; }
.unitcard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; border-block-start: 1px solid var(--border); padding-block-start: .75rem; }
.unitcard__list li { display: grid; gap: .125rem; font-size: .9375rem; color: var(--fg); position: relative; padding-inline-start: 1rem; }
.unitcard__list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.unitcard__list small { color: var(--fg-faint); font-size: .8125rem; line-height: 1.6; }

.unitlist { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .625rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.unitlist li { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); }
.unitlist__ic { flex: none; width: 28px; height: 28px; border-radius: var(--radius-xs); background: var(--bg-surface-3); display: grid; place-items: center; color: var(--accent-text); }
.unitlist__ic .ic { width: 16px; height: 16px; }
.unitlist b { display: block; font-size: .9375rem; color: var(--fg-strong); line-height: 1.5; }
.unitlist small { display: block; color: var(--fg-faint); font-size: .8125rem; line-height: 1.6; margin-block-start: .125rem; }

/* محاور الرعاية */
.pillars { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.pillars li { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--bg-surface-3); display: grid; gap: .25rem; align-content: start; }
.pillars__n { font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--accent); }
.pillars b { color: var(--fg-strong); font-size: 1rem; }
.pillars small { color: var(--fg-muted); font-size: .875rem; line-height: 1.7; }
/* أربع بطاقاتٍ في عمودٍ عرضه ~810 بكسلًا تنزل 3+1 فيبقى فراغٌ معلّق في الصف
   الثاني. بطاقتان في الصف تجعلانها 2×2 متّزنة، والنصّ فيها أطول من أن يُقرأ
   في عمودٍ عرضه 190 بكسلًا. */
.pillars--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

/* رحلة المريض */
.journey { list-style: none; margin: 1rem 0 2rem; padding: 0; counter-reset: jr; display: grid; gap: 0; }
.journey li { counter-increment: jr; position: relative; padding: 0 0 1.5rem 0; padding-inline-start: 3.25rem; }
.journey li::before { content: counter(jr, decimal-leading-zero); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .875rem;
  background: var(--btn-fill); color: var(--btn-on-fill); font-variant-numeric: tabular-nums; }
.journey li::after { content: ""; position: absolute; inset-inline-start: calc(1.125rem - 1px); inset-block: 2.5rem .25rem; width: 2px; background: var(--border); }
.journey li:last-child { padding-block-end: 0; }
.journey li:last-child::after { display: none; }
.journey b { display: block; color: var(--fg-strong); font-size: 1.0625rem; margin-block-end: .25rem; }
.journey small { color: var(--fg-muted); font-size: .9375rem; line-height: 1.75; }

/* اقتباس بارز، وأرقام جانبية، ومحتوى إضافي */
.pullquote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); background: var(--kamc-navy); color: #fff; position: relative; overflow: hidden; }
.pullquote::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: url("../brand-kamc/04-patterns/flow/flow-band.svg") center / 100% 100% no-repeat; }
.pullquote .ic { width: 28px; height: 28px; color: var(--kamc-blue-light); position: relative; }
.pullquote p { margin: .5rem 0 0; font-size: var(--step-1); line-height: 1.85; color: #fff; position: relative; }

.minifacts { margin: 0; display: grid; gap: .75rem; }
.minifacts div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block-end: .75rem; border-block-end: 1px solid var(--border); }
.minifacts div:last-child { border-block-end: 0; padding-block-end: 0; }
.minifacts dt { color: var(--fg-muted); font-size: .875rem; }
.minifacts dd { margin: 0; font-weight: 700; font-size: 1.25rem; color: var(--accent-text); }

.more { margin: 2rem 0 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); }
.more > summary { cursor: pointer; padding: .875rem 1.125rem; font-weight: 700; color: var(--accent-text); font-size: .9375rem; }
.more > summary:hover { background: var(--bg-surface-3); }
.more[open] > summary { border-block-end: 1px solid var(--border); }
.more > .article-body { padding: 1.125rem 1.375rem; }

/* الهيكل التنظيمي */
.orgtree { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.orgexec { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.orgexec__head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; background: var(--bg-surface-3); }
.orgexec__ib { flex: none; width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--kamc-navy); color: #fff; display: grid; place-items: center; }
.orgexec__ib .ic { width: 26px; height: 26px; }
.orgexec__ib .ic .a { stroke: var(--kamc-blue-light); }
.orgexec__head > div { flex: 1; min-width: 0; }
.orgexec__h { font-size: var(--step-2); margin: 0 0 .375rem; line-height: 1.45; }
.orgexec__h a { color: var(--fg-strong); text-decoration: none; }
.orgexec__h a:hover { color: var(--accent-text); }
.orgexec__head p { margin: 0; color: var(--fg-muted); font-size: .9375rem; line-height: 1.75; }
.orgexec__count { flex: none; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 1rem; background: var(--bg-surface); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 700; font-size: .875rem; color: var(--accent-text); }
.orgkids { list-style: none; margin: 0; padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.orgkid a { display: grid; gap: .25rem; height: 100%; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--fg); text-decoration: none; background: var(--bg-surface);
  transition: border-color var(--dur-fast) var(--ease-flow), background var(--dur-fast) var(--ease-flow); }
.orgkid a:hover { border-color: var(--accent); background: var(--bg-surface-3); text-decoration: none; }
.orgkid b { color: var(--fg-strong); font-size: .9375rem; line-height: 1.55; }
.orgkid small { color: var(--fg-faint); font-size: .8125rem; line-height: 1.65; }
.orgkid--assoc a { border-inline-start: 3px solid var(--accent); }
.orgkid__sub { display: inline-flex; align-items: center; gap: .25rem; color: var(--accent-text) !important; font-weight: 700; }
.orgkid__sub .ic { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .orgexec__head { flex-wrap: wrap; padding: 1.125rem; }
  .orgkids { padding: 1rem 1.125rem 1.125rem; }
}

/* المحتوى المرئي في الرئيسية */
/* ثلاثة أعمدة وأول عنصر 2×2: n عنصرًا تملأ (n+3) خلية، فتستوي الشبكة بلا
   فراغ متى كان العدد من مضاعفات الثلاثة. و`:nth-last-child(3n)` على العنصر
   الأول هو الشرط نفسه مكتوبًا بـ CSS: إن اختلّ العدد سقط التكبير وحده وصارت
   البطاقات متساوية، بدل خانةٍ فارغة في آخر الشبكة. */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; }
.gallery li { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--kamc-navy); isolation: isolate; }
.gallery li:first-child:nth-last-child(3n) { grid-column: span 2; grid-row: span 2; }
.gallery picture, .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform var(--dur-slow) var(--ease-flow); }
.gallery li::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8,30,54,.9) 0%, rgba(8,30,54,.35) 50%, rgba(8,30,54,0) 100%); }
.gallery li:hover img { transform: scale(1.05); }
.gallery figure { margin: 0; height: 100%; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 1rem 1.125rem; color: #fff; font-weight: 700; font-size: .9375rem; line-height: 1.6; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery li:first-child:nth-last-child(3n) { grid-column: auto; grid-row: auto; } }

/* شريط الأرقام الموسّع (الكادر البشري) */
.staffsplit { list-style: none; margin: 3.25rem 0 0; padding: 2.5rem 0 0; border-block-start: 1px solid rgba(255,255,255,.22);
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.staffsplit li { display: grid; gap: .25rem; }
.staffsplit b { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.staffsplit small { color: var(--kamc-text-body-dk); font-size: .875rem; }

/* بطاقة البوابة داخل تبويب خدمات الموظفين في دليل الخدمات (2026-11-13) */
.svc-portal { margin-block-end: 1.5rem; }
.svc-portal small { line-height: 1.7; margin-block-start: .25rem; }
.svc-portal b { font-size: 1.125rem !important; }

/* زر النسخة الإلكترونية بجانب أزرار المتاجر (بوابة المريض) */
.svc-web { margin-block-start: .5rem; }

/* ════════════════════════════════════════════════════════════════════════════
   الجوائز والاعتمادات (2026-11-14)
   كان المحتوى جدولًا منقولًا خامًا من SharePoint: رؤوس عربية وإنجليزية مكرّرة
   في كل قسم، وصفوف بخمسة أعمدة لا تُقرأ على الجوال. الجدول هنا ليس بنية
   البيانات الصحيحة: كل سطر «واقعة» لها سنة وجهة ومستوى — فبطاقةٌ لا خليّة.
   ═════════════════════════════════════════════════════════════════════════ */

.chip--national { background: var(--bg-surface-3); color: var(--accent-text); }
.chip--international { background: var(--success-subtle); color: var(--kamc-success-text); }
/* محطةٌ في مسيرة المدينة لا جائزة (الافتتاح): شارةٌ محايدة، فوسم «وطني» على
   الافتتاح يقرأ وكأنه جائزةٌ وطنية. */
.chip--milestone { background: var(--bg-surface-2); color: var(--fg-muted); }

/* ── الجوائز: السنة أولًا، فالقراءة زمنية بطبعها ──────────────────────────── */
.awardlist { list-style: none; margin: 1.25rem 0 2.25rem; padding: 0; display: grid; gap: .625rem; }
.awardlist__i { display: grid; grid-template-columns: 62px 1fr auto; gap: .875rem; align-items: center;
  padding: 1rem 1.125rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); }
.awardlist__i.is-feat { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .awardlist__i.is-feat { box-shadow: inset -3px 0 0 var(--accent); }
.awardlist__yr { font-size: 1.375rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.awardlist__b { display: grid; gap: .25rem; min-width: 0; }
.awardlist__b b { color: var(--fg-strong); font-size: 1rem; line-height: 1.65; }
.awardlist__b small { color: var(--fg-muted); font-size: .8125rem; }
/* طرف الصفّ: شعار الجهة المانحة ثم شارة المستوى، في عمودٍ واحد لا عمودين —
   فالصفوف التي بلا شعار (نيوزويك وبراند فاينانس: حقوق نشر) تبقى مصطفّة. */
.awardlist__end { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 560px) {
  /* عمودٌ واحد: السنة سطرًا، فالعنوان سطرًا كاملًا، فالشعار والشارة سطرًا.
     ولو بقي الطرف عمودًا ثانيًا لضاق العنوان إلى كلمتين في السطر. */
  .awardlist__i { grid-template-columns: 1fr; }
  .awardlist__yr { font-size: 1.125rem; }
  .awardlist__end { justify-content: flex-start; gap: .625rem; margin-block-start: .25rem; }
}

/* ── الاعتمادات: الرمز علامةٌ يعرفها المدقّق، فيصدّر البطاقة ──────────────── */
.accreds { list-style: none; margin: 1.25rem 0 2rem; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.accred { display: grid; gap: .375rem; align-content: start; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); }
.accred.is-feat { background: var(--bg-surface-3); border-color: var(--accent); }
/* صور المتن تحمل هامشًا رأسيًّا وحوافَّ دائرية (`.article-body img` أدناه)، وهما
   في مربّع العلامة خطأ: الهامش يدفع الشعار خارج المربّع من أسفله لأن التوسيط
   يوسّط صندوق الهامش لا الصورة. والمربّع يضبط مقاسه بنفسه في `kamc-site.css`. */
.article-body .amark img { margin: 0; border-radius: 0; }
.accred__code { justify-self: start; font-weight: 700; font-size: .8125rem; letter-spacing: .04em;
  padding: 3px 9px; border-radius: var(--radius-xs); background: var(--kamc-navy); color: #fff; }
.accred.is-feat .accred__code { background: var(--accent-text); }
.accred b { color: var(--fg-strong); font-size: 1.0625rem; line-height: 1.6; margin-block-start: .25rem; }
.accred > small { color: var(--fg-faint); font-size: .8125rem; }
.accred p { margin: .375rem 0 0; color: var(--fg-muted); font-size: .875rem; line-height: 1.75; }
.accred__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; margin-block-start: .625rem;
  font-size: .8125rem; color: var(--fg-muted); }
.accred__meta b { font-size: inherit; margin: 0; color: var(--fg-strong); }
.accred__org { font-size: .75rem; color: var(--fg-faint); line-height: 1.6; }

/* ── البرامج التدريبية المعتمدة (صفحة التدريب والابتعاث) ─────────────────── */
.article-body .proglist { list-style: none; margin: .875rem 0 1.75rem; padding: 0; display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.proglist li { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .625rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface); }
.proglist b { font-weight: 700; font-size: .9375rem; color: var(--fg-strong); line-height: 1.55; }
.proglist span { flex: none; font-size: .8125rem; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.article-body h3 .cnt { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; margin-inline-start: .375rem;
  border-radius: var(--radius-pill); background: var(--bg-surface-3); color: var(--accent-text); font-size: .75rem; vertical-align: middle; }

/* ── صفحات تملكها الإدارة (صفحة الإدارة) ─────────────────────────────────── */
.deptpages { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .625rem; }
.deptpages a { display: flex; align-items: center; gap: .875rem; padding: .9375rem 1.125rem; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--fg); }
.deptpages a:hover { border-color: var(--accent); background: var(--bg-surface-2); }
.deptpages a > .ic:first-child { flex: none; width: 24px; height: 24px; color: var(--accent-text); }
.deptpages span { flex: 1; display: grid; gap: .125rem; min-width: 0; }
.deptpages b { color: var(--fg-strong); font-size: 1rem; line-height: 1.6; }
.deptpages small { color: var(--fg-faint); font-size: .8125rem; }
.deptpages .ic-fwd { flex: none; width: 18px; height: 18px; opacity: .55; }
[dir="rtl"] .deptpages .ic-fwd { transform: scaleX(-1); }

/* ── بطاقة مكتبة خارجية ذات علاقة (مكتبة الأدوية في التثقيف الصحي) ────────
   بارزةٌ عن شبكة المواد لأنها ليست مادةً منها بل مكتبةٌ كاملة، وتفتح في تبويب
   آخر فلا يفقد المريض موضعه من قائمة المواد. */
.lib-card { display: flex; align-items: center; gap: 1.125rem; margin-block-end: 1.75rem; padding: 1.25rem 1.5rem;
  text-decoration: none; color: var(--fg); border-radius: var(--radius-lg); border: 1px solid var(--accent);
  background: var(--bg-surface-3); }
.lib-card:hover { box-shadow: var(--shadow-md); color: var(--fg); }
.lib-card__ic { flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--btn-fill); color: var(--btn-on-fill); }
.lib-card__ic .ic { width: 26px; height: 26px; }
.lib-card__txt { flex: 1; display: grid; gap: .25rem; min-width: 0; }
.lib-card__txt b { color: var(--accent-text); font-size: 1.0625rem; line-height: 1.55; }
.lib-card__txt small { color: var(--fg-muted); font-size: .875rem; line-height: 1.75; }
.lib-card__go { flex: none; color: var(--accent-text); }
.lib-card__go .ic { width: 20px; height: 20px; }
@media (max-width: 560px) { .lib-card { flex-wrap: wrap; } .lib-card__go { display: none; } }

/* ── «المدينة في سطور» داخل صفحة عن المدينة (نُقلت من الرئيسية 2026-11-14) ── */
.pstats { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.pstat { padding: 1.125rem 1.25rem; border-radius: var(--radius-lg); background: var(--bg-surface-2); border: 1px solid var(--border); }
.pstat dd { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.15;
  color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pstat dt { order: 2; color: var(--fg-muted); font-size: .875rem; margin-block-start: .375rem; }
.pstat { display: flex; flex-direction: column; }
.pstats__split { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.pstats__split li { display: flex; align-items: baseline; gap: .5rem; }
.pstats__split b { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--fg-strong); }
.pstats__split small { color: var(--fg-muted); }

/* ══════════════════════════════════════════════════════════════════════
   تقويم الدورات (2026-11-15) — بديل إطار نظام الدورات في الموقع السابق.
   الأسبوع يبدأ الأحد، وكل يوم يحمل تاريخيه الميلادي والهجري.
   ────────────────────────────────────────────────────────────────────── */
.cal { margin-block: .5rem 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-surface); overflow: hidden; }
.cal__head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border-block-end: 1px solid var(--border); background: var(--bg-surface-2); }
.cal__title { flex: 1; text-align: center; }
.cal__title h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; color: var(--fg-strong); }
.cal__title p { margin: .125rem 0 0; font-size: .875rem; color: var(--fg-muted); }
.cal__nav { flex: none; text-decoration: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px;
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--fg-strong); }
.cal__nav:hover { background: var(--kamc-navy); border-color: var(--kamc-navy); color: #fff; }
[dir="rtl"] .cal__nav .ic-fwd { transform: scaleX(-1); }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; padding: 1px; background: var(--border); }
.cal__wd { padding: .625rem .25rem; background: var(--bg-surface-2); text-align: center;
  font-size: .75rem; font-weight: 700; color: var(--fg-muted); }
.cal__pad { background: var(--bg-surface); }
.cal__day { position: relative; text-decoration: none; display: grid; align-content: center; justify-items: center; gap: 1px;
  min-block-size: 68px; padding: .375rem; background: var(--bg-surface); color: var(--fg-faint); }
.cal__day b { font-size: 1.0625rem; font-weight: 600; line-height: 1.1; }
.cal__day small { font-size: .6875rem; opacity: .8; }
.cal__day.has-ev { color: var(--fg-strong); font-weight: 700; background: var(--bg-surface-3); }
.cal__day.has-ev:hover { background: var(--kamc-navy); color: #fff; }
.cal__day.has-ev:hover .cal__dot { background: #fff; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--kamc-blue); }
.cal__day.is-sel { background: var(--kamc-navy); color: #fff; }
.cal__day.is-sel .cal__dot { background: #fff; }
.cal__dot { display: block; inline-size: 6px; block-size: 6px; margin-block-start: 2px;
  border-radius: 50%; background: var(--kamc-blue); }
.cal__legend { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .75rem 1.25rem;
  border-block-start: 1px solid var(--border); font-size: .8125rem; color: var(--fg-muted); }
.cal__legend .cal__dot { margin: 0; }

/* دورات اليوم المختار: الزرّ نموذجٌ عابر إلى نظام الدورات، فيُستوى شكله بالرابط */
.cal-day .article__h small { display: block; margin-block-start: .25rem; font-size: .875rem;
  font-weight: 400; color: var(--fg-muted); }
.cal-list { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .625rem; }
.cal-list form { margin: 0; }
.cal-course { display: flex; align-items: center; gap: .875rem; inline-size: 100%; padding: .875rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface);
  text-align: start; font: inherit; color: inherit; cursor: pointer; }
.cal-course:hover { border-color: var(--kamc-blue); box-shadow: var(--shadow-sm); }
.cal-course.is-closed { cursor: default; opacity: .72; }
.cal-course.is-closed:hover { border-color: var(--border); box-shadow: none; }
.cal-course__ib { flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px;
  border-radius: var(--radius-md); background: var(--bg-surface-3); color: var(--kamc-navy); }
.cal-course__tx { flex: 1; display: grid; gap: .125rem; min-inline-size: 0; }
.cal-course__tx b { color: var(--fg-strong); font-size: 1rem; line-height: 1.45; }
.cal-course__tx small { color: var(--fg-muted); font-size: .8125rem; }
.cal-course__go { flex: none; color: var(--fg-faint); }
.cal-down { border-color: var(--accent); }

@media (max-width: 560px) {
  .cal__day { min-block-size: 54px; }
  .cal__day b { font-size: .9375rem; }
  .cal__wd { font-size: .625rem; padding: .5rem .125rem; }
}

/* بطاقة ملف إدارة (2026-11-15) — وجهة الرابط القصير والباركود */
.filecard { display: flex; gap: 1.5rem; padding: 1.75rem; margin-block-end: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); }
.filecard__ib { flex: none; display: grid; place-items: center; inline-size: 72px; block-size: 72px;
  border-radius: var(--radius-lg); background: var(--kamc-navy); color: #fff; }
.filecard__ib .ic { inline-size: 34px; block-size: 34px; }
.filecard__tx { flex: 1; min-inline-size: 0; }
.filecard__tx h2 { margin: 0; font-size: 1.375rem; line-height: 1.4; color: var(--fg-strong); }
.filecard__tx > p { margin: .5rem 0 0; color: var(--fg-muted); line-height: 1.8; }
.filecard__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin: 1rem 0 0; padding: 0; font-size: .875rem; color: var(--fg-muted); }
.filecard__meta li { display: flex; align-items: center; gap: .375rem; }
.filecard__meta .ic { inline-size: 17px; block-size: 17px; }
.filecard__go { margin: 1.5rem 0 0; }
@media (max-width: 560px) {
  .filecard { flex-wrap: wrap; gap: 1rem; padding: 1.25rem; }
  .filecard__ib { inline-size: 52px; block-size: 52px; }
}

/* ══════════════════════════════════════════════════════════════════════
   دليل الأدوية ومكتبة التثقيف (2026-11-16)
   ──────────────────────────────────────────────────────────────────────
   محتوًى منقول من نظام «KAMC المعرفة» و«التثقيف الصحي» على
   services.kamc.med.sa (`kamc:import-health-edu`).
   ══════════════════════════════════════════════════════════════════════ */

/* ── تنبيه داخل المتن ──────────────────────────────────────────────────
   صفٌّ بأيقونةٍ ثابتة ونصٍّ يلتفّ تحت نفسه لا تحت الأيقونة: مع `flex` وحده
   يصير السطر الثاني محاذيًا لحافة الصندوق فيضيع التدرّج البصري. */
/* ⚠ القاعدة العامة `p { max-width: 68ch }` تُقيّد عرض القراءة، وهي صحيحة
   للفقرات. والتنبيه وسطرُ المصدر صندوقان لا فقرتان: بالقيد يصير التنبيه أضيق
   من حقل البحث تحته بنصف العرض، ويصير خطّ سطر المصدر معلَّقًا في منتصف العمود. */
.notice, .srcline, .medfind__none { max-width: none; }

.notice { display: flex; gap: .875rem; align-items: flex-start; margin: 0 0 1.5rem;
  padding: 1rem 1.125rem; border-radius: var(--radius-md); font-size: .9375rem; line-height: 1.8;
  background: var(--bg-surface-2); border: 1px solid var(--border); color: var(--fg); }
.notice .ic { flex: none; inline-size: 22px; block-size: 22px; margin-block-start: .125rem; }
.notice > span { min-inline-size: 0; }
.notice b { color: var(--fg-strong); }
.notice a { color: var(--accent-text); }

/* التنبيه التحذيري: حدٌّ سميك على الحافة البادئة لا خلفيةٌ صارخة — الصفحة
   كلّها نصٌّ طبي، فلونٌ عريض يُرهق القراءة ويفقد التنبيه معناه بالتكرار. */
.notice--warn { background: #FFF8EC; border-color: #F0D9AE; color: #5A4420;
  border-inline-start: 4px solid #D99A2B; }
.notice--warn .ic { color: #B8771A; }
.notice--warn b { color: #4A3516; }
.notice--warn a { color: #8A5A10; }

/* ── سطر المصدر وإخلاء المسؤولية ───────────────────────────────────── */
.srcline { margin: 2rem 0 0; padding-block-start: 1rem; border-block-start: 1px solid var(--border);
  color: var(--fg-faint); font-size: .8125rem; line-height: 1.8; }

/* ── ذيل القائمة الجانبية: «كل مواد الفئة» ─────────────────────────── */
.sidebar__more { margin: 1rem 0 0; padding-block-start: .875rem; border-block-start: 1px solid var(--border);
  font-size: .875rem; }
.sidebar__more a { display: inline-flex; align-items: center; gap: .375rem; color: var(--accent-text);
  font-weight: 700; text-decoration: none; }
.sidebar__more a:hover { text-decoration: underline; }
.sidebar__more .ic { inline-size: 17px; block-size: 17px; }

/* ── البحث الفوري في الدليل ────────────────────────────────────────── */
.medfind { margin-block-end: 2rem; }
.medfind__f { display: flex; align-items: center; gap: .75rem; padding: .25rem .25rem .25rem 1rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-surface);
  transition: border-color .2s ease, box-shadow .2s ease; }
[dir="rtl"] .medfind__f { padding: .25rem 1rem .25rem .25rem; }
.medfind__f:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(22 145 208 / .14); }
.medfind__f .ic { flex: none; inline-size: 21px; block-size: 21px; color: var(--fg-faint); }
.medfind__f input { flex: 1; min-inline-size: 0; border: 0; background: none; outline: none;
  font: inherit; font-size: 1rem; color: var(--fg); padding-block: .75rem; }
.medfind__n { margin: .625rem 0 0; min-block-size: 1.25rem; color: var(--fg-muted); font-size: .875rem; }
.medfind__none { margin: 1.5rem 0 0; padding: 1.5rem; text-align: center; color: var(--fg-muted);
  border: 1px dashed var(--border); border-radius: var(--radius-lg); }

/* ── قسمٌ من الدليل ───────────────────────────────────────────────── */
.medsec { margin-block-end: 2.5rem; }
.medsec__h { display: flex; align-items: center; gap: .875rem; margin-block-end: 1rem;
  padding-block-end: .75rem; border-block-end: 1px solid var(--border); }
.medsec__ib { flex: none; display: grid; place-items: center; inline-size: 42px; block-size: 42px;
  border-radius: var(--radius-md); background: var(--bg-surface-3); color: var(--accent-text); }
.medsec__ib .ic { inline-size: 23px; block-size: 23px; }
.medsec__h h2 { flex: 1; margin: 0; font-size: 1.1875rem; line-height: 1.45; color: var(--fg-strong); }
.medsec__h small { flex: none; color: var(--fg-faint); font-size: .8125rem; }

/* الشبكة: ثلاثة أعمدة على الحاسب. أسماء الأدوية قصيرة، فعمودٌ واحد يُهدر
   العرض ويُطيل الصفحة إلى أربعة أمتار (61 نشرة). */
.medlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.medlist li { margin: 0; }
/* الاسمان أحدهما تحت الآخر لا متجاورَين.
   بالتجاور يتصادمان: «سيكلوفوسفاميد» و«Cyclophosphamide» لا يتّسعان في بطاقةٍ
   واحدة، فيركب أحدهما الآخر. والصفّان يُبقيان البطاقات متساوية الارتفاع. */
.medlist a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .125rem .75rem;
  block-size: 100%; padding: .875rem 1rem; text-decoration: none; color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.medlist a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--fg); }
.medlist b { grid-column: 1; min-inline-size: 0; color: var(--fg-strong); font-size: 1rem; line-height: 1.5;
  overflow-wrap: anywhere; }
.medlist small { grid-column: 1; min-inline-size: 0; color: var(--fg-faint); font-size: .75rem; line-height: 1.5;
  overflow-wrap: anywhere; }
.medlist .ic { grid-column: 2; grid-row: 1 / -1; flex: none; inline-size: 18px; block-size: 18px; color: var(--fg-faint); }
.medlist a:hover .ic { color: var(--accent-text); }

/* الاسم الآخر فوق متن النشرة */
.medalt { margin: 0 0 1.25rem; color: var(--fg-muted); font-size: 1.0625rem; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .medlist a:hover { transform: none; }
  .medlist a, .medfind__f { transition-duration: .01ms; }
}

@media (max-width: 560px) {
  .medsec__ib { inline-size: 34px; block-size: 34px; }
  .medsec__ib .ic { inline-size: 19px; block-size: 19px; }
  .medsec__h h2 { font-size: 1.0625rem; }
  .medlist { grid-template-columns: 1fr; }
}

/* ── قائمة وقائع ذات عنوان (إنجازات الإدارات) ─────────────────────────────
   النقطة مرسومة لا موروثة عن قصد: القاعدة العامة `ul { list-style: none }`
   تُلغي علامات القوائم في كل مكان، فقاعدة `.article-body li::marker` أعلاه
   لا تجد علامةً تلوّنها — وأي قائمة نصّية في متن محتوى تظهر بلا نقاط. */
.article-body .factlist { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .75rem; }
.factlist li { position: relative; padding-inline-start: 1.5rem; font-size: .9375rem; line-height: 1.8; color: var(--fg-muted); }
.factlist li::before { content: ""; position: absolute; inset-inline-start: .375rem; inset-block-start: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.factlist b, .factlist strong { color: var(--fg-strong); font-weight: 700; }

/* ── لوحةٌ ذات عنوان: خريطة الأهداف الاستراتيجية، والهيكل التنظيمي ─────────
   إطارٌ وخلفيةٌ بيضاء لأن الاثنتين رسمٌ على أبيض، فبلا إطار تذوب حافتهما في
   خلفية الصفحة. والنقر يكبّرهما (طبقة الحركة تُفعّل التكبير لكل صورة متنٍ
   عرضها ≥ 360 بكسلًا)، فالشرح في التسمية لا في عنوانٍ منبثق. */
.article-body .figure { margin: 1.5rem 0 2.25rem; }
.figure img { display: block; inline-size: 100%; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.figure figcaption { margin-block-start: .625rem; font-size: .8125rem; line-height: 1.75; color: var(--fg-muted); }

/* ══════════════════════════════════════════════════════════════════════
   مكتبة التثقيف: شبكةُ أغلفة، والمادةُ صفحاتٌ تُقرأ (2026-11-17)

   كانت البطاقات أيقوناتٍ رمادية متشابهة ووسمَ «PDF»، والمادة زرَّ تحميل
   وإطارَ PDF من المتصفح. وصار غلافُ المادة صفحتَها الأولى — نشرةً مصمَّمة
   بعنوانها ورسمها — وصفحاتُها صورًا تُقرأ في مكانها.
   ══════════════════════════════════════════════════════════════════════ */

.he-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem);
           grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.he-card { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: inherit;
           background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
           overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.he-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.he-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* الغلاف: أعلى الصفحة الأولى. `object-position: top` مقصود — ترويسة النشرة
   فيها العنوان والشعار، وتوسيطُها يقصّ العنوان ويُبقي بياضًا. */
.he-card__cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-surface-3);
                  border-block-end: 1px solid var(--border); position: relative; }
.he-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
                      transition: transform .35s var(--ease-flow, ease); }
.he-card:hover .he-card__cover img { transform: scale(1.03); }

/* بلا غلاف (المواد النصّية): لوحةٌ بالهوية لا مربّعٌ فارغ */
.he-card__ph { position: absolute; inset: 0; display: grid; place-items: center;
               background: linear-gradient(140deg, var(--kamc-ink), var(--kamc-navy)); }
.he-card__ph .ic { width: 46px; height: 46px; color: #fff; opacity: .9; }
.he-card__ph .ic .a { stroke: var(--kamc-blue-light); }

.he-card__tx { display: grid; gap: .5rem; align-content: start; padding: .875rem 1rem 1rem; }
.he-card__tx b { color: var(--fg-strong); font-size: .9375rem; line-height: 1.55; }
.he-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem;
                 margin-block-start: auto; font-size: .75rem; color: var(--fg-faint); }
.he-card__cat { display: inline-flex; align-items: center; gap: .3125rem; color: var(--accent-text); font-weight: 700; }
.he-card__cat .ic { width: 15px; height: 15px; }
.he-card__pg { background: var(--bg-surface-3); border-radius: 999px; padding: .125rem .5rem; font-variant-numeric: tabular-nums; }

/* ── المادة: صفحاتٌ تُقرأ في مكانها ───────────────────────────────────── */
.leaflet { margin-block: 1.5rem 0; }
.leaflet__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
                padding-block-end: .875rem; margin-block-end: 1rem; border-block-end: 1px solid var(--border); }
.leaflet__n { display: inline-flex; align-items: center; gap: .4375rem; color: var(--fg-muted);
              font-size: .875rem; font-weight: 700; }
.leaflet__n .ic { width: 18px; height: 18px; color: var(--accent-text); }

.leaflet__pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: pg; }
.leaflet__pages li { position: relative; counter-increment: pg; }
.leaflet__pages img { width: 100%; height: auto; display: block; border: 1px solid var(--border);
                      border-radius: var(--radius-md); background: #fff; }
/* رقم الصفحة على حافتها: القارئ يعرف موضعه في نشرةٍ من اثنتي عشرة صفحة */
.leaflet__pages li::after { content: counter(pg); position: absolute; inset-block-end: .625rem; inset-inline-end: .625rem;
                            min-width: 26px; height: 26px; padding-inline: .375rem; border-radius: 999px;
                            display: grid; place-items: center; font-size: .75rem; font-weight: 700;
                            background: color-mix(in srgb, var(--kamc-ink) 72%, transparent); color: #fff;
                            font-variant-numeric: tabular-nums; pointer-events: none; }
.leaflet__more { margin: 1rem 0 0; padding: .75rem 1rem; background: var(--bg-surface-3);
                 border-radius: var(--radius-sm); color: var(--fg-muted); font-size: .875rem; }

@media (max-width: 560px) {
  .he-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .875rem; }
  .he-card__tx { padding: .75rem .8125rem .875rem; }
  .he-card__tx b { font-size: .875rem; }
  .leaflet__pages { gap: .875rem; }
}

/* بطاقة فيديو داخل المتن (نشرات الأدوية ومواد التثقيف).
   رابطٌ لا إطارٌ مضمَّن: التضمين يُحمّل سكربتات يوتيوب على صفحةٍ حكومية، وقد
   تكون الخدمة محجوبةً على شبكة المدينة فيظهر مربّعٌ أسود. */
.vidcard { margin: 1.5rem 0; }
.vidcard a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.125rem; text-decoration: none;
             background: var(--bg-surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--accent);
             border-radius: var(--radius-md); color: inherit; transition: border-color .2s, box-shadow .2s; }
.vidcard a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); text-decoration: none; }
.vidcard__play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
                 background: var(--accent); position: relative; }
/* مثلثٌ مرسومٌ بالحدود: أيقونةٌ أقل، وتتبع اتجاه الصفحة من نفسها */
.vidcard__play::after { content: ""; border-block: 9px solid transparent;
                        border-inline-start: 14px solid #fff; margin-inline-start: 4px; }
[dir="ltr"] .vidcard__play::after { border-inline-start: 0; border-inline-end: 14px solid #fff;
                                    margin-inline: 0 4px; }
.vidcard__tx { display: grid; gap: .1875rem; }
.vidcard__tx b { color: var(--fg-strong); font-size: 1rem; }
.vidcard__tx small { color: var(--fg-muted); font-size: .8125rem; }

/* ═══ المحطة المصوَّرة في آخر سجلّ الإنجازات (2026-11-17) ═══
   القائمة تنزل من الأحدث إلى الأقدم، فآخرُها المبتدأ: افتتاح المدينة 2009.
   وصورة الحفل تحتها تقول ما لا يقوله السطر. */
.opening { margin: 1.75rem 0 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
           overflow: hidden; background: var(--bg-surface); }
.opening picture, .opening img { display: block; width: 100%; height: auto; }
.opening figcaption { display: grid; gap: .3125rem; padding: 1.125rem 1.25rem;
                      border-block-start: 1px solid var(--border); }
.opening__yr { color: var(--accent-text); font-weight: 700; font-size: 1.125rem;
               font-variant-numeric: tabular-nums; }
.opening figcaption b { color: var(--fg-strong); font-size: 1.0625rem; line-height: 1.5; }
.opening figcaption small { color: var(--fg-muted); font-size: .875rem; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════════
   شريط «عن المدينة» — أُعيد تركيبه 2026-11-17

   كان يستعمل `.sec-head` العام، وهو صفٌّ مرن يضع العنوان في طرفٍ والنصّ في
   الطرف المقابل. يصلح لترويسة قسمٍ عريض ولا يصلح هنا: عند العروض المتوسطة
   ينضغط عمود العنوان فينكسر «عن المدينة» سطرين، ويبقى النصّ معلّقًا في
   الطرف الآخر — فيُقرأ الشريط كتلًا متناثرة لا نصًّا (ملاحظة المستخدم).

   الآن ثلاث طبقات: نصٌّ وصورة جنبًا إلى جنب، ثم الأرقام شريطًا بعرض الصفحة.
   ══════════════════════════════════════════════════════════════════════ */
.aboutband__top { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); align-items: center; }
@media (min-width: 981px) {
  .aboutband__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.aboutband__tx h2 { font-size: var(--step-3); margin: 0 0 .875rem; color: #fff; }
/* عرضٌ مريح للقراءة: السطر الطويل في شريطٍ عريض يُتعب العين ولو اتّسع المكان */
.aboutband__lead { max-width: 54ch; margin: 0 0 1.5rem; line-height: 1.95;
                   color: var(--kamc-text-body-dk); font-size: 1.0625rem; }
.aboutband__links { margin: 0; }
/* المداخل شبكةٌ متساوية لا صفٌّ يلتفّ: أربعةٌ بأطوالٍ مختلفة تلتفّ ثلاثةً
   وواحدًا، فيبدو الأخير شاردًا — وهو ما يجعل الشريط يُقرأ غير منظَّم. */
@media (min-width: 681px) {
  .aboutband__links { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
  .aboutband__links .chip { justify-content: space-between; width: 100%; }
}

/* الأرقام شريطٌ بعرض الصفحة تحت الطبقتين: تأخذ عرضها كاملًا فتبقى أربعةً
   متجاورة بأرقامها الكبيرة، بدل 2×2 محشورةٍ في نصف الشريط. */
.aboutband__stats { margin-block-start: clamp(2rem, 4vw, 3rem);
                    padding-block-start: clamp(1.5rem, 3vw, 2.25rem);
                    border-block-start: 1px solid rgba(255,255,255,.16); }

.aboutband__fig { margin: 0; }
.aboutband__fig picture, .aboutband__fig img { display: block; width: 100%; height: auto;
      border-radius: var(--radius-lg); }
/* إطارٌ فاتح على الكحلي وظلٌّ خافت: الصورة تبرز عن الخلفية ولا تُقصّ */
.aboutband__fig img { border: 1px solid rgba(255,255,255,.22);
      box-shadow: 0 18px 40px rgba(0, 0, 0, .28); background: rgba(255,255,255,.06); }
.aboutband__fig figcaption { margin-block-start: .75rem; color: var(--kamc-text-muted-dk);
      font-size: .8125rem; text-align: center; }

@media (max-width: 980px) {
  .aboutband__fig img { box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
}

/* بطاقة الافتتاح في صفحة الجوائز: أصغر قليلًا ومتوسطة (ملاحظة المستخدم
   2026-11-17) — صورةٌ تاريخيةٌ واحدة بعرض المتن كاملًا تسحب العين عن السجلّ. */
.opening { max-width: 680px; margin-inline: auto; }
