/* The app's palette: Fajr Light by day, the first site's midnight navy and gold by night. */
:root {
  --ground: #F7F5F0; --surface: #FFFFFF; --line: #E2DDD2; --ink: #14201C; --muted: #5B6661;
  --accent: #0E6B57; --on-accent: #FFFFFF; --arch: #E3F0EB; --gold: #E8A33D; --gold-text: #7A4E0E;
  --display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B0F19; --surface: #131825; --line: #29303D; --ink: #F1EDE4; --muted: #939AA9;
    --accent: #DAB662; --on-accent: #0D1220; --arch: #1B2441; --gold: #DAB662; --gold-text: #E8CB8A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: anywhere; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font-family: var(--display); font-size: 22px; font-weight: 700; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { font: inherit; font-size: 14px; padding: 6px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 54px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
.arch { background: var(--arch); border-radius: 220px 220px 28px 28px; padding: 64px 24px 36px; text-align: center; margin-top: 28px; }
.arch p.lead { max-width: 52ch; margin: 0 auto 24px; color: var(--muted); font-size: 18px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store { display: inline-flex; flex-direction: column; align-items: center; min-width: 140px; padding: 10px 18px; border-radius: 14px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; }
.store small { font-weight: 400; opacity: .85; font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.thirds { display: flex; gap: 3px; margin: 22px auto 6px; max-width: 420px; }
.thirds > span { flex: 1; min-width: 0; padding: 8px 4px; font-size: 13px; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.thirds > span:first-child { border-radius: 0 999px 999px 0; }
.thirds > span:last-child { border-radius: 999px 0 0 999px; background: var(--accent); color: var(--on-accent); }
[dir="ltr"] .thirds > span:first-child { border-radius: 999px 0 0 999px; }
[dir="ltr"] .thirds > span:last-child { border-radius: 0 999px 999px 0; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 24px 24px; margin-top: 24px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: start; vertical-align: top; padding: 8px 6px; border-top: 1px solid var(--line); }
.tbl { overflow-x: auto; }
footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
code { font-size: 15px; background: var(--arch); padding: 1px 6px; border-radius: 6px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 2px; font-weight: 700; }
[data-lang] { display: none; }
html[lang="ar"] [data-lang="ar"], html[lang="en"] [data-lang="en"] { display: block; }
html[lang="ar"] span[data-lang="ar"], html[lang="en"] span[data-lang="en"] { display: inline; }
.h-invite { font-size: 32px; }
.store-btn { border: 0; font: inherit; cursor: pointer; }
.note { margin-top: 18px; font-size: 14px; }
.span-note { font-size: 14px; margin: 0 0 22px; }
