:root{
  --ma-content-max:1320px;
  --ma-gutter:clamp(20px,4.2vw,64px);
  --ma-prose-max:760px;
}
*{box-sizing:border-box}
.ma-page{width:100%;overflow-x:clip}
.ma-shell{width:min(calc(100% - (2 * var(--ma-gutter))),var(--ma-content-max));margin-inline:auto}

.ma-progress{position:fixed;top:0;inset-inline-start:0;height:3px;width:0%;background:var(--brand);z-index:80;transition:width .12s linear}

.ma-breadcrumb{padding:22px 0 0;font-size:13px;color:#8a94a3}
.ma-breadcrumb a{color:#8a94a3;text-decoration:none}
.ma-breadcrumb a:hover{color:var(--brand)}
.ma-breadcrumb span{margin:0 6px}
.ma-breadcrumb strong{color:#556275;font-weight:600}

.ma-hero{padding:20px 0 0}
.ma-hero__prose{max-width:var(--ma-prose-max);margin-inline:auto;text-align:center}
.ma-hero__tag{display:inline-flex;padding:5px 14px;border-radius:999px;background:var(--pale);color:var(--brand-dark);font-size:12.5px;font-weight:700;margin-bottom:16px}
.ma-hero h1{margin:0 0 18px;font-size:clamp(26px,3.6vw,38px);line-height:1.38;font-weight:800;color:var(--ink)}
.ma-hero__meta{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;color:#8a94a3;font-size:13px;margin-bottom:32px}
.ma-hero__meta span:not(:last-child)::after{content:"·";margin-inline-start:10px;color:#c3ccd6}
.ma-hero__media{width:100%;max-width:980px;margin:0 auto;border-radius:18px;overflow:hidden;background:#0b1a2c}
.ma-hero__media img{width:100%;height:auto;max-height:460px;object-fit:cover;display:block}

.ma-body{padding:44px 0 8px}
.ma-prose{max-width:var(--ma-prose-max);margin-inline:auto;color:#324054;font-size:16.5px;line-height:2.05}
.ma-prose p{margin:0 0 22px}
.ma-prose h2{margin:44px 0 18px;font-size:23px;line-height:1.5;font-weight:800;color:var(--ink);scroll-margin-top:100px}
.ma-prose h2:first-child{margin-top:0}
.ma-prose ul{margin:0 0 22px;padding-inline-start:22px;display:flex;flex-direction:column;gap:10px}
.ma-prose li{line-height:1.85}

.ma-callout{max-width:var(--ma-prose-max);margin:0 auto 32px;padding:22px 24px;border-radius:14px;background:var(--soft);box-shadow:0 6px 20px rgba(20,40,70,.05)}
.ma-callout h3{margin:0 0 12px;font-size:15px;font-weight:800;color:var(--ink);display:flex;align-items:center;gap:8px}
.ma-callout ul{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:8px;color:#3f4c5e;font-size:14.5px;line-height:1.8}

.ma-quote{max-width:var(--ma-prose-max);margin:0 auto 32px;padding:0 0 0 0;border-inline-start:3px solid var(--brand);padding-inline-start:20px}
.ma-quote p{margin:0;font-size:18px;line-height:1.75;font-weight:700;color:var(--ink)}

.ma-share{max-width:var(--ma-prose-max);margin:36px auto 0;padding-top:24px;border-top:1px solid #eaeff4;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.ma-share__tags{display:flex;gap:8px;flex-wrap:wrap}
.ma-share__tags span{padding:5px 12px;border-radius:999px;background:var(--soft);color:#556275;font-size:12.5px}
.ma-share__back{display:inline-flex;align-items:center;gap:8px;color:var(--brand);font-weight:700;font-size:14px;text-decoration:none}
/* "back" points right in RTL, before the text */
.ma-share__back::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg)}

.ma-related{padding:56px 0;margin-top:96px;background:var(--soft)}
.ma-related h2{margin:0 0 24px;font-size:22px;font-weight:800;color:var(--ink);text-align:center}
.ma-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:var(--ma-content-max);margin-inline:auto}
.ma-related__card{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(20,40,70,.06);text-decoration:none;color:inherit;transition:box-shadow .2s ease,transform .2s ease}
.ma-related__card:hover{box-shadow:0 12px 28px rgba(20,40,70,.08);transform:translateY(-2px)}
.ma-related__card span{color:var(--brand);font-size:12.5px;font-weight:700}
.ma-related__card h3{margin:0;font-size:15.5px;font-weight:800;color:var(--ink);line-height:1.5}

.ma-closing{background:#0b1a2c;color:#fff;padding:56px 0;margin-top:96px;text-align:center}
.ma-closing h2{margin:0 0 12px;font-size:24px;line-height:1.4;font-weight:800}
.ma-closing p{margin:0 auto 24px;max-width:560px;color:#c6d2e0;font-size:15px;line-height:1.85}
.ma-btn{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 26px;border-radius:10px;font-size:15px;font-weight:700;text-decoration:none}
.ma-btn--primary{background:var(--brand);color:#fff}
.ma-btn--primary:hover{background:var(--brand-dark)}

/* Article building blocks (lead, figures, question list, factor chips, tip, checklist, solution links) */
.ma-hero__media--whole{max-width:820px;background:#eef3f9}
.ma-hero__media--whole img{max-height:none}
.ma-lead{font-size:18px;line-height:2;color:#26344a}
.ma-prose b{color:var(--ink);font-weight:800}
.ma-figure{max-width:560px;margin:8px auto 32px}
.ma-figure img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 10px 26px rgba(20,40,70,.1)}
.ma-figure figcaption{margin-top:10px;color:#6b7788;font-size:13.5px;line-height:1.8;text-align:center}
.ma-prose .ma-qlist{list-style:none;padding:0;gap:10px}
.ma-qlist li{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:14px;background:var(--soft)}
.ma-qlist__ic{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:var(--brand)}
.ma-qlist svg,.ma-factors svg,.ma-tip svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ma-qlist div{display:grid;gap:2px}
.ma-qlist b{font-size:15.5px;line-height:1.7}
.ma-qlist small{color:#5f6d80;font-size:13.5px;line-height:1.75}
.ma-prose .ma-factors{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;flex-direction:initial}
.ma-factors li{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#fff;border:1px solid #e3eaf2;font-size:14.5px;font-weight:700;color:#33475f;line-height:1.6}
.ma-factors span{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff1e8;color:#e06a1b}
.ma-tip{display:flex;align-items:center;gap:14px;margin:4px 0 32px;padding:16px 20px;border-radius:14px;background:#fff7e3;border:1px solid #f6e3b0}
.ma-tip__ic{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;color:#d99300}
.ma-tip p{margin:0;color:#5a4410;font-size:15.5px;font-weight:800;line-height:1.8}
.ma-check{margin:8px 0 32px;padding:22px 24px;border-radius:16px;background:#eaf3ff}
.ma-check h3{margin:0 0 14px;color:var(--ink);font-size:17px;font-weight:850;line-height:1.6}
.ma-check ol{margin:0;padding:0;list-style:none;counter-reset:q;display:grid;gap:10px}
.ma-check li{counter-increment:q;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:#fff;font-size:15px;line-height:1.75;color:#33475f}
.ma-check li::before{content:counter(q,persian);flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;font-size:14px;font-weight:800}
.ma-solutions{margin:8px 0 0;padding:22px 24px;border-radius:16px;background:#eef8f3;border:1px solid #d3ecdf}
.ma-solutions h3{margin:0 0 6px;color:var(--ink);font-size:17px;font-weight:850}
.ma-solutions p{margin:0 0 14px;font-size:15px;line-height:1.85}
.ma-solutions__links{display:flex;flex-wrap:wrap;gap:10px}
.ma-solutions__links a{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 16px;border-radius:10px;background:#fff;border:1px solid #cfe5da;color:#0e5a3a;font-size:14px;font-weight:800;text-decoration:none;transition:border-color .2s ease,color .2s ease}
/* forward arrow points left in RTL */
.ma-solutions__links a::after{content:"";width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-start:4px}
.ma-solutions__links a:hover{border-color:#1c9a55;color:#1c9a55}
/* Comparison article: wide hero picture, spec table, two development paths, source note */
.ma-hero__media--wide{max-width:980px;background:#fff}
.ma-figure--wide{max-width:100%}
.ma-hero__media--product{max-width:980px;background:linear-gradient(180deg,#f3f7fb,#e3e9f0);padding:32px 0}
.ma-hero__media--product img{width:auto;max-width:100%;max-height:400px;margin:0 auto;object-fit:contain;filter:drop-shadow(0 14px 22px rgba(20,40,70,.18))}
.ma-table-wrap{margin:0 0 32px;overflow-x:auto;border-radius:14px;border:1px solid #e3eaf2}
.ma-table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.7}
.ma-table th,.ma-table td{padding:11px 14px;text-align:right;border-bottom:1px solid #eef2f7}
.ma-table tbody tr:last-child th,.ma-table tbody tr:last-child td{border-bottom:0}
.ma-table thead th{background:#f3f7fb;color:var(--ink);font-weight:850}
.ma-table thead th.is-ours{background:#e3f5ea;color:#16834a}
.ma-table tbody th{color:#33475f;font-weight:700;background:#fafcfe;width:38%}
.ma-table td{color:#33475f;direction:rtl}
.ma-table td.is-ours{background:#f4fbf7}
.ma-paths{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 24px}
.ma-path{padding:18px 18px 20px;border-radius:14px;background:#f3f7fb;text-align:center}
.ma-path--ours{background:#eef8f3}
.ma-path h3{margin:0 0 12px;color:var(--ink);font-size:16px;font-weight:850;direction:ltr}
.ma-path p{margin:0}
.ma-path__start{display:inline-block;padding:6px 16px;border-radius:10px;background:#fff;font-size:14.5px;font-weight:800;color:var(--ink)}
.ma-path__arrow{height:22px;margin:4px auto!important;width:2px;background:#9fb0c7;position:relative}
.ma-path__arrow::after{content:"";position:absolute;left:50%;bottom:0;width:8px;height:8px;border-right:2px solid #9fb0c7;border-bottom:2px solid #9fb0c7;transform:translateX(-50%) rotate(45deg)}
.ma-path__end{padding:10px 14px;border-radius:10px;background:#fff;font-size:14.5px;line-height:1.85;color:#33475f}
.ma-path--ours .ma-path__end{border:1.5px solid #9fd9b9}
.ma-note{margin-top:28px!important;color:#7a8696;font-size:13px;line-height:1.9}
/* Latin product names stay whole and keep their "+" in RTL text */
.ma-en{unicode-bidi:isolate;direction:ltr;white-space:nowrap}
@media(max-width:640px){.ma-paths{grid-template-columns:1fr}.ma-table{font-size:13px}.ma-table th,.ma-table td{padding:9px 8px}.ma-table tbody th{width:34%}.ma-table .ma-en{white-space:normal}}
/* the final CTA follows the article directly */
.ma-page .gs-final-cta{margin-top:clamp(56px,6vw,96px)}

@media (max-width:1040px){
  .ma-related__grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .ma-lead{font-size:16.5px}
  .ma-qlist li{align-items:flex-start}
  .ma-check,.ma-solutions{padding:18px 16px}
}
@media (max-width:640px){
  .ma-hero{padding:12px 0 0}
  .ma-body{padding:32px 0 8px}
  .ma-related{margin-top:56px}
  .ma-closing{margin-top:56px}
  .ma-prose{font-size:15.5px}
  .ma-quote p{font-size:16.5px}
}
