
@font-face {
  font-family: Plex;
  src: url("plex-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("plex-arabic-600.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f4;
  --white: #fffdfa;
  --ink: #282526;
  --muted: #59534f;
  --line: #e3dcd4;
  --accent: #613745;
  --accent-dark: #4b2734;
  --tint: #f3ebe8;
  --stone: #263033;
  font-family: Plex, system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
}

:root[lang="ar"] { font-family: "Plex Arabic", Plex, system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-block-size: 100vh; margin: 0; line-height: 1.55; }
:root[lang="ar"] body { line-height: 1.8; }
main { flex: 1; min-inline-size: 0; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #98704b; outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.18; font-weight: 600; }
:root[lang="ar"] :is(h1, h2, h3) { line-height: 1.35; }
.shell { inline-size: min(1120px, calc(100% - 2 * clamp(16px, 5vw, 68px))); margin-inline: auto; }
.skip-link { position: absolute; inset-block-start: .5rem; inset-inline-start: 1rem; z-index: 2; transform: translateY(-200%);
  padding: .5rem .9rem; color: white; background: var(--accent-dark); }
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-block-end: 1px solid var(--line); }
.header-inner { min-block-size: 76px; display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 600; line-height: 1.2; }
.brand img, .footer-brand img { object-fit: cover; border-radius: 50%; background: var(--stone); flex: none; }
.brand img { inline-size: 44px; block-size: 44px; }
.brand span { display: grid; gap: .2rem; }
.brand strong { font-size: 1.15rem; font-weight: 600; }
.brand small { color: var(--muted); font-size: .76rem; }
.site-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .2rem clamp(.35rem, 1.55vw, 1.35rem); }
.site-nav a { color: var(--muted); padding: .35rem .5rem; border-radius: 6px; text-decoration: none; font-size: .94rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); background: var(--tint); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.language { display: inline-grid; place-items: center; min-block-size: 42px; padding: .25rem .85rem; border: 1px solid var(--line);
  border-radius: 6px; font-weight: 600; text-decoration: none; }
.language:hover { color: var(--accent); border-color: var(--accent); }

.home { padding-block: clamp(24px, 4.1vw, 62px) clamp(44px, 6vw, 80px); }
.hero { display: grid; grid-template-columns: 1.1fr minmax(0, .9fr); border-radius: 16px; background: #f2ece6; border: 1px solid var(--line); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2rem;
  padding: clamp(24px, 4.5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--accent-dark); font-size: .87rem; }
.eyebrow span { inline-size: 7px; block-size: 7px; rotate: 45deg; background: var(--accent); }
.hero h1 { font-size: clamp(2.35rem, 4.7vw, 4.35rem); letter-spacing: -.045em; }
:root[lang="ar"] .hero h1 { font-size: clamp(2.1rem, 4.35vw, 3.65rem); letter-spacing: normal; }
.hero p { max-inline-size: 38ch; font-size: clamp(1rem, 1.45vw, 1.16rem); color: var(--muted); }
.hero-art { display: grid; place-items: center; min-block-size: 420px; background: var(--stone); }
.hero-art img { inline-size: 100%; block-size: 100%; max-block-size: 515px; object-fit: contain; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .67rem 1rem; min-block-size: 48px; border-radius: 7px; font-weight: 600; text-decoration: none;
  color: #fffdfa; background: var(--accent); }
.primary-link:hover { background: var(--accent-dark); }
:root[dir="rtl"] :is(.card-arrow, .hero .primary-link svg) { scale: -1 1; }
.overview { margin-block-start: clamp(28px, 4vw, 54px); }
.overview h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin-block-end: 1.1rem; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.25rem); }
.link-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem .5rem; padding: clamp(1rem, 2.3vw, 1.6rem);
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none; transition: border-color .18s, translate .18s; }
.link-card:hover { border-color: var(--accent); translate: 0 -2px; }
.card-icon { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 8px; color: var(--accent); background: var(--tint); }
.link-card h3 { grid-column: 1 / -1; font-size: 1.25rem; }
.link-card p { color: var(--muted); font-size: .93rem; align-self: start; }
.card-arrow { color: var(--accent); display: flex; }

.page-heading { padding-block: clamp(34px, 5.3vw, 70px); background: #f2ece6; border-block-end: 1px solid var(--line); }
.breadcrumb { display: inline-block; margin-block-end: .65rem; color: var(--accent-dark); font-size: .9rem; font-weight: 600; }
.page-heading h1, .error-page h1 { font-size: clamp(2.25rem, 5.3vw, 4rem); }
.page-heading p { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); margin-block-start: .55rem; max-inline-size: 64ch; }
.document { display: grid; grid-template-columns: minmax(170px, 245px) minmax(0, 1fr); align-items: start;
  gap: clamp(20px, 4vw, 56px); padding-block: clamp(23px, 4.1vw, 52px) clamp(48px, 7vw, 90px); }
.document aside { align-self: stretch; }
.toc { position: sticky; inset-block-start: 1rem; background: var(--white); padding: 1.15rem 1.2rem;
  border: 1px solid var(--line); border-radius: 11px; }
.toc h2 { font-size: 1rem; margin-block-end: .55rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; color: var(--muted); padding-block: .25rem; font-size: .91rem; text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.policy { max-inline-size: 74ch; overflow-wrap: anywhere; }
.policy section { padding-block: 1.55rem; border-block-end: 1px solid var(--line); scroll-margin-block-start: 1.15rem; }
.policy section:first-child { padding-block-start: 0; }
.policy section:last-child { border-block-end: none; }
.policy h2 { font-size: clamp(1.25rem, 2.1vw, 1.67rem); margin-block-end: .72rem; }
.policy p + p { margin-block-start: .65rem; }
.policy ul, .policy ol { padding-inline-start: 1.3em; margin-block: .65rem 0; }
.policy li + li { margin-block-start: .5rem; }
.policy a:not(.primary-link) { color: var(--accent-dark); }
.text-link { display: inline-block; margin-block-start: .7rem; font-weight: 600; }
.provider-list { display: grid; gap: .55rem; }
.provider-list div { padding: .75rem .95rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.provider-list dt { font-weight: 600; }
.provider-list dd { margin-block-start: .12rem; color: var(--muted); }
.contact-panel { display: grid; gap: .28rem; justify-items: start; padding: clamp(.85rem, 2.6vw, 1.55rem); margin-block: .85rem 1.15rem;
  border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 9px; background: var(--white); }
.contact-panel > span { color: var(--muted); }
.contact-panel .primary-link { margin-block-start: .45rem; }
.contact-panel .primary-link svg { flex: none; }
.error-page { display: grid; justify-items: start; align-content: center; gap: 1rem; padding-block: 3rem; }
.site-footer { background: var(--white); border-block-start: 1px solid var(--line); }
.footer-inner { min-block-size: 79px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem;
  padding-block: .6rem; color: var(--muted); font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; }

@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; gap: .5rem .9rem; padding-block: .6rem .4rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; border-block-start: 1px solid var(--line); padding-block-start: .35rem; }
  .site-nav a { padding: .3rem .4rem; font-size: .9rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { gap: .9rem; }
  .hero-art { min-block-size: auto; }
  .hero-art img { max-block-size: clamp(235px, 54vw, 340px); }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { gap: .45rem .55rem; }
  .document { grid-template-columns: 1fr; gap: 1.25rem; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .link-card { transition: none; } }

