/* صفحات بالك الثابتة (حول، الخصوصية، الشروط، الموقع): نفس الورق والخط */
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Cairo"; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --bg: #f2faf8; --card: #ffffff; --ink: #26302e; --ink-60: rgba(38, 48, 46, 0.6); --line: rgba(38, 48, 46, 0.1); --accent: #0f7a6d; --accent-soft: #d0eaea; --on-accent: #fff; }
@media (prefers-color-scheme: dark) { :root { --bg: #101c1a; --card: #1b2b28; --ink: #e3efec; --ink-60: rgba(227, 239, 236, 0.6); --line: rgba(227, 239, 236, 0.1); --accent: #3fd0bd; --accent-soft: #123c37; --on-accent: #06231f; } }
/* The app's E-ink look (pages/look.js, from ?look=eink): the four greys of eink.css, light and dark, whatever the
   system says, because the app's own theme decides. tests/t-eink-pages.js keeps these values equal to eink.css. */
html[data-look="eink"] { --bg: #B6B6B6; --card: #B6B6B6; --ink: #181818; --ink-60: #3A3A3A; --line: #3A3A3A; --accent: #181818; --accent-soft: #A4A4A4; --on-accent: #B6B6B6; color-scheme: light; }
html[data-look="eink"][data-theme="dark"] { --bg: #181818; --card: #181818; --ink: #B6B6B6; --ink-60: #999999; --line: #999999; --accent: #B6B6B6; --accent-soft: #2A2A2A; --on-accent: #181818; color-scheme: dark; }
/* a link in the text: the browser's own blue otherwise; in E-ink it is ink, told apart by its underline */
html[data-look="eink"] a { color: var(--ink); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Cairo", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.8; }
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
header.top a.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
nav.langs a, nav.links a { color: var(--ink-60); text-decoration: none; margin-inline-start: 12px; font-size: 14px; }
nav.langs a.on, nav.links a:hover { color: var(--ink); }
h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
h2 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--ink-60); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 14px 0; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.btn.dark { background: var(--ink); color: var(--bg); }
button.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: default; }
ul { padding-inline-start: 22px; }
footer { margin-top: 40px; font-size: 13px; color: var(--ink-60); border-top: 1px solid var(--line); padding-top: 14px; }
.versions li { margin-bottom: 6px; } .versions b { display: inline-block; min-width: 56px; }
/* one structure, the words from locales/<lang>.js (pages.js): nothing here depends on the language code */
nav.langs a { margin-inline-start: 10px; }
/* phone width: the language names wrap inside the header instead of pushing every page sideways (2026-10-14:
   at 402px the page was 480px wide, with the names and the first letters of each line out of view) */
header.top { flex-wrap: wrap; }
nav.langs { display: flex; flex-wrap: wrap; min-width: 0; max-width: 100%; }
/* a press answers (Balak's motion kit: press 0.97, 160 ms, ease-out); nothing moves for less motion */
.btn { transition: scale 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.btn:active { scale: 0.97; }
nav.langs a, nav.links a { transition: color 0.15s; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { scale: none; } }
