:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #13233a;
  --muted: #55657a;
  --brand: #0b5cad;
  --brand-soft: #e6f0fb;
  --border: #dce4ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722;
    --surface: #172231;
    --text: #e7eef7;
    --muted: #9fb0c4;
    --brand: #6fb1ff;
    --brand-soft: #1c2d44;
    --border: #2a3a50;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.75 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans", Arial, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header.site {
  background: var(--brand);
  color: #fff;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
header.site a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.25rem; }
nav.lang a { margin-inline-start: 14px; opacity: .9; }
nav.lang a:hover { opacity: 1; text-decoration: underline; }
main { padding: 28px 0 40px; }
section.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px clamp(16px, 4vw, 32px);
  margin-bottom: 24px;
}
h1 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--brand); }
p.lead { color: var(--muted); margin-top: 0; }
ul { padding-inline-start: 22px; }
li { margin: 4px 0; }
a { color: var(--brand); }
.note { background: var(--brand-soft); border-radius: 8px; padding: 12px 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; vertical-align: top; }
th { background: var(--brand-soft); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; direction: ltr; unicode-bidi: isolate; }
footer.site { color: var(--muted); font-size: .9rem; padding: 0 0 32px; }
footer.site a { margin-inline-end: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
