:root{
  --bg: #0A0F1E;
  --bg-2: #0D1424;
  --card: #141A2E;
  --card-2: #1A2138;
  --border: rgba(148,160,184,0.14);
  --border-strong: rgba(148,160,184,0.28);
  --text: #F5F7FA;
  --text-dim: #94A0B8;
  --text-faint: #5C6579;
  --blue: #1291D6;
  --gradient: linear-gradient(135deg, #2C6FB0, #1291D6);
  --max: 820px;
  --header-bg: rgba(10,15,30,0.85);
  color-scheme: dark;
}
html[data-theme="light"]{
  --bg: #F6F7FA; --bg-2: #FFFFFF; --card: #FFFFFF; --card-2: #F0F2F7;
  --border: rgba(15,23,42,0.09); --border-strong: rgba(15,23,42,0.16);
  --text: #0B1220; --text-dim: #56617A; --text-faint: #8993A8;
  --header-bg: rgba(255,255,255,0.85);
  color-scheme: light;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--bg); color:var(--text); font-family:'Vazirmatn', sans-serif; line-height:1.9;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}

header{position:sticky; top:0; z-index:50; background:var(--header-bg); backdrop-filter:blur(14px); border-bottom:1px solid var(--border);}
.nav{max-width:1180px; margin:0 auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; height:82px;}
.brand img{height:60px; width:auto;}
.nav-actions{display:flex; align-items:center; gap:12px;}

.theme-switch{position:relative; width:52px; height:28px; border-radius:100px; border:1px solid var(--border-strong); background:var(--card-2); cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:0 6px; direction:ltr;}
.theme-switch i{font-size:13px; color:var(--text-faint); position:relative; z-index:1;}
.theme-switch .knob{position:absolute; top:2px; left:26px; width:22px; height:22px; border-radius:50%; background:var(--gradient); transition:left .2s ease;}
html[data-theme="light"] .theme-switch .knob{left:2px;}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:10px; font-family:inherit; font-size:14.5px; font-weight:600; border:none; cursor:pointer; white-space:nowrap;}
.btn-primary{background:var(--gradient); color:#fff;}
.btn-ghost{background:transparent; color:var(--text); border:1px solid var(--border-strong);}
.btn-sm{padding:9px 16px; font-size:13.5px;}

.back-link{display:inline-flex; align-items:center; gap:6px; font-size:13.5px; color:var(--text-dim); margin:32px 0 18px;}
.back-link:hover{color:var(--text);}

.article{padding:8px 0 80px;}
.article-eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--blue); background:var(--card); border:1px solid var(--border-strong); padding:6px 16px; border-radius:100px; margin-bottom:20px;}
.article h1{font-size:clamp(26px,4.5vw,38px); line-height:1.35; margin-bottom:14px;}
.article .lede{font-size:16.5px; color:var(--text-dim); margin-bottom:36px;}
.article h2{font-size:22px; margin:40px 0 16px;}
.article h3{font-size:17.5px; margin:28px 0 12px;}
.article p{font-size:15.5px; color:var(--text-dim); margin-bottom:16px;}
.article ul, .article ol{margin:0 0 20px; padding-right:22px;}
.article li{font-size:15.5px; color:var(--text-dim); margin-bottom:10px; line-height:1.8;}
.article table{width:100%; border-collapse:collapse; margin:20px 0 28px; font-size:14px;}
.article th, .article td{padding:12px 14px; border:1px solid var(--border); text-align:right;}
.article th{background:var(--card-2); font-weight:700; color:var(--text);}
.article td{color:var(--text-dim);}
.callout{background:var(--card); border:1px solid var(--border-strong); border-right:3px solid var(--blue); border-radius:12px; padding:20px 22px; margin:24px 0; font-size:14.5px; color:var(--text-dim);}
.callout b{color:var(--text);}
.cta-box{background:var(--gradient); border-radius:18px; padding:36px 32px; text-align:center; margin:44px 0 8px;}
.cta-box h3{color:#fff; font-size:20px; margin-bottom:10px;}
.cta-box p{color:rgba(255,255,255,0.88); font-size:14.5px; margin-bottom:20px;}
.cta-box .btn{background:#fff; color:var(--blue);}
.cta-icon-actions{display:flex; align-items:center; justify-content:center; gap:32px; flex-wrap:wrap;}
.cta-icon-btn{display:flex; flex-direction:column; align-items:center; gap:9px; color:#fff; font-size:13.5px; font-weight:600;}
.cta-icon-btn .cta-icon{width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,0.16); border:1px solid rgba(255,255,255,0.3); display:flex; align-items:center; justify-content:center; font-size:23px; color:#fff; transition:background .15s ease, transform .15s ease, color .15s ease;}
.cta-icon-btn:hover .cta-icon{background:#fff; color:var(--blue); transform:translateY(-3px);}
.related{margin-top:56px; padding-top:32px; border-top:1px solid var(--border);}
.related h4{font-size:13px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.4px; margin-bottom:18px;}
.related-links{display:flex; flex-direction:column; gap:10px;}
.related-links a{font-size:14.5px; color:var(--blue); font-weight:600; display:flex; align-items:center; gap:6px;}

footer{padding:36px 0; border-top:1px solid var(--border); text-align:center;}
footer p{font-size:13px; color:var(--text-faint);}

@media (max-width:560px){
  .article table{font-size:12.5px;}
  .article th, .article td{padding:8px 10px;}
}
