/* Riyada Cahier — installation guide. Same font, blues and card style as riyadacahier.com.
   Every class starts with "rg-" so the article can sit inside the site's «المساعدة والتثبيت» page without clashing. */

.rg{--ink:#0b1f3a;--ink-2:#1e3a5f;--muted:#5a6b80;--line:#e2e8f1;--paper:#f6f8fc;--blue:#1463d6;--blue-700:#0b4296;--blue-50:#eef4fe;--blue-100:#dbe8fd;
 --green:#0f7f4a;--green-50:#e7f7ef;--amber:#7a4b00;--amber-50:#fff7e6;--amber-line:#f2c97a;--red:#b42335;--red-50:#fdf0f1;--red-line:#efb3bb;
 font-family:'Riyada Arabic','Segoe UI',Tahoma,Arial,sans-serif;color:var(--ink);font-size:17px;line-height:1.9;max-width:900px;margin-inline:auto}
.rg *,.rg *::before,.rg *::after{box-sizing:border-box}
.rg :is(h1,h2,h3){font-weight:600;line-height:1.4;letter-spacing:0;margin:0}
.rg p{margin:0 0 12px}
.rg a{color:var(--blue-700);font-weight:600}
.rg .ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.rg code,.rg kbd{font-family:Consolas,'Courier New',monospace;font-size:15px;background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:1px 7px;direction:ltr;unicode-bidi:isolate}
.rg .rg-ui{font-weight:600;color:var(--ink-2);background:var(--blue-50);border-radius:6px;padding:0 7px;direction:ltr;unicode-bidi:isolate;display:inline-block}

/* Heading band */
.rg-hero{position:relative;overflow:hidden;border-radius:20px;padding:34px 34px 30px;margin:0 0 28px;color:var(--ink);background:radial-gradient(600px 300px at 90% -20%,rgba(60,196,240,.22),transparent 60%),linear-gradient(180deg,#f7faff,#eef4fe);border:1px solid var(--blue-100)}
.rg-hero h1{font-size:clamp(26px,3.4vw,36px);margin-bottom:10px}
.rg-hero p{color:var(--muted);font-size:17.5px;max-width:62ch}
.rg-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.rg-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:#fff;border:1px solid var(--blue-100);font-size:14px;font-weight:600;color:var(--ink-2)}

/* Table of contents */
.rg-toc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 22px;margin:0 0 30px}
.rg-toc h2{font-size:18px;margin-bottom:8px}
.rg-toc ol{margin:0;padding-inline-start:22px;columns:2;column-gap:32px}
.rg-toc li{break-inside:avoid;font-size:15.5px}

/* Sections and numbered steps (the content really is a sequence) */
.rg-section{margin:0 0 34px}
.rg-section>h2{display:flex;align-items:center;gap:12px;font-size:24px;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--blue-100)}
.rg-section>h2 .rg-num{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(180deg,#1b6ee0,var(--blue));color:#fff;font-size:18px}
.rg-steps{list-style:none;margin:0;padding:0;counter-reset:rg-step;display:grid;gap:12px}
.rg-steps>li{counter-increment:rg-step;position:relative;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px 14px 18px;padding-inline-start:62px}
.rg-steps>li::before{content:counter(rg-step);position:absolute;inset-inline-start:16px;top:14px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--blue-50);color:var(--blue-700);font-weight:600;font-size:16px}
.rg-steps>li p:last-child{margin-bottom:0}

/* Parallel choices (not a sequence): a coloured edge says which is the cautious one */
.rg-options{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.rg-options>li{background:#fff;border:1px solid var(--line);border-inline-start:5px solid var(--blue-100);border-radius:12px;padding:12px 16px}
.rg-options>li.rg-opt-safe{border-inline-start-color:#2fa86a}
.rg-options>li.rg-opt-risk{border-inline-start-color:#e3a33a}
.rg-options>li p:last-child{margin-bottom:0}

/* Figures: original screenshots with numbered markers and arrows drawn on top (the images themselves are untouched) */
.rg-shot{margin:16px 0 22px;break-inside:avoid}
.rg-frame{position:relative;border-radius:14px;overflow:hidden;border:1px solid var(--line);box-shadow:0 10px 30px -18px rgba(11,31,58,.35);background:#fff}
.rg-frame img{display:block;width:100%;height:auto}
.rg-ann{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.rg-shot figcaption{margin-top:10px;font-size:15.5px;line-height:1.85;color:var(--ink-2)}
.rg-shot figcaption b{color:var(--blue-700)}

/* Callouts */
.rg-note{border-radius:14px;padding:14px 18px;margin:14px 0;border:1px solid;break-inside:avoid}
.rg-note>strong{display:block;margin-bottom:4px}
.rg-note p:last-child,.rg-note ul:last-child{margin-bottom:0}
.rg-note ul{margin:4px 0 0;padding-inline-start:22px}
.rg-info{background:var(--blue-50);border-color:var(--blue-100)}
.rg-ok{background:var(--green-50);border-color:#bfe6d1}
.rg-warn{background:var(--amber-50);border-color:var(--amber-line);color:#3d2a00}
.rg-stop{background:var(--red-50);border-color:var(--red-line)}
.rg-stop>strong{color:var(--red)}

/* Facts table and FAQ */
.rg-facts{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:10px 0 16px;font-size:15.5px}
.rg-facts th,.rg-facts td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.rg-facts th{width:34%;background:var(--paper);font-weight:600}
.rg-facts tr:last-child :is(th,td){border-bottom:0}
.rg-hash{font-family:Consolas,'Courier New',monospace;font-size:13.5px;direction:ltr;unicode-bidi:isolate;word-break:break-all;display:block}
.rg-faq details{background:#fff;border:1px solid var(--line);border-radius:14px;margin:0 0 10px;break-inside:avoid}
.rg-faq summary{cursor:pointer;padding:14px 18px;font-weight:600;list-style-position:inside}
.rg-faq details>div{padding:0 18px 14px;color:var(--ink-2)}
.rg-contact{display:flex;flex-wrap:wrap;gap:10px 22px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 20px}
.rg-foot{font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px;margin-top:30px}

@media (max-width:640px){
 .rg{font-size:16px}
 .rg-hero{padding:24px 18px}
 .rg-toc ol{columns:1}
 .rg-steps>li{padding-inline-start:54px}
}
@media print{
 @page{size:A4;margin:14mm 13mm}
 .rg{font-size:11.5pt;max-width:none}
 .rg-hero{border-radius:10px;padding:18px 20px}
 .rg-frame{box-shadow:none}
 .rg-section{break-inside:auto}
 .rg-section>h2{break-after:avoid}
 .rg a{text-decoration:none}
}

/* Website page */
.help-page{padding-block:40px 64px}
.rg-pdf{margin:-10px 0 26px}
