/* ===================== الأساس ===================== */
:root {
    --paper: oklch(0.982 0.004 110);
    --paper-side: oklch(0.962 0.006 110);
    --ink: oklch(0.24 0.014 190);
    --ink-strong: oklch(0.17 0.016 190);
    --muted: oklch(0.47 0.014 190);
    --faint: oklch(0.62 0.012 190);
    --line: oklch(0.885 0.008 110);
    --line-soft: oklch(0.92 0.006 110);
    --green: oklch(0.46 0.1 160);
    --green-deep: oklch(0.36 0.09 162);
    --green-soft: oklch(0.945 0.022 160);
    --green-mist: oklch(0.97 0.012 160);
    --amber: oklch(0.72 0.11 80);
    --font-display: "Alexandria", "Segoe UI", "Arial", sans-serif;
    --font-body: "Readex Pro", "Segoe UI", "Arial", sans-serif;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --toc-w: 296px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--green);
    color: oklch(0.98 0.005 160);
}

b,
strong {
    font-weight: 600;
    color: var(--ink-strong);
}

i {
    font-style: normal;
}

.num,
.figure {
    font-variant-numeric: tabular-nums lining-nums;
}

/* ===================== الهيكل العام ===================== */
.deck {
    height: 100%;
    display: grid;
    grid-template-columns: var(--toc-w) 1fr;
    /* في RTL: العمود الأول يمين */
}

/* ===================== الفهرس (يمين) ===================== */
.toc {
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid var(--line);
    background: var(--paper-side);
    min-height: 0;
}

.toc-brand {
    padding: 26px 26px 20px;
    border-bottom: 1px solid var(--line);
}

.toc-brand .mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--ink-strong);
    letter-spacing: -0.01em;
}

.toc-brand .mark .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    flex: 0 0 auto;
}

.toc-brand .sub {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.toc-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 0 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.toc-sec {
    padding: 16px 26px 7px;
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.toc-nav button {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    padding: 7px 26px;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.87rem;
    font-weight: 400;
    color: var(--muted);
    text-align: start;
    transition: color 0.18s ease, background 0.18s ease;
    position: relative;
}

.toc-nav button i {
    font-size: 0.7rem;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
    transition: color 0.18s ease;
}

.toc-nav button:hover {
    color: var(--ink-strong);
    background: oklch(0.945 0.008 110);
}

.toc-nav button.on {
    color: var(--ink-strong);
    font-weight: 600;
}

.toc-nav button.on i {
    color: var(--green);
    font-weight: 600;
}

.toc-nav button.on::before {
    content: "";
    position: absolute;
    inset-inline-start: 11px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--green);
}

.toc-nav button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

.toc-foot {
    border-top: 1px solid var(--line);
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--faint);
    font-size: 0.74rem;
    font-weight: 400;
}

.toc-foot .counter {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-weight: 600;
}

kbd {
    font-family: var(--font-body);
    font-size: 0.68rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 5px;
    background: var(--paper);
    color: var(--muted);
}

/* ===================== المسرح والشرائح ===================== */
.stage {
    position: relative;
    min-width: 0;
    background: var(--paper);
}

.progress {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    z-index: 6;
    background: var(--line-soft);
}

.progress span {
    display: block;
    height: 100%;
    background: var(--green);
    transform-origin: right center;
    transform: scaleX(0.05);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
    position: absolute;
    inset: 0;
    padding: clamp(38px, 5.2vh, 72px) clamp(34px, 5vw, 92px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.slide.on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.slide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(20px, 4vh, 44px);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.86rem;
}

.kicker::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--green);
}

.slide-head .pagenum {
    color: var(--faint);
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

/* التمركز العمودي بهوامش تلقائية: عند ضيق الارتفاع تنكمش الهوامش بدل قصّ المحتوى */
.slide-body {
    margin-block: auto;
    width: 100%;
    padding-block: 2px;
}

.s-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    line-height: 1.35;
    color: var(--ink-strong);
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin-bottom: clamp(14px, 2.6vh, 26px);
}

.lede {
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 2;
    max-width: 68ch;
    font-weight: 300;
    text-wrap: pretty;
}

.lede b {
    font-weight: 600;
}

.footnote {
    margin-top: clamp(18px, 3.4vh, 34px);
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    color: var(--faint);
    font-size: 0.82rem;
    line-height: 1.9;
    max-width: 75ch;
}

/* ظهور متدرّج للعناصر */
[data-r] {
    opacity: 0;
    transform: translateY(14px);
}

.slide.on [data-r] {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0.05s);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===================== أدوات التنقل ===================== */
.navbtns {
    position: absolute;
    z-index: 6;
    inset-inline-start: clamp(34px, 5vw, 92px);
    bottom: 26px;
    display: flex;
    gap: 8px;
}

.navbtns button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.navbtns button:hover {
    border-color: var(--green);
    background: var(--green-mist);
    transform: translateY(-2px);
}

.navbtns button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.navbtns svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===================== مكوّنات المحتوى ===================== */

/* دفتر أرقام — صفوف بمساطر */
.ledger {
    border-top: 1px solid var(--line);
}

.ledger-row {
    display: grid;
    grid-template-columns: minmax(180px, 300px) 1fr;
    gap: clamp(18px, 3.5vw, 56px);
    align-items: center;
    padding: clamp(14px, 2.6vh, 26px) 0;
    border-bottom: 1px solid var(--line);
}

.ledger-row .figure {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    color: var(--ink-strong);
    line-height: 1.15;
    white-space: nowrap;
}

.ledger-row .figure small {
    font-size: 0.45em;
    font-weight: 600;
    color: var(--muted);
    margin-inline-start: 6px;
}

.ledger-row .desc {
    color: var(--muted);
    line-height: 1.95;
    font-size: clamp(0.92rem, 1.15vw, 1.04rem);
}

.ledger-row .desc b {
    color: var(--ink-strong);
}

/* قائمة مرقّمة تحريرية */
.numlist {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.numlist>li {
    list-style: none;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: clamp(14px, 2.5vw, 34px);
    padding: clamp(14px, 2.5vh, 24px) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.numlist .n {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    color: var(--faint);
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.numlist h3 {
    font-weight: 600;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--ink-strong);
    margin-bottom: 4px;
    line-height: 1.7;
}

.numlist p {
    color: var(--muted);
    line-height: 1.9;
    font-size: clamp(0.88rem, 1.1vw, 1rem);
}

/* مسار الخطوات الخمس */
.flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: clamp(10px, 2vh, 22px);
}

.flow-step {
    flex: 1;
    position: relative;
    padding-top: 26px;
}

.flow-step::before {
    content: "";
    position: absolute;
    top: 5px;
    inset-inline-start: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--green-mist);
}

.flow-step::after {
    content: "";
    position: absolute;
    top: 10px;
    inset-inline-start: 22px;
    inset-inline-end: 10px;
    height: 2px;
    background: var(--line);
}

.flow-step:last-child::after {
    display: none;
}

.flow-step .k {
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.flow-step h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--ink-strong);
    line-height: 1.6;
}

.flow-step p {
    margin-top: 6px;
    color: var(--muted);
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    line-height: 1.85;
    padding-inline-end: 18px;
}

/* شبكة الوحدات */
.modgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-inline-start: 1px solid var(--line);
    margin-top: clamp(10px, 2vh, 20px);
}

.modgrid>div {
    border-bottom: 1px solid var(--line);
    border-inline-end: 1px solid var(--line);
    padding: clamp(18px, 3vh, 30px) clamp(14px, 1.6vw, 24px);
}

.modgrid .mi {
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.modgrid h3 {
    font-weight: 600;
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    color: var(--ink-strong);
    line-height: 1.65;
}

.modgrid p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.8;
}

/* مخطط البنية */
.arch {
    display: grid;
    gap: 14px;
    margin-top: clamp(8px, 1.6vh, 18px);
}

.arch-admin {
    border: 1px solid var(--ink);
    border-radius: 10px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--ink-strong);
    color: oklch(0.96 0.005 110);
}

.arch-admin b {
    color: inherit;
    font-weight: 600;
    font-size: 0.98rem;
}

.arch-admin span {
    font-size: 0.78rem;
    color: oklch(0.78 0.01 110);
}

.arch-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-inline: 40px;
}

.arch-links i {
    display: block;
    height: 18px;
    border-inline-start: 2px solid var(--line);
    margin: 0 auto;
    width: 2px;
}

.arch-tenants {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tenant {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    background: oklch(0.99 0.003 110);
}

.tenant b {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.tenant .dom {
    color: var(--faint);
    font-size: 0.74rem;
    direction: ltr;
    text-align: end;
    display: block;
    text-align: start;
    unicode-bidi: plaintext;
}

.tenant .db {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    color: var(--green-deep);
    font-weight: 500;
    background: var(--green-soft);
    border-radius: 999px;
    padding: 4px 12px;
}

.tenant .db::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.arch-side {
    border: 1px dashed var(--faint);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    color: var(--muted);
    background: transparent;
}

.arch-side b {
    font-size: 0.92rem;
}

.arch-side span {
    font-size: 0.8rem;
}

/* جدول رسمي */
.sheet {
    width: 100%;
    border-collapse: collapse;
    margin-top: clamp(6px, 1.4vh, 14px);
}

.sheet th {
    text-align: start;
    font-weight: 600;
    color: var(--faint);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    padding: 0 14px 12px;
    border-bottom: 1px solid var(--ink);
}

.sheet td {
    padding: clamp(11px, 1.9vh, 18px) 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.sheet .plan {
    font-weight: 600;
    color: var(--ink-strong);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
}

.sheet .price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    color: var(--ink-strong);
    white-space: nowrap;
}

.sheet .price small {
    font-size: 0.58em;
    color: var(--muted);
    font-weight: 500;
}

.sheet .who {
    color: var(--muted);
    font-size: clamp(0.84rem, 1.05vw, 0.95rem);
    line-height: 1.8;
}

.sheet tr.star td {
    background: var(--green-mist);
}

.sheet tr.star td:first-child {
    border-radius: 0 8px 8px 0;
}

.sheet tr.star td:last-child {
    border-radius: 8px 0 0 8px;
}

.tag {
    display: inline-block;
    margin-inline-start: 10px;
    background: var(--green);
    color: oklch(0.98 0.005 160);
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
    vertical-align: middle;
}

.tag.ghost {
    background: transparent;
    color: var(--green-deep);
    border: 1px solid var(--green);
}

/* شريط مزيج / توزيع */
.bar {
    display: flex;
    height: 46px;
    border-radius: 9px;
    overflow: hidden;
    margin-top: clamp(10px, 2vh, 20px);
}

.bar>div {
    display: grid;
    place-items: center;
    color: oklch(0.98 0.005 160);
    font-weight: 600;
    font-size: 0.82rem;
    min-width: 0;
}

.bar .b1 {
    background: var(--green-deep);
}

.bar .b2 {
    background: var(--green);
}

.bar .b3 {
    background: oklch(0.62 0.07 160);
}

.bar .b4 {
    background: oklch(0.78 0.045 160);
    color: var(--green-deep);
}

.bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 16px;
}

.bar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.bar-legend span i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: 0 0 auto;
}

/* أعمدة التوقعات */
.proj {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 44px);
    margin-top: clamp(8px, 1.6vh, 16px);
}

.proj-col {
    border-top: 2px solid var(--ink);
    padding-top: 16px;
}

.proj-col .when {
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 12px;
    display: block;
}

.proj-col dl {
    display: grid;
    gap: 0;
}

.proj-col dl>div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.proj-col dt {
    color: var(--muted);
    font-size: 0.88rem;
}

.proj-col dd {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-strong);
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
    white-space: nowrap;
}

.proj-col dd small {
    font-size: 0.6em;
    color: var(--muted);
    font-weight: 500;
}

.mini-compare {
    margin-top: clamp(14px, 2.4vh, 24px);
    display: grid;
    gap: 9px;
}

.mini-compare .mrow {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 14px;
}

.mini-compare .mlabel {
    color: var(--muted);
    font-size: 0.8rem;
}

.mini-compare .mtrack {
    height: 14px;
    border-radius: 4px;
    background: var(--line-soft);
    overflow: hidden;
}

.mini-compare .mfill {
    height: 100%;
    background: var(--green);
    border-radius: 4px;
}

/* خط نقطة التعادل */
.scale {
    margin-top: clamp(26px, 5vh, 52px);
    padding-bottom: 10px;
}

.scale-track {
    position: relative;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
}

.scale-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 60%;
    background: var(--green);
    border-radius: 2px;
}

.scale-marker {
    position: absolute;
    inset-inline-start: 60%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    border: 4px solid var(--paper);
    box-shadow: 0 0 0 1px var(--green);
}

.scale-cap {
    position: absolute;
    inset-inline-start: 60%;
    bottom: 26px;
    transform: translateX(50%);
    background: var(--ink-strong);
    color: oklch(0.96 0.005 110);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 7px;
}

.scale-cap::after {
    content: "";
    position: absolute;
    top: 100%;
    inset-inline-start: 50%;
    transform: translateX(50%);
    border: 6px solid transparent;
    border-top-color: var(--ink-strong);
}

.scale-nums {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--faint);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

/* التقارب نحو النواة */
.converge {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 520px;
}

.chips span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.84rem;
    color: var(--muted);
    background: oklch(0.99 0.003 110);
}

.kernel {
    width: clamp(120px, 15vw, 170px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green-mist);
    border: 1px solid var(--green);
    display: grid;
    place-items: center;
    position: relative;
}

.kernel::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px dashed var(--green);
    opacity: 0.5;
}

.kernel b {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--green-deep);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    text-align: center;
    line-height: 1.5;
}

/* قائمتا الحالة */
.status2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 44px);
    margin-top: clamp(6px, 1.2vh, 12px);
}

.status-col .sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 4px;
}

.status-col .sc-head h3 {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink-strong);
}

.status-col .sc-head span {
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 12px;
}

.status-col.live .sc-head span {
    background: var(--green-soft);
    color: var(--green-deep);
}

.status-col.wip .sc-head span {
    background: oklch(0.95 0.03 80);
    color: oklch(0.5 0.09 70);
}

.status-col ul {
    list-style: none;
}

.status-col li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: clamp(0.85rem, 1.05vw, 0.96rem);
    line-height: 1.8;
}

.status-col.live li::before {
    content: "";
    margin-top: 9px;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.status-col.wip li::before {
    content: "";
    margin-top: 9px;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 2px dashed oklch(0.62 0.1 75);
}

/* الطبقات الثلاث */
.layers {
    display: grid;
    gap: 12px;
    margin-top: clamp(8px, 1.6vh, 18px);
}

.layer {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: clamp(14px, 2vw, 28px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: clamp(14px, 2.2vh, 22px) clamp(16px, 2vw, 28px);
    background: oklch(0.99 0.003 110);
}

.layer:nth-child(2) {
    margin-inline-end: clamp(20px, 4vw, 64px);
}

.layer:nth-child(3) {
    margin-inline-end: clamp(40px, 8vw, 128px);
}

.layer .ln {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: var(--green);
    line-height: 1;
}

.layer h3 {
    font-weight: 600;
    font-size: clamp(0.98rem, 1.3vw, 1.14rem);
    color: var(--ink-strong);
    margin-bottom: 3px;
}

.layer p {
    color: var(--muted);
    font-size: clamp(0.82rem, 1vw, 0.94rem);
    line-height: 1.8;
}

.layer .lt {
    color: var(--faint);
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
}

/* بيان كبير */
.statement {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.9vw, 2.45rem);
    line-height: 1.75;
    color: var(--ink-strong);
    max-width: 21em;
    text-wrap: balance;
}

.statement em {
    font-style: normal;
    color: var(--green-deep);
    font-weight: 700;
}

/* صف التعريفَين */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 44px);
    margin-top: clamp(24px, 4.5vh, 48px);
}

.duo>div {
    border-top: 2px solid var(--ink);
    padding-top: 14px;
}

.duo b {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--ink-strong);
    display: block;
    margin-bottom: 6px;
}

.duo p {
    color: var(--muted);
    font-size: clamp(0.86rem, 1.05vw, 0.96rem);
    line-height: 1.9;
}

.duo .dom {
    display: inline-block;
    margin-top: 8px;
    color: var(--green-deep);
    font-size: 0.8rem;
    font-weight: 500;
    direction: ltr;
}

/* شريحة الغلاف */
.cover .slide-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cover-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: clamp(20px, 4vh, 40px);
}

.cover-kicker::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--green);
}

.cover h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.25;
    color: var(--ink-strong);
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35em;
}

.cover h1 .dot {
    width: 0.24em;
    height: 0.24em;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    flex: 0 0 auto;
}

.cover .statement {
    margin-top: clamp(20px, 4vh, 40px);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
    color: var(--muted);
    line-height: 2;
    max-width: 34em;
}

.cover .statement b {
    color: var(--ink-strong);
    font-weight: 600;
}

.cover-foot {
    margin-top: clamp(30px, 6vh, 64px);
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 34px;
    color: var(--muted);
    font-size: 0.88rem;
}

.cover-foot b {
    font-weight: 600;
}

.cover-foot .dom {
    color: var(--green-deep);
    direction: ltr;
}

/* شريحة الطلب الاستثماري */
.ask-hero {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: clamp(14px, 2.6vh, 26px);
}

.ask-hero .figure {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.4rem);
    color: var(--ink-strong);
    line-height: 1.1;
}

.ask-hero .unit {
    font-family: var(--font-display);
    color: var(--muted);
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.terms {
    border-top: 1px solid var(--line);
}

.terms>div {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    gap: clamp(16px, 3vw, 44px);
    padding: clamp(12px, 2.2vh, 20px) 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.terms dt {
    color: var(--faint);
    font-size: 0.86rem;
    font-weight: 500;
}

.terms dd {
    color: var(--ink-strong);
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    font-weight: 500;
    line-height: 1.8;
}

.terms dd small {
    display: block;
    color: var(--muted);
    font-weight: 300;
    font-size: 0.85em;
    margin-top: 3px;
}

/* التوزيع */
.alloc {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: clamp(8px, 1.6vh, 16px);
}

.alloc-row {
    display: grid;
    grid-template-columns: minmax(190px, 300px) 1fr 96px;
    gap: clamp(14px, 2.5vw, 36px);
    align-items: center;
    padding: clamp(10px, 1.8vh, 16px) 0;
    border-bottom: 1px solid var(--line);
}

.alloc-row .what {
    color: var(--ink-strong);
    font-weight: 500;
    font-size: clamp(0.88rem, 1.1vw, 1rem);
}

.alloc-row .track {
    height: 12px;
    border-radius: 4px;
    background: var(--line-soft);
    overflow: hidden;
}

.alloc-row .fill {
    height: 100%;
    border-radius: 4px;
    background: var(--green);
}

.alloc-row .amt {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-strong);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    white-space: nowrap;
    text-align: start;
}

.alloc-row .amt small {
    color: var(--faint);
    font-weight: 500;
    font-size: 0.68em;
    margin-inline-start: 4px;
}

/* الختام */
.contact-rows {
    border-top: 1px solid var(--line);
    margin-top: clamp(20px, 4vh, 40px);
    max-width: 720px;
}

.contact-rows>div {
    display: grid;
    grid-template-columns: minmax(130px, 190px) 1fr;
    gap: clamp(16px, 3vw, 44px);
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.contact-rows dt {
    color: var(--faint);
    font-size: 0.84rem;
}

.contact-rows dd {
    color: var(--ink-strong);
    font-weight: 500;
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
}

.contact-rows dd .ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.contact-rows a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color .18s ease, color .18s ease;
}

.contact-rows a:hover {
    color: var(--green-deep);
    border-color: var(--green);
}

/* ===================== استجابة وطباعة ===================== */
@media (max-width: 980px) {
    .deck {
        grid-template-columns: 1fr;
    }

    .toc {
        display: none;
    }

    .modgrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-tenants,
    .arch-links {
        grid-template-columns: 1fr;
    }

    .arch-links i:nth-child(n+2) {
        display: none;
    }

    .flow {
        flex-direction: column;
        gap: 18px;
    }

    .flow-step {
        padding-top: 0;
        padding-inline-start: 26px;
    }

    .flow-step::before {
        top: 6px;
    }

    .flow-step::after {
        top: 22px;
        inset-inline-start: 5px;
        inset-inline-end: auto;
        width: 2px;
        height: calc(100% + 2px);
    }

    .proj,
    .status2,
    .duo,
    .converge {
        grid-template-columns: 1fr;
    }

    .ledger-row,
    .terms>div,
    .contact-rows>div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .alloc-row {
        grid-template-columns: 1fr 80px;
    }

    .alloc-row .track {
        display: none;
    }

    .navbtns {
        bottom: 16px;
    }
}

@media (max-height: 760px) {
    .s-title {
        font-size: clamp(1.4rem, 3vw, 2rem);
        margin-bottom: 12px;
    }

    .slide-head {
        margin-bottom: 16px;
    }

    .lede {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .statement {
        font-size: clamp(1.2rem, 2.4vw, 1.8rem);
        line-height: 1.85;
    }

    .cover h1 {
        font-size: clamp(2.1rem, 5vw, 3.4rem);
    }

    .ledger-row .figure {
        font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    }

    .ask-hero .figure {
        font-size: clamp(2.4rem, 5.5vw, 4rem);
    }

    .footnote {
        margin-top: 14px;
    }
}

@media (max-height: 560px) {
    body {
        font-size: 14px;
    }

    .slide {
        padding: 26px clamp(28px, 4.5vw, 64px);
    }

    .s-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .statement {
        font-size: 1.15rem;
        line-height: 1.8;
    }

    .cover h1 {
        font-size: 2rem;
    }

    .numlist h3,
    .flow-step h3 {
        font-size: 0.95rem;
    }

    .numlist p,
    .flow-step p {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .numlist>li,
    .ledger-row {
        padding: 10px 0;
    }

    .modgrid>div {
        padding: 12px 14px;
    }

    .bar {
        height: 36px;
    }

    .navbtns {
        bottom: 12px;
    }

    .navbtns button {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }

    [data-r] {
        opacity: 1;
        transform: none;
    }
}

@media print {
    body {
        overflow: visible;
    }

    .deck {
        display: block;
    }

    .toc,
    .navbtns,
    .progress {
        display: none !important;
    }

    .stage {
        position: static;
    }

    .slide {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        page-break-after: always;
        min-height: 100vh;
        overflow: visible;
    }

    [data-r] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
/* ===================================================================
   مكوّنات خاصة بعرض الشريك التجاري
   =================================================================== */

/* --- لوح الحدود: عمود ثالث "خارج النطاق" --- */
.status-col.out .sc-head span {
    background: oklch(0.94 0.004 110);
    color: var(--faint);
}

.status-col.out li::before {
    content: "";
    margin-top: 9px;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--faint);
    opacity: .6;
}

.status-col .sc-note {
    margin-top: 14px;
    color: var(--faint);
    font-size: .8rem;
    line-height: 1.9;
}

.status-col .sc-note b {
    color: var(--muted);
    font-weight: 600;
}

/* --- جدول الأدوار: من يملك ماذا --- */
.roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 48px);
    margin-top: clamp(8px, 1.8vh, 18px);
}

.roles-col .rc-head {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 6px;
}

.roles-col .rc-head b {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--ink-strong);
    display: block;
}

.roles-col .rc-head span {
    display: block;
    margin-top: 4px;
    color: var(--faint);
    font-size: .78rem;
}

.roles-col.ours .rc-head {
    border-bottom-color: var(--green);
}

.roles-col ul {
    list-style: none;
}

.roles-col li {
    display: flex;
    align-items: start;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: clamp(.85rem, 1.05vw, .96rem);
    line-height: 1.8;
}

.roles-col li::before {
    content: "";
    margin-top: 9px;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--line);
}

.roles-col.ours li::before {
    background: var(--green);
}

/* --- بنود الاتفاق: صفوف مصطلح/قيمة --- */
.deal {
    border-top: 1px solid var(--line);
    margin-top: clamp(8px, 1.6vh, 16px);
}

.deal > div {
    display: grid;
    grid-template-columns: minmax(150px, 250px) 1fr;
    gap: clamp(16px, 3vw, 44px);
    padding: clamp(12px, 2.1vh, 19px) 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.deal dt {
    color: var(--faint);
    font-size: .86rem;
    font-weight: 500;
}

.deal dd {
    color: var(--ink-strong);
    font-size: clamp(.95rem, 1.22vw, 1.08rem);
    font-weight: 500;
    line-height: 1.8;
}

.deal dd small {
    display: block;
    color: var(--muted);
    font-weight: 300;
    font-size: .85em;
    margin-top: 3px;
}

.deal dd .open {
    display: inline-block;
    background: var(--green-mist);
    color: var(--green-deep);
    border: 1px dashed var(--green);
    border-radius: 6px;
    padding: 2px 12px;
    font-size: .82em;
    font-weight: 600;
}

/* --- الطلبات المرقّمة --- */
.asks {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: clamp(8px, 1.6vh, 16px);
}

.asks > li {
    list-style: none;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: clamp(14px, 2.2vw, 30px);
    padding: clamp(13px, 2.3vh, 22px) 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.asks .an {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 1.9vw, 1.6rem);
    color: var(--green);
    line-height: 1;
}

.asks h3 {
    font-weight: 600;
    font-size: clamp(.98rem, 1.3vw, 1.12rem);
    color: var(--ink-strong);
    margin-bottom: 3px;
    line-height: 1.65;
}

.asks p {
    color: var(--muted);
    font-size: clamp(.82rem, 1.02vw, .94rem);
    line-height: 1.8;
}

.asks .when {
    color: var(--faint);
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
}

/* --- مراحل الإطلاق --- */
.phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
    margin-top: clamp(10px, 2vh, 22px);
}

.phase {
    position: relative;
    padding-top: 26px;
}

.phase::before {
    content: "";
    position: absolute;
    top: 5px;
    inset-inline-start: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--green-mist);
}

.phase::after {
    content: "";
    position: absolute;
    top: 10px;
    inset-inline-start: 22px;
    inset-inline-end: -14px;
    height: 2px;
    background: var(--line);
}

.phase:last-child::after {
    display: none;
}

.phase .pk {
    display: block;
    margin-bottom: 6px;
    color: var(--faint);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
}

.phase h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1rem, 1.45vw, 1.24rem);
    color: var(--ink-strong);
    line-height: 1.6;
}

.phase p {
    margin-top: 7px;
    color: var(--muted);
    font-size: clamp(.82rem, 1vw, .93rem);
    line-height: 1.85;
    padding-inline-end: 14px;
}

/* --- إعادة صياغة سؤال التتبع --- */
.reframe {
    margin-top: clamp(18px, 3.4vh, 34px);
    padding: clamp(16px, 2.6vh, 26px) clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--green);
    border-radius: 12px;
    background: var(--green-mist);
}

.reframe b {
    display: block;
    color: var(--green-deep);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.reframe p {
    color: var(--ink-strong);
    font-size: clamp(.92rem, 1.18vw, 1.06rem);
    line-height: 1.95;
    max-width: 70ch;
    font-weight: 400;
}

/* --- استجابة المكوّنات الجديدة --- */
@media (max-width: 980px) {
    .roles,
    .phases {
        grid-template-columns: 1fr;
    }

    .deal > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .asks > li {
        grid-template-columns: 40px 1fr;
    }

    .asks .when {
        grid-column: 2;
    }

    .phase {
        padding-top: 0;
        padding-inline-start: 26px;
    }

    .phase::before {
        top: 6px;
    }

    .phase::after {
        top: 22px;
        inset-inline-start: 5px;
        inset-inline-end: auto;
        width: 2px;
        height: calc(100% + 2px);
    }
}

@media (max-height: 760px) {
    .roles-col li,
    .status-col li {
        padding: 7px 0;
        line-height: 1.65;
    }

    .reframe {
        padding: 14px 18px;
        margin-top: 16px;
    }

    .reframe p {
        line-height: 1.8;
    }
}

/* شريحة الحدود تحمل عمودين + إطار إعادة الصياغة — تحتاج إيقاعاً أضيق */
.slide.limits .status-col li {
    padding: 8px 0;
    line-height: 1.7;
}

.slide.limits .status-col .sc-note {
    margin-top: 11px;
    line-height: 1.8;
}

.slide.limits .reframe {
    margin-top: clamp(14px, 2.6vh, 26px);
}

/* --- شبكة القطاعات: أفق التوسّع --- */
.sectors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.8vw, 20px);
    margin-top: clamp(10px, 2vh, 20px);
}

.sector {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: clamp(16px, 2.6vh, 24px) clamp(14px, 1.6vw, 20px);
    background: oklch(0.99 0.003 110);
}

.sector .sk {
    display: block;
    margin-bottom: 9px;
    color: var(--faint);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
}

.sector h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    color: var(--ink-strong);
    line-height: 1.5;
}

.sector p {
    margin-top: 6px;
    color: var(--muted);
    font-size: clamp(.78rem, .98vw, .89rem);
    line-height: 1.8;
}

.sector-proof {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(14px, 2.2vw, 28px);
    align-items: center;
    margin-top: clamp(12px, 2vh, 18px);
    padding: clamp(14px, 2.2vh, 20px) clamp(16px, 2vw, 26px);
    border: 1px solid var(--green);
    border-radius: 11px;
    background: var(--green-mist);
}

.sector-proof .pk {
    color: var(--green-deep);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    white-space: nowrap;
}

.sector-proof b {
    display: block;
    font-size: clamp(.95rem, 1.25vw, 1.08rem);
    color: var(--ink-strong);
    margin-bottom: 2px;
}

.sector-proof span {
    color: var(--muted);
    font-size: clamp(.8rem, 1vw, .92rem);
    line-height: 1.8;
}

/* --- ثلاثة أعمدة للختام --- */
.trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 44px);
    margin-top: clamp(22px, 4vh, 44px);
}

.trio > div {
    border-top: 2px solid var(--ink);
    padding-top: 14px;
}

.trio b {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(.98rem, 1.3vw, 1.1rem);
    color: var(--ink-strong);
}

.trio p {
    color: var(--muted);
    font-size: clamp(.84rem, 1.02vw, .95rem);
    line-height: 1.9;
}

@media (max-width: 980px) {
    .sectors { grid-template-columns: repeat(2, 1fr); }
    .sector-proof { grid-template-columns: 1fr; gap: 8px; }
    .trio { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-height: 760px) {
    .sector { padding: 13px 15px; }
    .sector p { line-height: 1.65; }
    .sector-proof { padding: 12px 18px; margin-top: 12px; }
    .trio { margin-top: 20px; }
    .trio p { line-height: 1.75; }
}

/* سطر فرعي داخل خلية الشريحة المستهدفة */
.sheet .plan .sub {
    display: inline-block;
    margin-top: 3px;
    color: var(--faint);
    font-weight: 400;
    font-size: .8rem;
}

/* --- خط زمني تنظيمي --- */
.timeline {
    position: relative;
    margin-top: clamp(26px, 5vh, 54px);
    padding-bottom: 6px;
}

.timeline-track {
    position: relative;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
}

.timeline-done {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 62%;
    background: var(--green);
    border-radius: 2px;
}

.tm {
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--line);
}

.tm.past {
    border-color: var(--green);
    background: var(--green);
}

.tm.now {
    width: 19px;
    height: 19px;
    border-color: var(--green);
    background: var(--paper);
    box-shadow: 0 0 0 4px var(--green-mist);
}

.tm.next {
    border-color: var(--ink-strong);
    background: var(--paper);
}

.timeline-labels {
    position: relative;
    height: clamp(96px, 15vh, 132px);
    margin-top: 16px;
}

.tl {
    position: absolute;
    top: 0;
    width: clamp(150px, 21%, 230px);
    transform: translateX(50%);
}

.tl .td {
    display: block;
    margin-bottom: 5px;
    color: var(--faint);
    font-size: .74rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tl b {
    display: block;
    font-size: clamp(.88rem, 1.12vw, 1rem);
    color: var(--ink-strong);
    line-height: 1.6;
    margin-bottom: 3px;
}

.tl span.tn {
    display: block;
    color: var(--muted);
    font-size: clamp(.76rem, .95vw, .85rem);
    line-height: 1.75;
}

.tl.hot .td {
    color: var(--green-deep);
}

.tl.hot b {
    color: var(--green-deep);
}

/* --- شارات حالة داخل الجداول --- */
.st {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

.st-live {
    background: var(--green);
    color: oklch(0.98 0.005 160);
}

.st-ready {
    background: var(--green-soft);
    color: var(--green-deep);
}

.st-todo {
    background: oklch(0.95 0.004 110);
    color: var(--muted);
}

/* --- خارطة التوسع: مسارات --- */
.corridors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 26px);
    margin-top: clamp(10px, 2vh, 20px);
}

.corridor {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: clamp(15px, 2.4vh, 22px) clamp(15px, 1.8vw, 22px);
    background: oklch(0.99 0.003 110);
}

.corridor .ck {
    display: block;
    margin-bottom: 8px;
    color: var(--faint);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
}

.corridor h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(.96rem, 1.28vw, 1.12rem);
    color: var(--ink-strong);
    line-height: 1.55;
}

.corridor p {
    margin-top: 6px;
    color: var(--muted);
    font-size: clamp(.78rem, .97vw, .88rem);
    line-height: 1.8;
}

.corridor.first {
    border-color: var(--green);
    background: var(--green-mist);
}

.corridor.first .ck {
    color: var(--green-deep);
}

/* --- ملاءمة الشريك: بطاقات أصول --- */
.fit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 1.8vw, 20px);
    margin-top: clamp(10px, 2vh, 20px);
}

.fit-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(12px, 1.6vw, 20px);
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: clamp(14px, 2.2vh, 20px) clamp(15px, 1.8vw, 22px);
    background: oklch(0.99 0.003 110);
}

.fit-item .fnum {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: var(--green);
    line-height: 1.35;
    white-space: nowrap;
}

.fit-item b {
    display: block;
    font-size: clamp(.9rem, 1.16vw, 1.02rem);
    color: var(--ink-strong);
    margin-bottom: 3px;
    line-height: 1.55;
}

.fit-item span {
    color: var(--muted);
    font-size: clamp(.78rem, .97vw, .89rem);
    line-height: 1.8;
}

@media (max-width: 980px) {
    .corridors, .fit { grid-template-columns: 1fr; }
    .timeline-labels { height: auto; display: grid; gap: 14px; }
    .tl { position: static; width: auto; transform: none; }
    .timeline-track { display: none; }
}

@media (max-height: 760px) {
    .timeline { margin-top: 22px; }
    .timeline-labels { height: 108px; }
    .tl span.tn { line-height: 1.65; }
    .fit-item { padding: 11px 15px; }
    .fit-item span { line-height: 1.65; }
    .corridor { padding: 12px 16px; }
    .corridor p { line-height: 1.65; }
}

/* جدول التكاملات يحمل ستة صفوف وشارات — إيقاع أضيق */
.slide.integrations .sheet td {
    padding-block: clamp(9px, 1.5vh, 14px);
}

.slide.integrations .footnote {
    margin-top: clamp(14px, 2.4vh, 24px);
}
