/* Mydar public site: the app's palette, light only. Logical properties so the same rules serve RTL and LTR. */
:root {
  --ground: #f5ead8;
  --surface: #ebddc5;
  --text: #201e1d;
  --muted: #4a4541;
  --accent: #9a582c;
  --sage: #7a8a5e;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.wrap { max-width: 680px; margin-inline: auto; padding-inline: 16px; }
.skip {
  position: absolute; inset-inline-start: 8px; top: -100px;
  background: var(--text); color: var(--ground); padding: 8px 12px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 8px; }
header.site { border-block-end: 2px solid var(--surface); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-block: 12px;
}
.brand { font-family: "Rakkas", "Cairo", serif; font-size: 1.75rem; color: var(--accent); text-decoration: none; line-height: 1.2; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, .skip:focus { outline: 3px solid var(--sage); outline-offset: 2px; }
main { padding-block: 24px 48px; }
section[lang] { padding-block: 8px 24px; text-align: start; }
section[lang] + section[lang] { border-block-start: 2px solid var(--surface); margin-block-start: 16px; padding-block-start: 24px; }
h1, h2, h3 { line-height: 1.35; margin-block: 1.4em 0.5em; }
h1 { font-size: 1.9rem; margin-block-start: 0.5em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
[lang="ar"] h1, [lang="ar"] h2 { font-family: "Rakkas", "Cairo", serif; font-weight: 400; }
p, ul, ol { margin-block: 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
li { margin-block-end: 0.35em; }
.card { background: var(--surface); border-radius: 12px; padding: 16px 20px; margin-block: 16px; }
.card > :last-child { margin-block-end: 0; }
.note { border-inline-start: 4px solid var(--sage); padding-inline-start: 12px; }
.email { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
footer.site { border-block-start: 2px solid var(--surface); font-size: 0.9rem; color: var(--muted); }
footer.site .wrap { padding-block: 16px 32px; }
