:root{
  --brand:#0F7B53;--brand-hover:#0A5C3E;--brand-soft:#E7F4EE;--brand-border:#DCEBE3;
  --accent:#F59E0D;--accent-soft:#FEF3DC;--accent-ink:#7A4A00;
  --ink:#10241B;--text:#3E4943;--muted:#66716C;--bg:#FFFFFF;--card:#FFFFFF;--tint:#F6FAF8;
  --r-lg:28px;--r-md:18px;--r-sm:12px;
  --shadow:0 24px 48px -28px rgba(16,36,27,.28);
  color-scheme:light;box-sizing:border-box;
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;font-size:17px;line-height:1.85;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3{font-family:"Noto Kufi Arabic","IBM Plex Sans Arabic",sans-serif;line-height:1.45;margin:0;color:var(--ink)}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;display:block;height:auto}
.wrap{width:min(1180px,100% - 32px);margin-inline:auto}
:focus-visible{outline:3px solid var(--brand);outline-offset:3px;border-radius:10px}
.skip{position:absolute;inset-inline-start:-999px;top:8px;background:var(--brand);color:#fff;padding:8px 14px;border-radius:10px;z-index:100}
.skip:focus{inset-inline-start:8px}

/* header */
.hdr{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--brand-border)}
.hdr .wrap{display:flex;align-items:center;gap:16px;height:72px;position:relative}
.logo img{height:48px;width:auto}
.menu{display:flex;gap:2px;margin-inline-start:auto}
.menu a{color:var(--text);font-size:15px;padding:8px 12px;border-radius:10px}
.menu a:hover,.menu a[aria-current]{color:var(--brand-hover);background:var(--brand-soft)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:14px;font:600 15px/1 "IBM Plex Sans Arabic",sans-serif;border:0;cursor:pointer;white-space:nowrap}
.btn-p{background:var(--brand);color:#fff;box-shadow:0 10px 24px -12px rgba(15,123,83,.7)}
.btn-p:hover{background:var(--brand-hover)}
.hdr .btn{min-height:42px;padding:0 16px}
.burger{display:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--brand-border);background:#fff;color:var(--ink);cursor:pointer;place-items:center;flex:none}
.burger svg{width:22px;height:22px}
.drop{position:absolute;top:calc(100% + 8px);inset-inline:0;background:#fff;border:1px solid var(--brand-border);border-radius:20px;padding:12px;display:none;grid-template-columns:1fr 1fr;gap:4px;box-shadow:0 30px 60px -24px rgba(16,36,27,.3)}
.drop.open{display:grid}
.drop a{color:var(--ink);font-size:17px;padding:12px 14px;border-radius:12px}
.drop a:hover{background:var(--brand-soft);color:var(--brand-hover)}
@media (max-width:980px){.menu{display:none}.burger{display:grid}.hdr .btn{margin-inline-start:auto}}
@media (max-width:560px){.hdr .btn{font-size:13px;padding:0 12px}.logo img{height:40px}}

/* crumbs */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);margin-bottom:14px}
.crumbs a:hover{color:var(--brand)}

/* blog index */
.blog-hero{background:var(--tint);border-bottom:1px solid var(--brand-border);padding:40px 0 28px}
.blog-hero h1{font-size:clamp(28px,4vw,44px);font-weight:800;margin-bottom:10px}
.blog-hero .lead{color:var(--muted);font-size:18px;max-width:62ch;margin:0 0 22px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips a{padding:8px 16px;border-radius:999px;border:1px solid var(--brand-border);background:#fff;font-size:14px;font-weight:600;color:var(--text)}
.chips a:hover{border-color:var(--brand);color:var(--brand)}
.chips a[aria-current]{background:var(--brand);border-color:var(--brand);color:#fff}
.blog-list{padding:40px 0 70px}
.cat-sec{margin-bottom:56px}
.cat-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin-bottom:18px}
.cat-head h2{font-size:24px;font-weight:800}
.cat-head p{margin:0;color:var(--muted);font-size:15px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.card{background:var(--card);border:1px solid var(--brand-border);border-radius:var(--r-md);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card-img img{aspect-ratio:1200/630;width:100%;object-fit:cover;background:var(--brand-soft)}
.card-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px}
.card-meta{display:flex;justify-content:space-between;align-items:center;margin:0;font-size:13px;color:var(--muted)}
.cat{color:var(--brand);background:var(--brand-soft);padding:3px 10px;border-radius:999px;font-weight:600}
.card h3{font-size:18px;font-weight:700}
.card h3 a:hover{color:var(--brand)}
.card-body>p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}

/* post */
.post{padding:28px 0 70px}
.post .wrap{max-width:960px}
.post-head h1{font-size:clamp(28px,4vw,42px);font-weight:800;margin-bottom:12px}
.post-head .lead{color:var(--text);font-size:19px;margin:0 0 12px;max-width:70ch}
.meta{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:14px;margin:0 0 22px}
.cover{margin:0 0 30px}
.cover img{width:100%;border-radius:var(--r-md);border:1px solid var(--brand-border)}
.post-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px;align-items:start}
.toc{position:sticky;top:92px;border:1px solid var(--brand-border);border-radius:var(--r-md);padding:14px 18px;background:var(--tint);font-size:14px}
.toc summary{font-weight:700;cursor:pointer;list-style:none;color:var(--ink)}
.toc summary::-webkit-details-marker{display:none}
.toc summary::after{content:"▾";float:left;color:var(--muted)}
.toc ol{margin:10px 0 0;padding-inline-start:18px;display:grid;gap:6px;color:var(--text)}
.toc a:hover{color:var(--brand)}
@media (max-width:980px){.post-grid{grid-template-columns:1fr;gap:24px}.toc{position:static}}

.prose{max-width:720px;font-size:17.5px;color:var(--text)}
.prose h2{font-size:26px;font-weight:800;margin:46px 0 14px;color:var(--ink)}
.prose h3{font-size:20px;font-weight:700;margin:30px 0 10px;color:var(--ink)}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{margin:0 0 20px;padding-inline-start:26px}
.prose li{margin-bottom:8px}
.prose li::marker{color:var(--brand);font-weight:700}
.prose strong{color:var(--ink)}
.prose a{color:var(--brand);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(15,123,83,.4)}
.prose a:hover{color:var(--brand-hover)}
.prose code{font-family:"Sora","Segoe UI",monospace;font-size:.9em;background:var(--tint);border:1px solid var(--brand-border);padding:1px 6px;border-radius:6px;direction:ltr;unicode-bidi:isolate}
.prose blockquote{margin:0 0 20px;padding:12px 20px;border-inline-start:4px solid var(--accent);background:var(--accent-soft);border-radius:0 var(--r-sm) var(--r-sm) 0;color:var(--ink)}
.prose blockquote p{margin:0}
.steps{counter-reset:step;list-style:none;padding-inline-start:0}
.steps li{counter-increment:step;position:relative;padding-inline-start:46px;margin-bottom:14px;min-height:34px}
.steps li::before{content:counter(step);position:absolute;inset-inline-start:0;top:2px;width:32px;height:32px;border-radius:10px;background:var(--brand);color:#fff;font:700 15px/32px "Sora","IBM Plex Sans Arabic",sans-serif;text-align:center}
.box{border:1px solid var(--brand-border);border-radius:var(--r-md);padding:18px 22px;margin:0 0 24px;background:var(--tint)}
.box-title{font-weight:800;color:var(--brand);margin:0 0 8px!important;font-family:"Noto Kufi Arabic",sans-serif;font-size:15px}
.box p:last-child,.box ul:last-child{margin-bottom:0}
.box-summary{background:var(--brand-soft);border-color:#CFE5D9}
.box-note{background:var(--accent-soft);border-color:#F6DCA7}
.box-note .box-title{color:var(--accent-ink)}
.box-example{background:#fff}
.box-help ul{padding-inline-start:20px}
.tbl{overflow-x:auto;margin:0 0 22px;border:1px solid var(--brand-border);border-radius:var(--r-sm)}
.prose table{border-collapse:collapse;width:100%;font-size:15px;min-width:420px}
.prose th,.prose td{padding:10px 14px;text-align:start;border-bottom:1px solid var(--brand-border)}
.prose th{background:var(--tint);color:var(--ink);font-weight:700}
.prose tr:last-child td{border-bottom:0}
.shot{margin:0 0 26px}
.shot img{width:100%;border-radius:var(--r-md);border:1px solid var(--brand-border);box-shadow:var(--shadow)}
.shot-mobile img{max-width:390px;margin-inline:auto}
.shot figcaption{font-size:14px;color:var(--muted);margin-top:8px;text-align:center}
.shot-todo .shot-box{border:2px dashed #CFE5D9;border-radius:var(--r-md);background:var(--tint);padding:26px 20px;text-align:center;color:var(--muted);font-size:15px}
.shot-todo .shot-box p{margin:0}
.shot-tag{display:inline-block;background:var(--accent-soft);color:var(--accent-ink);font-weight:700;font-size:13px;padding:4px 12px;border-radius:999px;margin-bottom:10px}
.cta{margin:48px 0 10px;padding:30px 28px;border-radius:var(--r-lg);background:linear-gradient(135deg,#0F7B53,#0A5C3E);color:#fff;text-align:center}
.cta h2{color:#fff;font-size:26px;margin:0 0 10px}
.cta p{color:rgba(255,255,255,.88);margin:0 auto 18px;max-width:52ch}
.cta .btn-p{background:var(--accent);color:var(--ink);box-shadow:none;font-size:16px;min-height:52px}
.cta .btn-p:hover{background:#F7B23B}
.related{margin-top:56px;padding-top:36px;border-top:1px solid var(--brand-border)}
.related h2{font-size:24px;font-weight:800;margin-bottom:18px}

/* footer */
.pf{border-top:1px solid var(--brand-border);padding:26px 0;color:var(--muted);font-size:14px;background:var(--tint)}
.pf .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center}
.pf nav{display:flex;flex-wrap:wrap;gap:4px 16px}
.pf a:hover{color:var(--brand)}
.pf .copy a{text-decoration:underline}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card{transition:none}}
@media print{.hdr,.cta,.related,.pf,.toc{display:none}}
