/* صفحة الملف العام — الأساس المشترك ثم عشرة أنماط مستقلة [data-style]
   كل الألوان والخطوط تأتي من themes.js → themeVars */
:root {
  --p: #1B2A4A; --on-p: #fff; --a: #C2412D; --on-a: #fff; --bg: #F4F1EA; --sf: #fff; --tx: #161B26; --mu: #545A66;
  --line: #DDD8CE; --p-soft: #E6E7EB; --a-soft: #F2D5CF; --p-ink: #1B2A4A; --a-ink: #C2412D;
  --t1: #eee; --t2: #eee; --t3: #eee; --t4: #eee;
  --font: 'Almarai', system-ui, sans-serif; --hfont: 'Alexandria', system-ui, sans-serif;
  --pattern: none; --pattern-soft: none; --img: none;
  --r: 16px; --r-lg: 24px;
  --sh: 0 1px 2px rgb(20 20 30 / .05), 0 10px 30px -10px rgb(20 20 30 / .12);
  --gap: clamp(64px, 9vw, 120px);
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 16.5px; line-height: 1.85; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--p-ink); }
h1, h2, h3 { font-family: var(--hfont); margin: 0; line-height: 1.3; font-weight: 700; color: var(--tx); }
p, ul, ol, dl, dd, figure { margin: 0; }
.ic { flex-shrink: 0; }
.spacer { flex: 1; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 3px; }

/* ——— الحالات ——— */
.state { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.state h1 { font-size: 1.6rem; margin-block-end: 8px; }
.state p { color: var(--mu); margin-block-end: 20px; }
.loader { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-block-start-color: var(--p); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— أزرار ——— */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.btn-p, .btn-o { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .98rem; transition: transform .15s, background .15s; }
.btn-p { background: var(--p); color: var(--on-p); }
.btn-o { border: 1.5px solid currentColor; color: var(--tx); }
.btn-p:hover, .btn-o:hover { transform: translateY(-1px); }

/* ——— عناصر الغلاف المشتركة ——— */
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--a-ink); margin-block-end: 10px; }
.role { font-size: clamp(1.05rem, .6vw + .95rem, 1.3rem); color: var(--mu); margin-block-start: 6px; }
.intro { margin-block-start: 18px; max-width: 52ch; font-size: 1.05rem; color: var(--mu); }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--p-soft); color: var(--tx); font-size: .88rem; line-height: 1.6; }
.p-avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--sf); }
.p-avatar.fallback { display: grid; place-items: center; font-family: var(--hfont); font-size: 2.6rem; font-weight: 700; color: var(--p-ink); background: var(--a-soft); }

/* 1) غلاف بانر */
.hero-banner { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-banner .hero-bg { position: absolute; inset: 0; z-index: -1; background-color: var(--p); background-image: var(--pattern); }
[data-img="1"] .hero-banner .hero-bg { background-image: linear-gradient(to top, color-mix(in srgb, var(--p) 92%, black) 8%, color-mix(in srgb, var(--p) 55%, transparent) 60%, rgb(0 0 0 / .15)), var(--img); background-size: cover; background-position: center; }
.hero-banner .hero-in { max-width: var(--wrap); margin-inline: auto; padding: clamp(110px, 18vw, 220px) 20px clamp(36px, 5vw, 56px); display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; }
.hero-banner h1 { color: inherit; font-size: clamp(2rem, 4.5vw + .5rem, 3.6rem); line-height: 1.2; }
.hero-banner .role { color: inherit; opacity: .9; }
.hero-banner .eyebrow { color: var(--a); }
.hero-banner .facts li { background: rgb(255 255 255 / .14); color: #fff; backdrop-filter: blur(6px); }
.hero-banner .p-avatar { border: 4px solid var(--a); width: clamp(104px, 14vw, 150px); height: clamp(104px, 14vw, 150px); }
.hero-banner .hero-text { flex: 1; min-width: 240px; }

/* 2) غلاف منقسم بإطار صورة */
.hero-split .hero-in { max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 7vw, 96px) 20px clamp(32px, 5vw, 64px); display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-split .hero-in { grid-template-columns: 1.1fr .9fr; } }
.hero-split h1 { font-size: clamp(2.3rem, 5vw + .5rem, 4.4rem); line-height: 1.15; }
.hero-media { position: relative; justify-self: center; width: min(100%, 440px); }
@media (max-width: 899px) { .hero-media { order: -1; width: min(78%, 320px); } .hero-split .hero-in { padding-block-start: 32px; } }
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--a-soft); }
.frame-img { width: 100%; height: 100%; object-fit: cover; }
.frame-fill { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--hfont); font-size: 6rem; color: var(--p-ink); background: var(--p-soft); background-image: var(--pattern-soft); }
.p-avatar.badge { position: absolute; inset-block-end: -18px; inset-inline-end: -10px; width: 112px; height: 112px; border: 5px solid var(--bg); box-shadow: var(--sh); }

/* 3) بنتو */
.hero-bento { max-width: var(--wrap); margin-inline: auto; padding: clamp(20px, 4vw, 40px) 16px 0; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "img img" "s1 s2" "s3 facts" "about about"; }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; grid-template-areas: "name name img img" "name name img img" "s1 s2 about about" "s3 facts about about"; }
}
.tile { border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); background: var(--sf); color: var(--tx); text-decoration: none; position: relative; overflow: hidden; }
.t-name { grid-area: name; background: var(--p); color: var(--on-p); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 280px; }
.t-name h1 { color: inherit; font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.15; }
.t-name .role { color: inherit; opacity: .85; }
.t-name .eyebrow { color: var(--a); }
.t-name .p-avatar { width: 84px; height: 84px; border: 3px solid var(--a); }
.t-img { grid-area: img; padding: 0; min-height: 240px; background: var(--a-soft); }
.t-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-img-fill { position: absolute; inset: 0; display: grid; place-items: center; color: var(--p-ink); opacity: .5; }
.t-stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; transition: transform .2s; }
.t-stat:hover { transform: translateY(-3px); }
.t-stat b { font-family: var(--hfont); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.t-stat b small { font-size: .45em; opacity: .7; }
.t-stat span { font-weight: 700; font-size: .92rem; }
.c1 { grid-area: s1; background: var(--t1); } .c2 { grid-area: s2; background: var(--t2); } .c3 { grid-area: s3; background: var(--t3); }
.t-about { grid-area: about; background: var(--t4); display: flex; align-items: center; font-size: 1.08rem; line-height: 1.9; }
.t-facts { grid-area: facts; display: flex; align-items: center; }
.t-facts .facts { margin: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
.t-facts .facts li { background: transparent; padding: 0; }

/* 4) غلاف طباعي ضخم */
.hero-type .hero-in { max-width: var(--wrap); margin-inline: auto; padding: clamp(28px, 5vw, 56px) 20px 0; }
.topline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; font-weight: 700; padding-block: 12px; border-block: 2px solid var(--tx); }
.mega { font-size: clamp(3rem, 10vw, 8.4rem); line-height: 1.05; padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); font-weight: 800; }
.mega .dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--a); margin-inline-start: .08em; vertical-align: baseline; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-block-start: 1px solid var(--line); }
.meta > div { padding: 14px 0; border-block-end: 1px solid var(--line); }
.meta dt { font-size: .8rem; color: var(--mu); }
.meta dd { font-weight: 700; font-size: 1.02rem; }
.strip { margin-block-start: clamp(24px, 4vw, 40px); aspect-ratio: 21 / 8; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ——— التنقل ——— */
.p-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-block-end: 1px solid var(--line); margin-block-start: clamp(24px, 4vw, 40px); }
.p-nav-in { max-width: var(--wrap); margin-inline: auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.p-brand { display: none; font-family: var(--hfont); font-weight: 700; color: var(--tx); text-decoration: none; white-space: nowrap; }
@media (min-width: 900px) { .p-brand { display: block; } }
.p-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-inline-start: auto; }
.p-nav ul::-webkit-scrollbar { display: none; }
.p-nav a[data-sec] { display: block; padding: 16px 12px; color: var(--mu); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; border-block-end: 2.5px solid transparent; }
.p-nav a[data-sec]:hover { color: var(--tx); }
.p-nav a.active { color: var(--tx); border-color: var(--a); }

/* ——— الأقسام المشتركة ——— */
.p-main { max-width: var(--wrap); margin-inline: auto; padding: 0 20px; }
.sec { padding-block-start: var(--gap); }
.sec:last-of-type { padding-block-end: var(--gap); }
.sec-head { display: flex; align-items: center; gap: 14px; margin-block-end: 28px; }
.sec-head h2 { font-size: calc(clamp(2rem, 2.4vw + 1.2rem, 2.9rem) * var(--hs, 1)); line-height: 1.3; }
.kicker { display: block; color: var(--a-ink); font-weight: 700; font-size: .9rem; line-height: 1.6; }
.sec-num { display: none; }
.sec-head .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--p-soft); color: var(--p-ink); display: grid; place-items: center; flex-shrink: 0; }

.box { background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(20px, 3vw, 34px); }
.box h3 { font-size: calc(1.4rem * var(--hs, 1)); display: flex; align-items: center; gap: 10px; margin-block-end: 10px; padding-block-end: 12px; border-block-end: 2px solid var(--a-soft); color: var(--p-ink); line-height: 1.4; }
.box h3 .ic { width: 22px; height: 22px; }
.prose { font-size: 1.08rem; line-height: 2; }
.prose p { max-width: 70ch; }
.prose p + p { margin-block-start: 1em; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-block-start: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
.stat b { display: block; font-family: var(--hfont); font-size: 2.3rem; line-height: 1.15; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; color: var(--mu); }
.stat span { color: var(--mu); font-size: .9rem; font-weight: 700; }

.about-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-block-start: 16px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; padding: 12px 0; border-block-end: 1px dashed var(--line); }
.timeline li:last-child { border: 0; }
.timeline b { font-weight: 700; line-height: 1.6; }
.timeline small { grid-column: 1; color: var(--mu); font-size: .88rem; }
.timeline .yr { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--a-ink); font-weight: 700; font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.vm { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm .box { font-size: 1.08rem; line-height: 2; }
.vm h3 { font-size: calc(1.6rem * var(--hs, 1)); color: var(--tx); margin-block: 14px 8px; border: 0; padding: 0; }
.vm-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--a-soft); color: var(--a-ink); }

.goals { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: g; }
@media (min-width: 760px) { .goals { grid-template-columns: 1fr 1fr; } }
.goals li { counter-increment: g; display: flex; gap: 16px; align-items: flex-start; background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 22px; }
.goals li::before { content: counter(g, decimal-leading-zero); flex-shrink: 0; font-family: var(--hfont); font-weight: 800; font-size: 1.6rem; line-height: 1.2; color: var(--a-ink); font-variant-numeric: tabular-nums; }

/* شواهد الأداء */
.crit-list { display: grid; gap: 10px; }
.crit { background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.crit summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.crit summary::-webkit-details-marker { display: none; }
.crit .n { width: 42px; height: 42px; border-radius: 12px; background: var(--p-soft); color: var(--p-ink); display: grid; place-items: center; font-weight: 800; font-family: var(--hfont); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.crit[open] .n { background: var(--p); color: var(--on-p); }
.crit .t { flex: 1; min-width: 0; }
.crit .t b { display: block; font-weight: 700; font-size: 1.04rem; line-height: 1.5; }
.crit .t small { color: var(--mu); font-size: .85rem; }
.crit .chev { width: 12px; height: 12px; border-inline-end: 2px solid var(--mu); border-block-end: 2px solid var(--mu); transform: rotate(45deg); transition: transform .2s; margin-inline-end: 4px; }
.crit[open] .chev { transform: rotate(-135deg); }
.ev-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 2px 22px 22px; }
.ev { border-radius: calc(var(--r) - 4px); overflow: hidden; background: var(--bg); display: flex; flex-direction: column; border: 1px solid var(--line); padding: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ev:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgb(0 0 0 / .3); }
.ev-media { position: relative; }
.ev-count { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font-size: .8rem; font-weight: 700; }
.ev .go { font-weight: 700; color: var(--p-ink); }
.ev-courses .ev-media { background: var(--a-soft); color: var(--a-ink); }
.ev-media { aspect-ratio: 16 / 10; background: var(--p-soft); display: grid; place-items: center; color: var(--p-ink); overflow: hidden; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ev:hover .ev-media img { transform: scale(1.04); }
.ev-body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; align-content: start; }
.ev-body b { font-weight: 700; line-height: 1.55; }
.ev-body p { color: var(--mu); font-size: .9rem; line-height: 1.75; }
.ev-body .meta { display: flex; align-items: center; gap: 8px; margin-block-start: 6px; font-size: .82rem; color: var(--mu); }
.ev-body a { font-weight: 700; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ev-empty { padding: 0 22px 20px; color: var(--mu); font-size: .95rem; }

.ach-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ach { background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.ach > img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; cursor: zoom-in; }
.ach-ico { height: 96px; background: var(--a-soft); color: var(--a-ink); display: grid; place-items: center; }
.ach .b { padding: 18px 20px 20px; display: grid; gap: 4px; }
.ach b { font-weight: 700; font-size: 1.05rem; line-height: 1.55; }
.ach p { color: var(--mu); font-size: .92rem; }
.ach time { color: var(--a-ink); font-size: .82rem; font-weight: 700; }

.contact { display: flex; flex-wrap: wrap; gap: 10px; }
.contact a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--sf); box-shadow: var(--sh); text-decoration: none; font-weight: 700; color: var(--tx); }
.empty-note { color: var(--mu); padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); }

.p-foot { text-align: center; padding: 32px 20px 40px; color: var(--mu); font-size: .88rem; border-block-start: 1px solid var(--line); }
.p-foot a { color: inherit; font-weight: 700; }
.tools { position: fixed; inset-block-end: 16px; inset-inline-end: 16px; display: flex; gap: 8px; z-index: 30; }
.tools button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--p); color: var(--on-p); box-shadow: 0 6px 20px rgb(0 0 0 / .2); display: grid; place-items: center; cursor: pointer; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92dvh; }
.lightbox::backdrop { background: rgb(0 0 0 / .86); }
.lightbox img { max-width: 96vw; max-height: 88dvh; border-radius: 8px; }
.lightbox button { position: fixed; inset-block-start: 16px; inset-inline-start: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; cursor: pointer; display: grid; place-items: center; }

/* ═══════════════════════ الأنماط ═══════════════════════ */

/* ——— عصري ——— */
[data-style="modern"] { --r: 18px; }

/* ——— ناعم بإطار مقوّس ——— */
[data-style="petals"] { --r: 26px; --sh: 0 2px 4px color-mix(in srgb, var(--p) 6%, transparent), 0 18px 40px -16px color-mix(in srgb, var(--p) 28%, transparent); }
[data-style="petals"] .hero-split { background: radial-gradient(60% 60% at 15% 30%, var(--a-soft), transparent 70%), radial-gradient(40% 50% at 95% 90%, var(--p-soft), transparent 70%); }
[data-style="petals"] .hero-split h1 { font-weight: 700; color: var(--p-ink); }
[data-style="petals"] .frame { border-radius: 999px 999px 32px 32px; box-shadow: var(--sh); }
[data-style="petals"] .hero-media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: 999px 999px 32px 32px; background: var(--a); opacity: .45; z-index: -1; }
[data-style="petals"] .hero-media { z-index: 0; }
[data-style="petals"] .facts li { background: var(--sf); box-shadow: var(--sh); }
[data-style="petals"] .sec-head { flex-direction: column; text-align: center; gap: 8px; }
[data-style="petals"] .sec-head .ico { border-radius: 50%; background: var(--a-soft); color: var(--p-ink); }
[data-style="petals"] .sec-head h2 { color: var(--p-ink); }
[data-style="petals"] .goals li::before { color: var(--p-ink); }

/* ——— أقواس وزخرفة ——— */
[data-style="arches"] { --r: 4px; --sh: none; }
[data-style="arches"] .hero-split { background-color: var(--bg); background-image: linear-gradient(to bottom, transparent 70%, var(--bg)), var(--pattern-soft); }
[data-style="arches"] .hero-split h1 { font-weight: 700; }
[data-style="arches"] .frame { border-radius: 999px 999px 0 0; }
[data-style="arches"] .hero-media::after { content: ''; position: absolute; inset: -14px; border: 1.5px solid var(--a); border-radius: 999px 999px 0 0; pointer-events: none; }
[data-style="arches"] .btn-p, [data-style="arches"] .btn-o { border-radius: 4px; }
[data-style="arches"] .facts li { border-radius: 4px; background: transparent; border: 1px solid var(--line); }
[data-style="arches"] .box, [data-style="arches"] .stat, [data-style="arches"] .goals li, [data-style="arches"] .crit, [data-style="arches"] .ach { border: 1px solid var(--line); }
[data-style="arches"] .sec-head { flex-direction: column; text-align: center; gap: 4px; }
[data-style="arches"] .sec-head .ico { background: none; color: var(--a-ink); width: auto; height: auto; }
[data-style="arches"] .sec-head h2::after { content: ''; display: block; width: 120px; height: 10px; margin: 14px auto 0; background: linear-gradient(var(--a), var(--a)) center / 100% 1px no-repeat, radial-gradient(circle, var(--a) 4px, transparent 5px) center / 10px 10px no-repeat; }
[data-style="arches"] .crit .n { border-radius: 50% 50% 4px 4px; }
[data-style="arches"] .vm .box { text-align: center; padding-block-start: 40px; border-radius: 999px 999px 4px 4px; }
[data-style="arches"] .vm-ico { margin-inline: auto; }

/* ——— دفتر ملاحظات ——— */
[data-style="notebook"] { --r: 6px; --sh: 0 1px 2px rgb(0 0 0 / .06), 0 8px 18px -8px rgb(0 0 0 / .18); }
[data-style="notebook"] body { background-color: var(--bg); background-image: radial-gradient(color-mix(in srgb, var(--tx) 14%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; }
[data-style="notebook"] h1, [data-style="notebook"] .sec-head h2 { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--a) 70%, transparent) 58%, color-mix(in srgb, var(--a) 70%, transparent) 90%, transparent 90%); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-style="notebook"] .hero-split h1 { line-height: 1.35; }
[data-style="notebook"] .eyebrow { display: block; }
[data-style="notebook"] .box { line-height: 34px; padding-block: 30px; }
[data-style="notebook"] .sec-head > div { display: grid; justify-items: start; }
[data-style="notebook"] .hero-text h1 + .role { margin-block-start: 14px; }
[data-style="notebook"] .frame { background: #fff; padding: 14px 14px 64px; transform: rotate(-3deg); box-shadow: var(--sh); aspect-ratio: 4 / 4.8; }
[data-style="notebook"] .frame-img { height: 100%; }
[data-style="notebook"] .frame::before { content: ''; position: absolute; inset-block-start: -12px; inset-inline-start: 50%; translate: 50% 0; width: 110px; height: 30px; background: color-mix(in srgb, var(--p) 45%, transparent); transform: rotate(4deg); z-index: 1; }
[data-style="notebook"] .p-avatar.badge { border-color: #fff; transform: rotate(4deg); border-radius: 8px; }
[data-style="notebook"] .box, [data-style="notebook"] .goals li { background-image: repeating-linear-gradient(transparent 0 33px, color-mix(in srgb, var(--p) 16%, transparent) 33px 34px); background-color: var(--sf); position: relative; }
[data-style="notebook"] .box::before { content: ''; position: absolute; inset-block-start: -10px; inset-inline-start: 24px; width: 86px; height: 22px; background: color-mix(in srgb, var(--a) 75%, transparent); transform: rotate(-3deg); }
[data-style="notebook"] .vm .box:nth-child(2) { transform: rotate(.6deg); }
[data-style="notebook"] .vm .box:nth-child(1) { transform: rotate(-.6deg); }
[data-style="notebook"] .sec-head .ico { background: var(--a); color: var(--tx); border-radius: 50%; transform: rotate(-6deg); }
[data-style="notebook"] .goals li::before { content: '✓'; color: var(--p-ink); font-size: 1.4rem; }
[data-style="notebook"] .crit .n { border-radius: 50%; border: 2px solid var(--p-ink); background: transparent; }
[data-style="notebook"] .crit[open] .n { background: var(--p); border-color: var(--p); }
[data-style="notebook"] .facts li { background: var(--sf); border: 1.5px dashed var(--line); }

/* ——— بنتو ——— */
[data-style="bento"] { --r: 24px; --sh: none; }
[data-style="bento"] .p-nav { margin-block-start: 14px; }
[data-style="bento"] .box, [data-style="bento"] .goals li, [data-style="bento"] .crit, [data-style="bento"] .ach, [data-style="bento"] .stat { box-shadow: none; }
[data-style="bento"] .goals li:nth-child(4n+1) { background: var(--t1); } [data-style="bento"] .goals li:nth-child(4n+2) { background: var(--t2); }
[data-style="bento"] .goals li:nth-child(4n+3) { background: var(--t3); } [data-style="bento"] .goals li:nth-child(4n+4) { background: var(--t4); }
[data-style="bento"] .goals li::before { color: var(--tx); opacity: .55; }
[data-style="bento"] .vm .box:first-child { background: var(--p); color: var(--on-p); }
[data-style="bento"] .vm .box:first-child h3 { color: inherit; }
[data-style="bento"] .vm .box:last-child { background: var(--t2); }
[data-style="bento"] .sec-head .ico { border-radius: 50%; background: var(--t1); color: var(--tx); }
[data-style="bento"] .ev { border: 0; background: var(--bg); }
[data-style="bento"] .ach:nth-child(3n+1) .ach-ico { background: var(--t1); } [data-style="bento"] .ach:nth-child(3n+2) .ach-ico { background: var(--t2); } [data-style="bento"] .ach:nth-child(3n) .ach-ico { background: var(--t3); }
[data-style="bento"] .ach-ico { color: var(--tx); }

/* ——— مرح للصغار ——— */
[data-style="playful"] { --r: 20px; --ink: var(--tx); --sh: 5px 5px 0 var(--tx); }
[data-style="playful"] .tile, [data-style="playful"] .box, [data-style="playful"] .goals li, [data-style="playful"] .crit, [data-style="playful"] .ach, [data-style="playful"] .contact a, [data-style="playful"] .stat { border: 2.5px solid var(--tx); box-shadow: var(--sh); }
[data-style="playful"] .tile { box-shadow: 6px 6px 0 var(--tx); }
[data-style="playful"] .t-name { background: var(--p); }
[data-style="playful"] .t-name .eyebrow { color: var(--on-p); opacity: .85; }
[data-style="playful"] .c1 { transform: rotate(-1.5deg); } [data-style="playful"] .c3 { transform: rotate(1.5deg); }
[data-style="playful"] .t-stat:hover { transform: rotate(0) translateY(-3px); }
[data-style="playful"] .goals li:nth-child(4n+1) { background: var(--t1); } [data-style="playful"] .goals li:nth-child(4n+2) { background: var(--t2); }
[data-style="playful"] .goals li:nth-child(4n+3) { background: var(--t3); } [data-style="playful"] .goals li:nth-child(4n+4) { background: var(--t4); }
[data-style="playful"] .goals li::before { color: var(--tx); }
[data-style="playful"] .sec-head .ico { background: var(--t1); color: var(--tx); border: 2.5px solid var(--tx); border-radius: 50%; transform: rotate(-8deg); }
[data-style="playful"] .sec-head h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem); }
[data-style="playful"] .crit .n { background: var(--t1); color: var(--tx); border: 2px solid var(--tx); border-radius: 50%; }
[data-style="playful"] .crit[open] .n { background: var(--a); color: var(--on-a); }
[data-style="playful"] .ev { border: 2px solid var(--tx); }
[data-style="playful"] .p-nav { border-block-end: 2.5px solid var(--tx); }
[data-style="playful"] .tools button { border: 2.5px solid var(--tx); box-shadow: 3px 3px 0 var(--tx); }

/* ——— تحريري (مجلة) ——— */
[data-style="editorial"] { --r: 0; --sh: none; }
[data-style="editorial"] .p-nav { margin-block-start: 0; border-block-end: 2px solid var(--tx); background: var(--bg); }
[data-style="editorial"] .p-nav a.active { border-color: var(--tx); }
@media (min-width: 900px) {
  [data-style="editorial"] .sec { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
  [data-style="editorial"] .sec-head { position: sticky; top: 90px; }
}
[data-style="editorial"] .sec { border-block-start: 1px solid var(--line); margin-block-start: var(--gap); padding-block-start: 28px; }
[data-style="editorial"] .sec:first-child { border: 0; }
[data-style="editorial"] .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
[data-style="editorial"] .sec-head .ico { display: none; }
[data-style="editorial"] .sec-num { display: block; font-family: var(--hfont); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--a-ink); font-variant-numeric: tabular-nums; }
[data-style="editorial"] .box, [data-style="editorial"] .stat, [data-style="editorial"] .goals li, [data-style="editorial"] .crit, [data-style="editorial"] .ach { background: transparent; border-block-start: 2px solid var(--tx); padding-inline: 0; }
[data-style="editorial"] .prose { font-size: 1.22rem; line-height: 2; }
[data-style="editorial"] .prose p:first-child::first-letter { font-family: var(--hfont); color: var(--a-ink); }
[data-style="editorial"] .stat b { color: var(--tx); font-size: 3rem; }
[data-style="editorial"] .crit summary { padding-inline: 0; }
[data-style="editorial"] .crit .n { background: transparent; color: var(--a-ink); border-radius: 0; width: auto; font-size: 1.5rem; }
[data-style="editorial"] .crit[open] .n { background: transparent; color: var(--a-ink); }
[data-style="editorial"] .ev-grid { padding-inline: 0; }
[data-style="editorial"] .ev { background: var(--sf); }
[data-style="editorial"] .vm .box p { font-family: var(--hfont); font-size: 1.3rem; line-height: 1.8; }
[data-style="editorial"] .ach .b { padding-inline: 0; }
[data-style="editorial"] .ach-ico { display: none; }
[data-style="editorial"] .btn-p { border-radius: 0; }
[data-style="editorial"] .strip img { filter: saturate(.85); }

/* ——— سويسري جريء ——— */
[data-style="swiss"] { --r: 0; --sh: none; }
[data-style="swiss"] .topline { border-block-width: 4px; }
[data-style="swiss"] .mega { font-weight: 800; letter-spacing: 0; }
[data-style="swiss"] .mega .dot { border-radius: 0; background: var(--a); width: .22em; height: .22em; }
[data-style="swiss"] .meta > div { border-block-end: 0; border-block-start: 4px solid var(--tx); margin-inline-end: 12px; }
[data-style="swiss"] .meta { border: 0; }
[data-style="swiss"] .strip { position: relative; aspect-ratio: 21 / 7; }
[data-style="swiss"] .strip::after { content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 22%; height: 38%; background: var(--a); mix-blend-mode: multiply; }
[data-style="swiss"] .p-nav { margin-block-start: 0; border-block-end: 4px solid var(--tx); background: var(--bg); }
[data-style="swiss"] .p-nav a.active { border-color: var(--a); color: var(--tx); }
[data-style="swiss"] .sec-head { align-items: flex-end; border-block-end: 4px solid var(--tx); padding-block-end: 12px; }
[data-style="swiss"] .sec-head .ico { display: none; }
[data-style="swiss"] .sec-num { display: block; font-family: var(--hfont); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: .85; color: var(--a); font-variant-numeric: tabular-nums; }
[data-style="swiss"] .kicker { color: var(--mu); }
[data-style="swiss"] .box, [data-style="swiss"] .stat, [data-style="swiss"] .goals li, [data-style="swiss"] .crit, [data-style="swiss"] .ach { background: var(--sf); }
[data-style="swiss"] .stat b { color: var(--tx); font-size: 3rem; }
[data-style="swiss"] .stat:first-child { background: var(--a); color: var(--on-a); }
[data-style="swiss"] .stat:first-child b, [data-style="swiss"] .stat:first-child span { color: inherit; }
[data-style="swiss"] .goals li::before { color: var(--a); font-size: 2rem; }
[data-style="swiss"] .crit .n { border-radius: 0; background: var(--tx); color: var(--bg); }
[data-style="swiss"] .crit[open] .n { background: var(--a); color: var(--on-a); }
[data-style="swiss"] .vm .box:first-child { background: var(--tx); color: var(--bg); }
[data-style="swiss"] .vm .box:first-child h3 { color: inherit; }
[data-style="swiss"] .vm-ico { border-radius: 0; background: var(--a); color: var(--on-a); }
[data-style="swiss"] .btn-p, [data-style="swiss"] .contact a { border-radius: 0; }
[data-style="swiss"] .ach-ico { background: var(--a); color: var(--on-a); }

/* ——— فاخر داكن ——— */
[data-style="luxe"] { --r: 2px; --sh: none; }
[data-style="luxe"] .hero-banner { min-height: min(86dvh, 760px); display: grid; align-items: center; text-align: center; }
[data-style="luxe"] .hero-banner .hero-bg { background-color: var(--bg); }
[data-style="luxe"][data-img="1"] .hero-banner .hero-bg { background-image: linear-gradient(to top, var(--bg) 4%, rgb(0 0 0 / .55) 60%, rgb(0 0 0 / .7)), var(--img); }
[data-style="luxe"] .hero-banner .hero-in { flex-direction: column; align-items: center; padding-block: 96px; }
[data-style="luxe"] .hero-banner .p-avatar { border: 1px solid var(--p); padding: 6px; background: transparent; }
[data-style="luxe"] .hero-banner .eyebrow { color: var(--p); display: inline-flex; align-items: center; gap: 14px; font-weight: 400; font-size: .95rem; }
[data-style="luxe"] .hero-banner .eyebrow::before, [data-style="luxe"] .hero-banner .eyebrow::after { content: ''; width: 48px; height: 1px; background: var(--p); }
[data-style="luxe"] .hero-banner h1 { color: var(--tx); font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; }
[data-style="luxe"] .hero-banner .role { color: var(--p); }
[data-style="luxe"] .hero-banner .facts { justify-content: center; }
[data-style="luxe"] .hero-banner .facts li { background: transparent; border: 1px solid color-mix(in srgb, var(--p) 40%, transparent); color: var(--tx); backdrop-filter: none; }
[data-style="luxe"] .p-nav { margin-block-start: 0; background: color-mix(in srgb, var(--bg) 85%, transparent); }
[data-style="luxe"] .p-nav a.active { color: var(--p); border-color: var(--p); }
[data-style="luxe"] .sec-head { flex-direction: column; text-align: center; gap: 6px; }
[data-style="luxe"] .sec-head .ico { background: transparent; color: var(--p); border: 1px solid color-mix(in srgb, var(--p) 45%, transparent); border-radius: 50%; }
[data-style="luxe"] .sec-head h2 { font-weight: 400; }
[data-style="luxe"] .kicker { color: var(--p); font-weight: 400; }
[data-style="luxe"] .box, [data-style="luxe"] .stat, [data-style="luxe"] .goals li, [data-style="luxe"] .crit, [data-style="luxe"] .ach { border: 1px solid color-mix(in srgb, var(--p) 22%, transparent); }
[data-style="luxe"] .stat b, [data-style="luxe"] .goals li::before, [data-style="luxe"] .vm h3, [data-style="luxe"] .box h3, [data-style="luxe"] .timeline .yr, [data-style="luxe"] .ach time { color: var(--p); }
[data-style="luxe"] .stat b, [data-style="luxe"] .goals li::before { font-weight: 400; }
[data-style="luxe"] .crit .n { background: transparent; border: 1px solid var(--p); color: var(--p); border-radius: 50%; }
[data-style="luxe"] .crit[open] .n { background: var(--p); color: var(--on-p); }
[data-style="luxe"] .vm-ico { background: transparent; border: 1px solid var(--p); color: var(--p); }
[data-style="luxe"] .ev { background: var(--bg); }
[data-style="luxe"] .ach-ico { background: transparent; color: var(--p); border-block-end: 1px solid color-mix(in srgb, var(--p) 22%, transparent); }
[data-style="luxe"] .contact a { background: transparent; border: 1px solid color-mix(in srgb, var(--p) 40%, transparent); box-shadow: none; }

/* ——— أكاديمي رسمي ——— */
[data-style="academic"] { --r: 4px; --sh: 0 1px 2px rgb(0 0 0 / .05); }
[data-style="academic"] .hero-banner { color: var(--tx); padding-block-end: 0; }
[data-style="academic"] .hero-banner .hero-bg { height: 260px; background-color: var(--p); background-image: var(--pattern); }
[data-style="academic"][data-img="1"] .hero-banner .hero-bg { background-image: linear-gradient(color-mix(in srgb, var(--p) 82%, transparent), color-mix(in srgb, var(--p) 82%, transparent)), var(--img); background-size: cover; background-position: center; }
[data-style="academic"] .hero-banner .hero-in { flex-direction: column; align-items: center; text-align: center; padding-block: 130px 0; }
[data-style="academic"] .hero-banner .hero-text { background: var(--sf); width: min(100%, 760px); padding: 84px clamp(20px, 4vw, 48px) 34px; margin-block-start: -76px; outline: 1px solid var(--a); outline-offset: -10px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .25); }
[data-style="academic"] .hero-banner .p-avatar { position: relative; z-index: 1; border: 5px solid var(--sf); outline: 2px solid var(--a); }
[data-style="academic"] .hero-banner h1 { font-size: clamp(1.9rem, 3.5vw + .5rem, 3rem); color: var(--p-ink); }
[data-style="academic"] .hero-banner .role { color: var(--mu); opacity: 1; }
[data-style="academic"] .hero-banner .eyebrow { color: var(--a-ink); }
[data-style="academic"] .hero-banner .facts { justify-content: center; }
[data-style="academic"] .hero-banner .facts li { background: var(--p-soft); color: var(--tx); backdrop-filter: none; }
[data-style="academic"] .box, [data-style="academic"] .stat, [data-style="academic"] .goals li, [data-style="academic"] .crit, [data-style="academic"] .ach { border: 1px solid var(--line); border-block-start: 3px solid var(--p); }
[data-style="academic"] .sec-head .ico { background: var(--p); color: var(--a); border-radius: 4px; background-image: var(--pattern); }
[data-style="academic"] .goals li::before { color: var(--p-ink); }
[data-style="academic"] .crit .n { border-radius: 4px; }
[data-style="academic"] .vm-ico { background: var(--p); color: var(--a); border-radius: 4px; }

/* ——— بطاقة تعريف ——— */
[data-style="card"] { --r: 22px; --wrap: 860px; --sh: 0 1px 2px rgb(0 0 0 / .04), 0 14px 36px -14px color-mix(in srgb, var(--p) 30%, transparent); }
.hc-cover { height: clamp(200px, 30vw, 320px); background-color: var(--p); background-image: var(--pattern); }
[data-img="1"] .hc-cover { background-image: linear-gradient(to top, color-mix(in srgb, var(--p) 45%, transparent), transparent 60%), var(--img); background-size: cover; background-position: center; }
.hc-card { position: relative; max-width: 640px; margin-block-start: -110px; margin-inline: max(16px, calc((100% - 640px) / 2)); background: var(--sf); border-radius: 30px; box-shadow: var(--sh); text-align: center; padding: 0 clamp(18px, 4vw, 40px) 34px; }
.hc-card .p-avatar { display: block; width: 132px; height: 132px; margin: 0 auto; translate: 0 -50%; margin-block-end: -48px; border: 6px solid var(--sf); box-shadow: var(--sh); }
.hc-card .p-avatar.fallback { display: grid; }
.hc-card h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); }
.hc-card .intro { margin-inline: auto; }
.hc-card .facts, .hc-card .ctas { justify-content: center; }
[data-style="card"] .p-nav ul { margin-inline: auto; }
[data-style="card"] .p-brand { display: none; }
[data-style="card"] .sec-head { flex-direction: column; text-align: center; gap: 8px; }
[data-style="card"] .sec-head .ico { border-radius: 50%; background: var(--a-soft); color: var(--p-ink); }
[data-style="card"] .about-grid, [data-style="card"] .goals { grid-template-columns: 1fr; }
[data-style="card"] .contact { justify-content: center; }

/* ——— تدرّج ناعم ——— */
[data-style="mesh"] { --r: 24px; --sh: 0 1px 2px rgb(0 0 0 / .04), 0 10px 30px -12px rgb(0 0 0 / .12); }
.hero-mesh { background:
  radial-gradient(40% 55% at 15% 18%, var(--t1), transparent 70%),
  radial-gradient(38% 50% at 88% 12%, var(--t2), transparent 70%),
  radial-gradient(45% 55% at 75% 70%, var(--t3), transparent 70%),
  radial-gradient(40% 50% at 8% 80%, var(--t4), transparent 70%), var(--bg); }
.hero-mesh .hero-in { max-width: var(--wrap); margin-inline: auto; padding: clamp(48px, 8vw, 104px) 20px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mesh .p-avatar { width: 96px; height: 96px; border: 4px solid var(--sf); box-shadow: var(--sh); margin-block-end: 18px; }
.hero-mesh h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.12; }
.hero-mesh .facts, .hero-mesh .ctas { justify-content: center; }
.hero-mesh .facts li { background: color-mix(in srgb, var(--sf) 75%, transparent); }
.mesh-img { margin-block-start: clamp(32px, 5vw, 56px); width: 100%; aspect-ratio: 21 / 8; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35); }
.mesh-img img { width: 100%; height: 100%; object-fit: cover; }
[data-style="mesh"] .sec-head { flex-direction: column; text-align: center; gap: 8px; }
[data-style="mesh"] .sec-head .ico { border-radius: 50%; background: var(--t1); color: var(--tx); }
[data-style="mesh"] .stat { box-shadow: none; }
[data-style="mesh"] .stat:nth-child(1) { background: var(--t1); } [data-style="mesh"] .stat:nth-child(2) { background: var(--t2); }
[data-style="mesh"] .stat:nth-child(3) { background: var(--t3); } [data-style="mesh"] .stat:nth-child(4) { background: var(--t4); }
[data-style="mesh"] .stat b { color: var(--tx); }
[data-style="mesh"] .vm .box { box-shadow: none; }
[data-style="mesh"] .vm .box:first-child { background: linear-gradient(135deg, var(--t1), var(--t2)); }
[data-style="mesh"] .vm .box:last-child { background: linear-gradient(135deg, var(--t3), var(--t4)); }


/* ——— الدورات التدريبية ——— */
.csum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-block-end: 16px; }
.csum > div { background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 22px; }
.csum b { display: block; font-family: var(--hfont); font-size: 2rem; line-height: 1.2; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.csum span { color: var(--mu); font-size: .9rem; font-weight: 700; }
.csearch { position: relative; display: block; margin-block-end: 14px; }
.csearch .ic { position: absolute; inset-inline-start: 16px; inset-block-start: 50%; translate: 0 -50%; color: var(--mu); }
.csearch input { width: 100%; min-height: 50px; padding-inline: 46px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sf); color: var(--tx); font: inherit; }
.csearch input:focus { outline: none; border-color: var(--p-ink); }
.clist { padding-block: 8px; }
.cgroup + .cgroup { margin-block-start: 6px; }
.box .cyear { display: flex; align-items: baseline; gap: 10px; font-size: calc(1.35rem * var(--hs, 1)); color: var(--p-ink); padding-block: 14px 6px; margin: 0; border-block-end: 2px solid var(--a-soft); }
.cyear small { font-family: var(--font); font-size: .85rem; font-weight: 700; color: var(--mu); }
.cgroup ul { list-style: none; padding: 0; margin: 0; }
.crow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-block-end: 1px dashed var(--line); }
.crow:last-child { border: 0; }
.ct { flex: 1; min-width: 0; display: grid; }
.ct b { font-weight: 700; line-height: 1.6; }
.ct small { color: var(--mu); font-size: .88rem; }
.ch { flex-shrink: 0; font-size: .82rem; font-weight: 700; color: var(--a-ink); background: var(--a-soft); padding: 2px 12px; border-radius: 999px; white-space: nowrap; }
.crow.hit b { color: var(--p-ink); }
.courses:not(.all):not(.searching) .more { display: none; }
.cnone { color: var(--mu); padding: 12px 0; }
.cmore { margin-block-start: 14px; cursor: pointer; background: var(--sf); font: inherit; font-weight: 700; }
.courses.searching .cmore { display: none; }

/* ——— عارض الشاهد ——— */
.ev-view { border: 0; padding: 0; margin: 0; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; }
.ev-view::backdrop { background: rgb(10 10 20 / .6); backdrop-filter: blur(3px); }
.evv { position: absolute; inset: 0; margin: auto; width: min(980px, 100%); height: 100%; background: var(--bg); color: var(--tx); display: flex; flex-direction: column; font-family: var(--font); }
@media (min-width: 760px) { .evv { height: calc(100% - 48px); inset-block: 24px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); } }
.evv-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--sf); border-block-end: 1px solid var(--line); font-size: .9rem; font-weight: 700; color: var(--mu); }
.evv-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evv-close { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--p-soft); color: var(--p-ink); display: grid; place-items: center; cursor: pointer; }
.evv-body { flex: 1; overflow-y: auto; padding: clamp(20px, 4vw, 40px); overscroll-behavior: contain; }
.evv-head { margin-block-end: 24px; }
.evv-crit { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--a-ink); background: var(--a-soft); padding: 2px 12px; border-radius: 999px; }
.evv-head h2 { font-size: calc(clamp(1.7rem, 2.5vw + 1rem, 2.4rem) * var(--hs, 1)); margin-block: 10px 6px; }
.evv-head time { display: inline-flex; align-items: center; gap: 6px; color: var(--mu); font-size: .9rem; }
.evv-desc { margin-block-start: 14px; font-size: 1.06rem; line-height: 2; max-width: 70ch; }
.evv-toc { background: var(--sf); border-radius: var(--r); padding: 16px 20px; margin-block-end: 24px; box-shadow: var(--sh); }
.evv-toc b { display: block; margin-block-end: 8px; }
.evv-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.evv-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--p-soft); color: var(--tx); text-decoration: none; font-weight: 700; font-size: .9rem; }
.att { background: var(--sf); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; scroll-margin-top: 16px; }
.att + .att { margin-block-start: 18px; }
.att-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-block-end: 1px solid var(--line); }
.att-n { width: 32px; height: 32px; border-radius: 50%; background: var(--p); color: var(--on-p); display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.att-head h3 { flex: 1; font-size: calc(1.2rem * var(--hs, 1)); line-height: 1.4; }
.att-type { font-size: .78rem; font-weight: 700; color: var(--mu); border: 1px solid var(--line); padding: 1px 10px; border-radius: 999px; }
.att-img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--p-soft); cursor: zoom-in; }
.att-frame { display: block; width: 100%; height: 72vh; border: 0; background: #fff; }
.att-file { display: grid; place-items: center; gap: 6px; padding: 40px 20px; color: var(--p-ink); background: var(--p-soft); font-weight: 700; }
.att-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; }
.att-actions .btn-o { min-height: 40px; padding: 0 18px; font-size: .9rem; }

/* ——— الوضع الداكن العام ——— */
[data-scheme="dark"] .facts li { background: color-mix(in srgb, var(--tx) 10%, transparent); }

/* ——— الطباعة / PDF ——— */
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  .p-nav, .tools, .ctas { display: none !important; }
  .hero, .tile, .stat, .box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  [data-style="luxe"] .hero-banner { min-height: 0; }
  .sec { padding-block-start: 28px; }
  .box, .stat, .crit, .ach, .goals li { box-shadow: none !important; }
  .ev, .ach, .goals li { break-inside: avoid; }
}
