@font-face{font-family:"Readex";src:url(/fonts/readex-arabic.woff2) format("woff2");font-weight:160 700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E}
@font-face{font-family:"Readex";src:url(/fonts/readex-latin-ext.woff2) format("woff2");font-weight:160 700;font-display:swap;unicode-range:U+0100-02BA,U+1E00-1EFF,U+20A0-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Readex";src:url(/fonts/readex-latin.woff2) format("woff2");font-weight:160 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215}
:root{--ink:#13204A;--text:#1E2747;--muted:#59627F;--paper:#F6F7FB;--surface:#FFFFFF;--line:#E1E5F0;--soft:#EEF1F9;--majorelle:#3550E6;--saffron:#E8A33D;--accent:var(--majorelle);--radius-l:28px;--radius-m:16px;--radius-s:10px;color-scheme:light}
@media (prefers-color-scheme:dark){:root{--ink:#0B1230;--text:#E7EAF6;--muted:#A3ABC6;--paper:#0D1430;--surface:#141D42;--line:#25305C;--soft:#18224B;--majorelle:#7C8DFF;color-scheme:dark}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:84px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--paper);color:var(--text);font-family:"Readex",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;font-size:17px;line-height:1.7;font-weight:340}
[lang=ar] body,body[dir=rtl]{font-size:18px;line-height:1.85}
a{color:var(--majorelle);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--saffron);outline-offset:3px;border-radius:6px}
strong{font-weight:600}
.skip{position:absolute;inset-inline-start:-999px;top:8px;background:var(--saffron);color:#1b1300;padding:8px 14px;border-radius:8px;z-index:50}
.skip:focus{inset-inline-start:12px}
.wrap{max-width:1140px;margin:0 auto;padding:0 20px}
/* header */
.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--paper) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-weight:650;font-size:19px;letter-spacing:-.01em}
.brand svg{color:var(--majorelle);flex:none}
.nav{display:flex;align-items:center;gap:6px}
.nav a{color:var(--text);text-decoration:none;font-size:15px;padding:8px 12px;border-radius:999px}
.nav a:hover{background:var(--soft)}
.nav a.lang{border:1px solid var(--line);font-weight:500}
.nav .hide-s{display:none}
@media (min-width:720px){.nav .hide-s{display:inline-block}}
.progress{position:absolute;inset-inline:0;bottom:-1px;height:3px;background:var(--accent);transform-origin:var(--origin,left);transform:scaleX(0)}
[dir=rtl] .progress{--origin:right}
/* hero */
.hero{padding:28px 0 8px}
.hero-panel{position:relative;overflow:hidden;border-radius:var(--radius-l);background:var(--ink);color:#F3F5FF;padding:44px 26px 40px;isolation:isolate}
.hero-panel::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E %3Cg fill='none' stroke='white' stroke-opacity='.22' stroke-width='1.2'%3E %3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z'/%3E %3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E %3Crect x='20' y='20' width='24' height='24'/%3E %3Cpath d='M0 0l8 8M64 0l-8 8M0 64l8-8M64 64l-8-8'/%3E %3C/g%3E%3C/svg%3E");background-size:64px;opacity:.9;z-index:-1;-webkit-mask-image:linear-gradient(to var(--fade,left),#000 0%,rgba(0,0,0,.35) 55%,transparent 85%);mask-image:linear-gradient(to var(--fade,left),#000 0%,rgba(0,0,0,.35) 55%,transparent 85%)}
[dir=rtl] .hero-panel::before{--fade:right}
.hero-panel::after{content:"";position:absolute;width:420px;height:420px;inset-inline-end:-120px;top:-140px;border-radius:50%;background:radial-gradient(circle,rgba(53,80,230,.85),rgba(53,80,230,0) 70%);z-index:-1}
.hero h1{font-size:clamp(34px,6.4vw,64px);line-height:1.04;letter-spacing:-.025em;font-weight:620;margin:0 0 18px;max-width:14ch}
[dir=rtl] .hero h1{letter-spacing:0;line-height:1.25;max-width:16ch}
.hero-panel p{font-size:clamp(17px,2vw,20px);color:#C9D0F2;max-width:52ch;margin:0 0 26px}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--saffron);color:#1F1500;text-decoration:none;font-weight:600;padding:13px 22px;border-radius:999px;font-size:16px}
.btn:hover{background:#F2B65A;text-decoration:none}
.promise{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:15px;margin:22px 4px 0}
.promise svg{color:var(--saffron);flex:none}
@media (min-width:860px){.hero-panel{padding:72px 64px 68px}}
/* guide list */
.section-t{font-size:24px;font-weight:600;letter-spacing:-.01em;margin:36px 0 16px}
.guides{display:grid;gap:14px;grid-template-columns:1fr;margin-bottom:56px}
@media (min-width:760px){.guides{grid-template-columns:1fr 1fr}.guides .g:first-child{grid-column:1/-1}}
.g{--c:var(--majorelle);display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-m);padding:20px;text-decoration:none;color:var(--text);position:relative;transition:border-color .2s,transform .2s}
.g:hover{border-color:var(--c);transform:translateY(-2px)}
.g .ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c)}
.g h3{margin:2px 0 6px;font-size:19px;line-height:1.35;font-weight:600}
.g p{margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.g .when{display:block;margin-top:10px;font-size:13px;color:var(--muted)}
@media (min-width:760px){.guides .g:first-child{padding:28px}.guides .g:first-child h3{font-size:23px}}
/* article */
.a-hero{--c:var(--majorelle);position:relative;overflow:hidden;background:var(--c);color:#fff;border-radius:var(--radius-l);margin-top:24px;padding:34px 24px 30px;isolation:isolate}
.a-hero::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E %3Cg fill='none' stroke='white' stroke-opacity='.22' stroke-width='1.2'%3E %3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z'/%3E %3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E %3Crect x='20' y='20' width='24' height='24'/%3E %3Cpath d='M0 0l8 8M64 0l-8 8M0 64l8-8M64 64l-8-8'/%3E %3C/g%3E%3C/svg%3E");background-size:56px;opacity:.75;z-index:-1;-webkit-mask-image:linear-gradient(to var(--fade,left),#000,transparent 75%);mask-image:linear-gradient(to var(--fade,left),#000,transparent 75%)}
[dir=rtl] .a-hero::before{--fade:right}
.a-hero .ic{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.16);margin-bottom:18px}
.a-hero h1{font-size:clamp(27px,4.6vw,44px);line-height:1.15;letter-spacing:-.02em;font-weight:620;margin:0 0 14px;max-width:24ch}
[dir=rtl] .a-hero h1{letter-spacing:0;line-height:1.35}
.a-hero .meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:rgba(255,255,255,.86)}
.crumb{display:inline-block;margin:18px 2px 0;font-size:14px;color:var(--muted);text-decoration:none}
.crumb:hover{color:var(--majorelle)}
@media (min-width:860px){.a-hero{padding:52px 56px 46px}}
.layout{display:grid;grid-template-columns:1fr;gap:28px;margin:22px 0 64px}
@media (min-width:1000px){.layout{grid-template-columns:250px minmax(0,1fr);gap:56px}}
.toc{font-size:15px}
.toc details{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-m);padding:14px 18px}
.toc summary{cursor:pointer;font-weight:600;list-style:none}
.toc summary::-webkit-details-marker{display:none}
.toc summary{display:flex;justify-content:space-between;align-items:center}
.toc summary::after{content:"";width:9px;height:9px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px;transition:transform .2s}
.toc details[open] summary::after{transform:rotate(225deg);margin-top:4px}
@media (min-width:1000px){.toc summary::after{display:none}}
.toc ol{margin:10px 0 0;padding:0;list-style:none}
.toc li{margin:0}
.toc a{display:block;color:var(--muted);text-decoration:none;padding:6px 10px;border-inline-start:2px solid var(--line)}
.toc a:hover,.toc a.on{color:var(--text);border-color:var(--accent)}
@media (min-width:1000px){.toc{position:sticky;top:88px;align-self:start}.toc details{background:none;border:0;padding:0}.toc summary{pointer-events:none;margin-bottom:4px;color:var(--muted);font-size:14px;font-weight:500}}
.prose{max-width:70ch;min-width:0}
.prose>p:first-child{font-size:1.12em;color:var(--text)}
.prose h2{font-size:clamp(22px,2.6vw,27px);line-height:1.3;letter-spacing:-.01em;font-weight:600;margin:46px 0 10px}
[dir=rtl] .prose h2{letter-spacing:0}
.prose h3{font-size:19px;font-weight:600;margin:28px 0 6px}
.prose ul,.prose ol{padding-inline-start:24px}
.prose li{margin:6px 0}
.prose li::marker{color:var(--accent)}
.prose ol>li::marker{font-weight:600}
.prose table{width:100%;border-collapse:separate;border-spacing:0;margin:20px 0;font-size:15px;display:block;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface)}
.prose th,.prose td{padding:11px 14px;text-align:start;vertical-align:top;border-bottom:1px solid var(--line)}
.prose tr:last-child td{border-bottom:0}
.prose th{background:var(--soft);font-weight:600;white-space:nowrap}
.prose td:first-child{font-weight:500;white-space:nowrap}
.prose .note{background:var(--soft);border-inline-start:4px solid var(--accent);padding:14px 18px;border-radius:var(--radius-s);font-size:15px;color:var(--muted)}
.prose .meta{color:var(--muted);font-size:14px}
.prose h2#sources+ul{list-style:none;padding:0;display:grid;gap:8px;font-size:15px}
.prose h2#sources+ul li{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s);padding:10px 14px}
.prose h2#sources+ul a{text-decoration:none;word-break:break-word}
.prose h2#sources+ul a:hover{text-decoration:underline}
.prose sup{line-height:0}
/* simple pages */
.page{max-width:72ch;margin:34px auto 70px}
.page h1{font-size:clamp(30px,4.6vw,44px);line-height:1.15;letter-spacing:-.02em;font-weight:620;margin:0 0 16px}
/* footer */
footer{background:var(--ink);color:#C9D0F2;margin-top:24px;position:relative;isolation:isolate;overflow:hidden}
footer::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E %3Cg fill='none' stroke='white' stroke-opacity='.22' stroke-width='1.2'%3E %3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z'/%3E %3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E %3Crect x='20' y='20' width='24' height='24'/%3E %3Cpath d='M0 0l8 8M64 0l-8 8M0 64l8-8M64 64l-8-8'/%3E %3C/g%3E%3C/svg%3E");background-size:64px;opacity:.35;z-index:-1}
footer .wrap{padding-top:40px;padding-bottom:44px;display:grid;gap:18px}
footer .brand{color:#fff}
footer nav{display:flex;flex-wrap:wrap;gap:6px 20px}
footer a{color:#fff;text-decoration:none}
footer a:hover{text-decoration:underline}
footer p{margin:0;font-size:14px;max-width:70ch;color:#AEB7E0}