/* The guide: the download page's palette and type, set for reading. */
:root {
  --ink: #16201b;
  --muted: #5f6b64;
  --ground: #eef2ee;
  --paper: #ffffff;
  --olive: #2f5d3a;
  --olive-soft: #e3ece5;
  --line: #d5ddd7;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6ece7; --muted: #a3b0a7; --ground: #121a15; --paper: #18221c; --olive: #8fc79c; --olive-soft: #22362a; --line: #2c3a31; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.8 "IBM Plex Sans Arabic", system-ui, sans-serif; }
a { color: var(--olive); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 24px/1 "Reem Kufi", sans-serif; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.crumb { color: var(--muted); text-decoration: none; font-size: 16px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.crumb:hover { color: var(--ink); }
.dl { margin-inline-start: auto; background: var(--olive); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 18px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { .dl { color: #102015; } }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-block: 40px 64px; align-items: start; }
.toc { position: sticky; top: 24px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; border-inline-start: 3px solid transparent; }
.toc a:hover { background: var(--paper); }
.toc a[aria-current] { background: var(--paper); border-inline-start-color: var(--olive); font-weight: 600; }

main { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 40px clamp(20px, 5vw, 56px) 32px; min-width: 0; }
main > * { max-width: 72ch; }
main > figure, main > .phones, main > .cards, main > .pager { max-width: none; }
h1, h2 { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
h2 { font-size: 24px; margin: 40px 0 14px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 8px; }
.ui { font-weight: 600; background: var(--olive-soft); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
kbd { font: 600 13px/1 "IBM Plex Sans Arabic", sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--ground); }

/* a numbered list only where the order matters: steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 44px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--olive); color: var(--olive); font: 700 15px/26px "Reem Kufi", sans-serif; text-align: center; }
.plain { padding-inline-start: 20px; margin: 0 0 18px; display: grid; gap: 8px; }
.note { background: var(--ground); border-inline-start: 4px solid var(--olive); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 16px; margin-top: 18px; }
[dir="rtl"] .note { border-radius: 10px 0 0 10px; }

figure { margin: 22px 0 26px; }
figure img { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(22, 32, 27, .08); }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0 26px; }
.phones figure { margin: 0; }
.phones img { border-radius: 22px; border: 5px solid var(--ink); }
.phones figcaption { text-align: center; }

.cards { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cards a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.cards a:hover { border-color: var(--olive); background: var(--ground); }
.cards b { display: block; font: 700 20px/1.3 "Reem Kufi", sans-serif; margin-bottom: 4px; }
.cards span { color: var(--muted); font-size: 15px; }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { display: grid; text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--olive); }
.pager small { color: var(--muted); font-weight: 400; font-size: 13px; }
.pager .next { text-align: end; }

footer { padding: 0 0 40px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .toc { position: static; min-width: 0; }
  .ui { white-space: normal; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-inline-start-width: 1px; background: var(--paper); }
  .toc a[aria-current] { border-color: var(--olive); }
  .crumb { display: none; }
  main { padding-top: 28px; }
}
