/* ب — «البطاقات» */
:root{
  color-scheme:light;
  --paper:#F5F6F8; --sheet:#FFFFFF;
  --ink:#14171C; --ink2:#3A4450; --mut:#78828F;
  --rule:#DFE3E8; --hair:#EDF0F3;
  --acc:#0A5FA5; --acc-d:#07446F; --accs:#EEF4F9; --accb:#C9DCEB;
  --t0:#0A5FA5; --t1:#10695E; --t2:#2E3B45; --t3:#A86A12;
  --warn:#8C3A2E;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);
  font:400 16px/1.8 "IBM Plex Sans Arabic","Segoe UI",system-ui,sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--acc);text-decoration:none}
a:focus-visible,summary:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
h1,h2,h3{margin:0;letter-spacing:-.025em}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-variant-numeric:tabular-nums}
.wrap{max-width:60rem;margin-inline:auto;padding-inline:18px}

.demo{background:var(--ink);color:#C9CFD7;font-size:.78rem;text-align:center;padding:.55rem 1rem}
.demo a{color:#8FC4EA}

.top{background:var(--sheet);border-bottom:1px solid var(--rule);position:relative;z-index:30}
.top .bar{max-width:60rem;margin-inline:auto;padding:13px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:flex;align-items:center;gap:9px;color:inherit;min-height:44px}
.brand .mark{flex:none}
.brand b{display:block;font-weight:700;font-size:15px;line-height:1.1}
.brand i{display:block;font-style:normal;font-size:9px;letter-spacing:.14em;color:var(--mut);margin-top:2px}
.menu summary{list-style:none;cursor:pointer;width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;border-radius:6px}
.menu summary::-webkit-details-marker{display:none}
.menu[open] summary{background:var(--accs)}
.idx{position:absolute;top:100%;inset-inline:0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);background:var(--sheet);box-shadow:0 12px 24px -18px rgba(16,24,32,.5)}
.idx .g{max-width:60rem;margin-inline:auto;padding:16px 18px}
.idx h4{font-size:.72rem;font-weight:600;letter-spacing:.06em;color:var(--mut);
  margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid var(--hair)}
.idx ul{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:0}
.idx ul:last-child{margin-bottom:0}
.idx li a{display:flex;align-items:center;min-height:44px;padding:0 6px;font-size:.9rem;
  color:var(--ink2);border-radius:4px}
.idx li a:hover{background:var(--accs);color:var(--acc)}
.idx li a[aria-current]{color:var(--acc);font-weight:700}
@media(min-width:40rem){.idx ul{grid-template-columns:1fr 1fr}}
@media(min-width:60rem){.idx ul{grid-template-columns:repeat(3,1fr)}}

/* واجهة */
.hero{background:var(--sheet);border-bottom:1px solid var(--rule);padding:30px 0 26px}
.eyebrow{display:none}
.hero h1{font-size:clamp(25px,6.6vw,40px);line-height:1.35;font-weight:700;margin-bottom:14px;
  text-wrap:balance;max-width:18ch}
.hero p{margin:0 0 18px;font-size:clamp(14px,3.4vw,16.5px);line-height:1.85;color:var(--mut);
  max-width:52ch}
.cta-row{display:flex;flex-wrap:wrap;gap:10px}
.btn,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:48px;
  padding:0 22px;border-radius:6px;font-size:.92rem;font-weight:600}
.btn{background:var(--acc);color:#fff}
.btn:hover{background:var(--acc-d)}
.btn-ghost{border:1px solid var(--rule);color:var(--ink2)}
.btn-ghost:hover{border-color:var(--acc);color:var(--acc)}

/* أرقام */
.stats{background:var(--sheet);border-bottom:1px solid var(--rule);padding:0 0 24px;margin-top:-1px}
.stats .box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}
@media(min-width:44rem){.stats .box{grid-template-columns:repeat(6,minmax(0,1fr))}}
.stats div{display:flex;flex-direction:column;gap:2px}
.stats b{font-family:"IBM Plex Mono",monospace;font-size:1.32rem;font-weight:500;line-height:1.15}
.stats div:nth-child(1) b{color:var(--t0)}
.stats div:nth-child(2) b{color:var(--t1)}
.stats div:nth-child(3) b{color:var(--t3)}
.stats div:nth-child(4) b{color:var(--t2)}
.stats div:nth-child(5) b{color:var(--t0)}
.stats div:nth-child(6) b{color:var(--t1)}
.stats span{font-size:.68rem;color:var(--mut)}

.sec{padding:26px 0 6px}
.sec:last-of-type{padding-bottom:30px}
h2{font-size:clamp(13px,3vw,14px);font-weight:600;color:var(--mut);letter-spacing:.02em;
  margin-bottom:14px}
.body h2{font-size:clamp(18px,4.4vw,22px);color:var(--ink);letter-spacing:-.025em;margin:2.2rem 0 .9rem}
.body h2:first-child{margin-top:0}
.sec > .wrap > p{margin:0 0 14px;font-size:.86rem;color:var(--mut);line-height:1.75;max-width:62ch}
h3{font-size:1rem;font-weight:600;margin:1.8rem 0 .5rem}
p{margin:0 0 1rem;max-width:64ch}
ul,ol{margin:0 0 1.2rem;padding-inline-start:1.1rem}
li{margin-bottom:.45rem;max-width:64ch}
li::marker{color:var(--mut)}
b{font-weight:600}
.more a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;font-size:.9rem}

.chips{display:flex;flex-wrap:wrap;gap:7px}
.chips span{background:var(--sheet);border:1px solid var(--rule);border-radius:5px;
  padding:8px 12px;font-size:.78rem}
.chips .n{background:var(--accs);border-color:var(--accb);color:var(--acc);font-weight:600}

/* بطاقات الأنظمة */
.sys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:46rem){.sys{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sys a{border-radius:8px;padding:16px 14px 18px;display:flex;flex-direction:column;gap:30px;
  min-height:44px;background:var(--sheet);border:1px solid var(--rule);color:var(--ink)}
.sys a .ic{color:var(--ink2)}
.sys .tx{display:flex;flex-direction:column;gap:3px}
.sys .tx b{font-size:.88rem;font-weight:600}
.sys .tx span{font-size:.7rem;line-height:1.6;color:var(--mut)}
.sys .ar{display:none}
.sys a.t0,.sys a.t1,.sys a.t2,.sys a.t3{color:#fff;border-color:transparent}
.sys a.t0{background:var(--t0)} .sys a.t1{background:var(--t1)}
.sys a.t2{background:var(--t2)} .sys a.t3{background:var(--t3)}
.sys a.t0 .ic,.sys a.t1 .ic,.sys a.t2 .ic,.sys a.t3 .ic{color:#fff}
.sys a.t0 .tx span,.sys a.t1 .tx span,.sys a.t2 .tx span,.sys a.t3 .tx span{color:rgba(255,255,255,.74)}
.sys a:hover{filter:brightness(1.06)}
.sys a:not([class*="t"]):hover{border-color:var(--acc)}

/* رأس داخلي */
.phead{background:var(--sheet);border-bottom:1px solid var(--rule);padding:24px 0 26px;
  border-top:4px solid var(--acc)}
.phead .crumb{font-size:.78rem;color:var(--mut);margin-bottom:8px}
.phead h1{font-size:clamp(22px,5.6vw,32px);line-height:1.32;font-weight:700;margin-bottom:10px}
.phead h1 i{font-style:normal;font-weight:400;font-size:.44em;color:var(--mut);display:block;
  margin-top:6px;letter-spacing:.02em;font-family:"IBM Plex Mono",monospace}
.phead .lede-p{margin:0;font-size:clamp(14px,3.4vw,16px);line-height:1.9;color:var(--ink2);max-width:56ch}
.body{padding:26px 0 10px}

.tablewrap{overflow-x:auto;margin:0 0 1.5rem;border:1px solid var(--rule);background:var(--sheet);
  border-radius:8px}
table.spec{border-collapse:collapse;width:100%;font-size:.87rem;min-width:22rem}
table.spec caption{text-align:start;padding:.78rem 1rem;font-size:.77rem;color:var(--mut);
  border-bottom:1px solid var(--rule);background:#FAFBFC}
table.spec th,table.spec td{text-align:start;padding:.58rem 1rem;vertical-align:top;
  border-bottom:1px solid var(--hair)}
table.spec th{font-weight:600;width:38%}
table.spec td{font-variant-numeric:tabular-nums}
table.spec tr:last-child th,table.spec tr:last-child td{border-bottom:0}
.pending{color:var(--warn);font-style:italic}
.note{background:var(--sheet);border:1px solid var(--rule);border-radius:8px;padding:1rem 1.2rem;
  margin:1.4rem 0;font-size:.9rem;color:var(--ink2)}
ul.inline{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.35rem .45rem}
ul.inline li{background:var(--sheet);border:1px solid var(--rule);padding:.2rem .7rem;
  border-radius:99px;font-size:.82rem;margin:0}

.reg{list-style:none;padding:0;background:var(--sheet);border:1px solid var(--rule);
  border-radius:8px;overflow:hidden;counter-reset:r}
.reg li{counter-increment:r;margin:0;max-width:none;padding:13px 14px;
  border-bottom:1px solid var(--hair);display:grid;
  grid-template-columns:1.6rem 1fr auto;gap:.15rem .7rem;align-items:baseline}
.reg li:last-child{border-bottom:0}
.reg li::before{content:counter(r,decimal-leading-zero);
  font-family:"IBM Plex Mono",monospace;font-size:.66rem;color:#A3ACB7;grid-row:1/span 2}
.reg b{grid-column:2;font-size:.9rem;font-weight:600}
.reg span{grid-column:2;grid-row:2;font-size:.79rem;color:var(--mut)}
.reg em{grid-column:3;grid-row:1/span 2;font-style:normal;font-size:.68rem;color:var(--mut);
  white-space:nowrap;align-self:center}

.cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}
.cards a,.cards figure{background:var(--sheet);border:1px solid var(--rule);border-radius:8px;
  overflow:hidden;margin:0;color:inherit;display:block}
.cards a:hover{border-color:var(--acc)}
.cards img{aspect-ratio:16/10;object-fit:cover;width:100%}
.cards b{display:block;padding:.8rem .9rem .15rem;font-size:.92rem;font-weight:600}
.cards span,.cards figcaption{display:block;padding:0 .9rem .9rem;font-size:.77rem;color:var(--mut);
  line-height:1.6}
.cards figcaption{padding-top:.7rem}

.partners{list-style:none;padding:0;display:grid;gap:12px}
@media(min-width:52rem){.partners{grid-template-columns:1fr 1fr}}
.partners li{margin:0;max-width:none;display:grid;gap:12px;grid-template-columns:5.5rem minmax(0,1fr);
  align-items:start;background:var(--sheet);border:1px solid var(--rule);border-radius:8px;padding:13px}
.partners img{border:1px solid var(--hair)}
.partners h3{margin:0 0 .2rem;font-size:.92rem}
.partners .meta{font-size:.73rem;color:var(--mut);margin:0 0 .3rem}
.partners p{font-size:.83rem;margin:0}

.contact{list-style:none;padding:0;background:var(--sheet);border:1px solid var(--rule);
  border-radius:8px;overflow:hidden}
.contact li{margin:0;max-width:none;display:grid;grid-template-columns:7.5rem 1fr;gap:1rem;
  padding:.7rem 14px;border-bottom:1px solid var(--hair);align-items:baseline}
.contact li:last-child{border-bottom:0}
.contact li > span:first-child{color:var(--mut);font-size:.8rem}
.contact a{min-height:44px;display:inline-flex;align-items:center;font-family:"IBM Plex Mono",monospace;
  font-size:.88rem}

.foot{background:var(--ink);color:#8A94A0;margin-top:2.2rem;padding:26px 0 30px}
.foot .fg{display:grid;gap:18px;margin-bottom:20px}
@media(min-width:44rem){.foot .fg{grid-template-columns:repeat(3,1fr)}}
.foot h4{font-size:.72rem;font-weight:600;letter-spacing:.06em;color:#5F6975;margin:0 0 6px}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin:0;max-width:none}
.foot .fg a{display:block;padding:.2rem 0;font-size:.82rem;color:#AFB8C2;min-height:30px}
.foot .fg a:hover{color:#fff}
.foot .fb{border-top:1px solid #262B32;padding-top:16px;display:flex;flex-direction:column;gap:6px}
.foot .fb b{color:#fff;font-size:.86rem}
.foot .fb span,.foot .fb a{font-size:.78rem;color:#8A94A0;line-height:1.7}
.foot .fb a{color:#8FC4EA;min-height:44px;display:inline-flex;align-items:center}

/* شبكة الاعتمادات */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(min-width:44rem){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.grid span{background:var(--sheet);border:1px solid var(--rule);border-radius:6px;
  padding:12px;font-size:.77rem;color:var(--ink2);text-align:center}
