/* Quick Start manual: one stylesheet for every language. Logical properties, thus dir="rtl" mirrors the page. */
:root { --navy:#10203a; --blue:#1d5fbf; --blue-2:#6ea8ff; --ink:#16233a; --muted:#5b6b85; --bg:#f7f9fc; --line:#e4e9f2; --ok:#178a3a; --amber:#e8a020; --tip:#eef5ff; --warn:#fff6e5; }
* { box-sizing: border-box; }
body { margin:0; font-family:Inter,system-ui,sans-serif; color:var(--ink); line-height:1.65; background:#fff; font-size:16.5px; }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; }
.wrap { max-width:1040px; margin:0 auto; padding:0 22px; }
header { background:var(--navy); color:#fff; }
nav { display:flex; align-items:center; gap:22px; padding:16px 0; }
nav .logo { font-weight:800; font-size:19px; }
nav .links { margin-inline-start:auto; display:flex; gap:20px; align-items:center; }
nav .links a { color:#cdd8ec; font-weight:500; }
nav .links a:hover { color:#fff; text-decoration:none; }
.btn { display:inline-block; padding:12px 22px; border-radius:10px; font-weight:700; font-size:15px; border:none; cursor:pointer; color:#fff; text-decoration:none; font-family:inherit; }
.btn:hover { text-decoration:none; }
.btn-primary { background:var(--blue); }
.btn-primary:hover { background:#1850a3; }
.btn-ghost { background:transparent; border:1px solid rgba(255,255,255,0.3); color:#fff; }
.btn-ghost:hover { background:rgba(255,255,255,0.08); }

.hero { background:linear-gradient(180deg, var(--navy), #16294a); color:#fff; padding:48px 0 54px; text-align:center; }
.hero .kicker { color:var(--blue-2); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:13px; }
.hero h1 { font-size:38px; letter-spacing:-0.02em; margin:6px 0 10px; }
.hero p { color:#c6d2e8; font-size:17px; max-width:640px; margin:0 auto 24px; }

.layout { display:grid; grid-template-columns:230px 1fr; gap:40px; padding:44px 0 60px; }
.toc { position:sticky; top:20px; align-self:start; font-size:14px; }
.toc h2 { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 0 10px; }
.toc ol { margin:0; padding-inline-start:20px; }
.toc li { margin:5px 0; }
.toc a { color:var(--ink); }
.toc a:hover { color:var(--blue); }

article { min-width:0; max-width:760px; }
article section { margin:0 0 56px; }
article h2 { font-size:27px; letter-spacing:-0.01em; margin:0 0 6px; scroll-margin-top:16px; }
article h2 .num { color:var(--blue); margin-inline-end:8px; }
article h3 { font-size:18px; margin:26px 0 6px; }
article .lede { color:var(--muted); margin:0 0 18px; }
article ol.steps { padding-inline-start:22px; margin:12px 0; }
article ol.steps li { margin:7px 0; padding-inline-start:4px; }
.ui { font-weight:600; background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:0 6px; white-space:nowrap; font-size:.94em; }

figure { margin:18px 0 22px; }
figure img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:10px; box-shadow:0 6px 22px rgba(16,32,58,.08); }
figure.narrow img { max-width:440px; margin:0 auto; }
figure.medium img { max-width:600px; margin:0 auto; }
figcaption { font-size:13.5px; color:var(--muted); margin-top:8px; text-align:center; }

.note { border-radius:12px; padding:14px 18px; margin:16px 0; font-size:15px; }
.note strong:first-child { display:block; margin-bottom:2px; }
.note.tip { background:var(--tip); border-inline-start:4px solid var(--blue); }
.note.warn { background:var(--warn); border-inline-start:4px solid var(--amber); }

table.words { width:100%; border-collapse:collapse; font-size:15px; margin:12px 0; }
table.words th, table.words td { text-align:start; padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
table.words th { background:var(--bg); font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
table.words td:first-child { font-weight:600; white-space:nowrap; }

.flow { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0 4px; }
.flow .doc { background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px; font-weight:600; font-size:14.5px; }
.flow .doc small { display:block; font-weight:400; color:var(--muted); font-size:12.5px; }
.flow .doc.stock { border-color:#9fd3ae; background:#f1faf3; }
.flow .arrow { color:var(--muted); font-weight:700; }
.flow-box { background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin:16px 0; }
.flow-box h4 { margin:0; font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }

.plan { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; margin:14px 0; }
.plan div { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.plan b { display:block; font-size:22px; color:var(--blue); }
.plan span { font-size:13.5px; color:var(--muted); }

ul.check { list-style:none; padding:0; margin:10px 0; }
ul.check li { padding-block:7px; padding-inline:32px 0; position:relative; border-bottom:1px solid var(--line); }
ul.check li::before { content:"☐"; position:absolute; inset-inline-start:4px; top:5px; font-size:18px; color:var(--blue); }

.cta-band { background:var(--blue); color:#fff; text-align:center; padding:50px 0; }
.cta-band h2 { color:#fff; margin:0 0 8px; font-size:28px; }
.cta-band p { color:#dbe6fb; max-width:560px; margin:0 auto 22px; }
footer { background:var(--navy); color:#9db0d0; padding:32px 0; font-size:14px; }
footer .cols { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
footer a { color:#cdd8ec; }
footer .brand { font-weight:800; color:#fff; font-size:17px; }
.print-cover { display:none; }

@media (max-width:860px) {
  .layout { grid-template-columns:1fr; gap:10px; padding-top:28px; }
  .toc { position:static; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
  nav .links a.hide-sm { display:none; }
  nav { flex-wrap:wrap; row-gap:10px; }
  nav .links { gap:14px; }
  nav .links .btn { padding:8px 14px; font-size:14px; }
  .hero h1 { font-size:28px; }
  article h2 { font-size:23px; }
  table.words td:first-child { white-space:normal; }
}

/* Print: A4, one main topic per page, no site chrome. */
@page { size:A4; margin:16mm 15mm 16mm 15mm; }
@media print {
  body { font-size:11.5pt; line-height:1.5; }
  header, .hero, .toc, .cta-band, footer, .no-print { display:none !important; }
  .wrap { max-width:none; padding:0; }
  .layout { display:block; padding:0; }
  article { max-width:none; }
  .print-cover { display:block; text-align:center; padding-top:70mm; break-after:page; }
  .print-cover h1 { font-size:34pt; margin:0 0 6mm; }
  .print-cover p { color:var(--muted); font-size:14pt; margin:0 0 3mm; }
  body { font-size:10.5pt; line-height:1.42; }
  article section { margin:0 0 7mm; }
  article section.print-break { break-before:auto; }
  article h2 { font-size:17pt; }
  article h3 { font-size:12pt; margin:4mm 0 1mm; }
  article ol.steps li { margin:1mm 0; }
  figure { break-inside:avoid; margin:3mm 0 3mm; }
  figure img { box-shadow:none; max-height:62mm; width:auto; max-width:100%; margin:0 auto; }
  figure.small-print img { max-height:50mm; }
  figure.print-hide { display:none; }
  .note { padding:2mm 4mm; margin:2.5mm 0; font-size:9.5pt; }
  .flow-box { padding:2mm 4mm; margin:2mm 0; }
  table.words th, table.words td { padding:1.2mm 3mm; font-size:9.5pt; }
  .note, .flow-box, table.words, .plan { break-inside:avoid; }
  h2, h3 { break-after:avoid; }
  a { color:var(--ink); }
}

html[dir="rtl"] body { font-family:"Noto Sans Arabic",Inter,system-ui,sans-serif; }
html[dir="rtl"] .flow .arrow { transform:scaleX(-1); }
.lang { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:18px 0 0; padding:0; font-size:13.5px; }
.lang a { color:#cdd8ec; border:1px solid rgba(255,255,255,.2); border-radius:999px; padding:2px 10px; }
.lang a[aria-current] { background:#fff; color:var(--navy); }
