/* Base: fonts, reset, typography, page shell, utilities. RTL first (logical properties only). */
@font-face { font-family: 'zyalqmr'; font-style: normal; font-weight: 200; src: url(../fonts/zyalqmr-light.woff2) format('woff2'); font-display: optional; }
@font-face { font-family: 'zyalqmr'; font-style: normal; font-weight: 400; src: url(../fonts/zyalqmr-regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'zyalqmr'; font-style: normal; font-weight: 500; src: url(../fonts/zyalqmr-medium.woff2) format('woff2'); font-display: optional; }
@font-face { font-family: 'zyalqmr'; font-style: normal; font-weight: 600; src: url(../fonts/zyalqmr-bold.woff2) format('woff2'); font-display: swap; }

/* Size-adjusted local fallback so the swap to zyalqmr does not reflow text (metrics measured against Arial on Arabic text). */
@font-face { font-family: 'zyalqmr-fallback'; font-style: normal; font-weight: 200 500; src: local('Arial'), local('Arimo'), local('Helvetica'); size-adjust: 97.8%; ascent-override: 87%; descent-override: 35.6%; line-gap-override: 20.5%; }
@font-face { font-family: 'zyalqmr-fallback'; font-style: normal; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arimo Bold'), local('Helvetica Bold'); size-adjust: 101.2%; ascent-override: 84%; descent-override: 34.4%; line-gap-override: 19.8%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c-rose); text-decoration: none; }
a:hover { color: var(--c-orange); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
sup { line-height: 0; }

/* focus ring: 3px #FF2E71 everywhere */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* page shell: white 1180px sheet on the beige canvas */
.site {
  max-width: var(--w-page);
  margin-inline: auto;
  background: var(--c-surface);
  overflow: clip;              /* keeps rounded corners without breaking sticky */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site > main { flex: 1 0 auto; }
@media (min-width: 1240px) {
  body { padding-block: 28px; }
  .site {
    min-height: calc(100vh - 56px);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-line-3);
    box-shadow: var(--shadow-page);
  }
}

.pad { padding-inline: var(--gutter); }

/* utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200;
  background: var(--c-dark); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-weight: var(--fw-bold);
}
.skip-link:focus { top: 12px; color: #fff; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 14px; height: 14px; }
.icon--md { width: 18px; height: 18px; }
.icon--lg { width: 22px; height: 22px; }
.icon--xl { width: 26px; height: 26px; }
.icon--color { stroke: none; }
.icon--pink { color: var(--c-pink); }
/* chevrons must point the reading direction: flip in LTR only */
.icon--dir { }
[dir="ltr"] .icon--dir { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
