/* Samniz Notes | standalone RTL static stylesheet */
:root{--ink:#17243b;--muted:#596b83;--blue:#2668d9;--blue-dark:#164ab1;--teal:#0d918e;--pale:#f4f7fc;--border:#e1e8f1;--white:#fff;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Tahoma,Arial,'Segoe UI',sans-serif;background:var(--pale);color:var(--ink);line-height:2.05;font-size:15px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible{outline:3px solid #f3aa4a;outline-offset:3px}h1,h2,h3{line-height:1.65;letter-spacing:-.3px}h1{font-size:clamp(27px,3vw,40px)}h2{font-size:23px;margin:36px 0 12px}h3{font-size:18px;margin:26px 0 10px}p{margin:10px 0 16px}.container{max-width:1120px;margin:0 auto;padding:0 24px}.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:900;font-size:19px}.brand:hover{text-decoration:none}.mark{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#2767dc,#16aaa4);color:white;font-size:21px;box-shadow:0 7px 16px #1259b12e}.brand small{display:block;line-height:1.1;font-size:10px;color:var(--muted);font-weight:normal;letter-spacing:.6px}.nav{display:flex;gap:18px;flex-wrap:wrap}.nav a{color:#425370;font-weight:700;font-size:13px}.nav a:hover{color:var(--blue)}.hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#102e68 0%,#184ea1 62%,#127e92 100%);color:white;padding:67px 0 60px}.hero:after{content:"";width:440px;height:440px;position:absolute;left:-70px;top:-220px;border:1px solid #ffffff44;border-radius:50%;box-shadow:0 0 0 35px #ffffff09,0 0 0 75px #ffffff08,0 0 0 115px #ffffff06;pointer-events:none}.hero .container{position:relative;z-index:1}.eyebrow{display:inline-block;border:1px solid #ffffff69;color:#efffff;border-radius:30px;padding:3px 15px;font-size:12px;letter-spacing:.2px}.hero h1{max-width:670px;margin:19px 0 7px}.hero p{max-width:650px;color:#e4efff;font-size:16px}.hero-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.button{display:inline-block;background:#fff;color:#164b9e;border-radius:11px;font-weight:800;padding:10px 20px;box-shadow:0 9px 24px #0b22443b}.button:hover{text-decoration:none;background:#eaf3ff}.button.alt{background:#ffffff1c;border:1px solid #ffffff78;color:#fff;box-shadow:none}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:39px 0 19px;gap:16px}.section-heading h2{margin:0}.section-heading p{margin:0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:20px 0 45px}.card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:23px;box-shadow:0 9px 25px #1d416a07;transition:transform .2s,border-color .2s}.card:hover{transform:translateY(-3px);border-color:#abc5f1}.card .label{font-size:11px;font-weight:800;color:var(--teal);background:#e8f9f6;border-radius:50px;padding:4px 10px}.card h3{margin:12px 0 7px;font-size:19px}.card h3 a{color:var(--ink)}.card p{font-size:13px;color:var(--muted);min-height:80px}.card .read{font-size:13px;font-weight:800}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;margin:0 0 48px}.feature{padding:19px 24px;border-left:1px solid var(--border)}.feature:last-child{border-left:0}.feature strong{display:block;font-size:16px}.feature span{font-size:12px;color:var(--muted)}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:24px;align-items:start;padding-top:35px;padding-bottom:60px}.article{background:white;border:1px solid var(--border);border-radius:20px;padding:36px 42px;box-shadow:0 12px 32px #25477909}.crumb{font-size:12px;color:var(--muted);margin-bottom:14px}.crumb a{color:var(--muted)}.article-head h1{font-size:32px;margin:0 0 12px}.article-head .lead{font-size:16px;color:#4b607a;border-right:4px solid var(--teal);padding-right:14px;margin:18px 0 26px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{font-size:11px;font-weight:bold;border-radius:30px;color:#275eab;background:#edf5ff;padding:3px 10px}.article h2{padding-top:12px;border-top:1px solid #edf1f6}.article h2:first-of-type{border-top:0}.article ul,.article ol{padding-right:25px}.article li{padding:2px 0}.article table{width:100%;border-collapse:collapse;font-size:13px;margin:15px 0 22px}.article th{background:#eff5ff}.article td,.article th{border:1px solid var(--border);padding:9px 12px;text-align:right}.article tr:nth-child(even) td{background:#fafdff}.article code{direction:ltr;unicode-bidi:embed;display:inline-block;background:#eff3f8;padding:0 6px;border-radius:4px;font-family:Consolas,monospace;font-size:13px}.article pre{direction:ltr;text-align:left;overflow:auto;background:#182c46;color:#eef4ff;border-radius:13px;padding:18px;line-height:1.8;font-family:Consolas,monospace;font-size:12.5px}.article pre code{color:inherit;background:transparent;padding:0}.tip{border-right:4px solid #0e9990;background:#eafaf7;padding:12px 17px;border-radius:8px;color:#245b5a;margin:22px 0}.caution{border-right-color:#d78b2e;background:#fff7e8;color:#775118}.side{position:sticky;top:97px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:19px}.side h3{font-size:15px;margin:0 0 12px}.side ul{list-style:none;padding:0;margin:0}.side li{border-bottom:1px solid #edf1f7;padding:7px 0}.side li:last-child{border:0}.side a{font-size:12px;color:#53657b}.article-footer{border-top:1px solid var(--border);margin-top:33px;padding-top:20px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-weight:700}.site-footer{background:#122849;color:#dce8fc;padding:26px 0;margin-top:25px}.footer-inner{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;font-size:12px}.site-footer a{color:#cfe6ff}.short-note{color:var(--muted);font-size:12px}.topic-map{display:flex;gap:9px;align-items:center;justify-content:space-between;padding:18px;background:#f0f6ff;border:1px solid #d9e8ff;border-radius:14px;margin:20px 0;flex-wrap:wrap}.topic-map span{background:#fff;padding:8px 14px;border-radius:10px;font-weight:700;font-size:13px}.topic-map b{color:var(--blue)}@media(max-width:850px){.cards{grid-template-columns:repeat(2,1fr)}.article-layout{grid-template-columns:1fr}.side{position:static;order:-1}.article{padding:27px 23px}}@media(max-width:560px){.header-inner{flex-direction:column;align-items:flex-start;padding:15px 0}.nav{gap:14px}.hero{padding:48px 0}.cards{grid-template-columns:1fr}.feature-strip{grid-template-columns:1fr}.feature{border-left:0;border-bottom:1px solid var(--border)}.feature:last-child{border-bottom:0}.article-head h1{font-size:27px}.container{padding:0 16px}}

.home-info{background:#fff;border:1px solid var(--border);border-radius:18px;padding:24px;margin-bottom:36px}.home-info h2{margin-top:0}.home-info p{color:var(--muted)}


/* SAMNIZ TYPOGRAPHY UPDATE v2 */
/* Uses locally installed B Nazanin for Persian and Times New Roman for Latin.
   No proprietary font files are bundled with this stylesheet. */
@font-face {
  font-family: "Samniz Dual";
  src: local("B Nazanin"), local("BNazanin"), local("B Nazanin Regular");
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Samniz Dual";
  src: local("B Nazanin Bold"), local("B Nazanin"), local("BNazanin");
  font-style: normal;
  font-weight: 700;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF,
                 U+FB50-FDFF, U+FE70-FEFF, U+200C-200D;
}
@font-face {
  font-family: "Samniz Dual";
  src: local("Times New Roman");
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0000-02FF;
}
@font-face {
  font-family: "Samniz Dual";
  src: local("Times New Roman Bold"), local("Times New Roman");
  font-style: normal;
  font-weight: 700;
  unicode-range: U+0000-02FF;
}
body {
  font-family: "Samniz Dual", "B Nazanin", "Times New Roman", "Noto Naskh Arabic", serif;
  font-size: 19px;
  line-height: 1.85;
}
h1, h2, h3 { letter-spacing: 0; line-height: 1.5; }
.brand { font-size: 25px; }
.brand small { font-size: 13px; }
.nav a { font-size: 18px; }
.eyebrow, .tag, .card .label { font-size: 16px; }
.hero p, .article-head .lead { font-size: 21px; }
.button { font-size: 19px; }
.section-heading p, .card p, .home-info p { font-size: 19px; }
.card h3 { font-size: 25px; }
.card .read, .article-footer { font-size: 19px; }
.feature strong { font-size: 23px; }
.feature span { font-size: 17px; }
.article p, .article li { font-size: 19px; }
.article h2 { font-size: 30px; }
.article h3 { font-size: 24px; }
.article-head h1 { font-size: clamp(30px, 3vw, 42px); }
.article table { font-size: 18px; }
.crumb, .side a, .side h3, .short-note, .footer-inner { font-size: 17px; }
.topic-map span { font-size: 18px; }
/* Commands and code remain monospaced for accuracy and easy copying. */
.article code, .article pre, .article pre code {
  font-family: Consolas, "Courier New", monospace;
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero p, .article-head .lead { font-size: 19px; }
  .card h3 { font-size: 23px; }
  .article h2 { font-size: 27px; }
  .nav a { font-size: 17px; }
}
