/* Link Deen — "the day of the five prayers"
   Readex Pro (Latin + Arabic, self-hosted, OFL licence: /assets/fonts/OFL.txt) */
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(/assets/fonts/readex-pro-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; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(/assets/fonts/readex-pro-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(/assets/fonts/readex-pro-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 {
  /* Brand (app) */
  --teal: #25a7b2;
  --gold: #f2b705;
  /* Sky of the day */
  --night: #0f2f3a;
  --night-2: #0b252e;
  --dawn: #f6dcd1;
  /* Surfaces & text — light */
  --bg: #ffffff;
  --mist: #f0f6f6;
  --ink: #10262d;
  --muted: #56696f;
  --line: #dbe6e7;
  --teal-ink: #13727a;
  --on-night: #e9f3f4;
  --on-night-muted: #9fbcc2;
  --radius-s: 10px;
  --radius-l: 28px;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151716;
    --mist: #202322;
    --ink: #eeefec;
    --muted: #a9aeab;
    --line: #353938;
    --teal-ink: #5cc9d2;
    --dawn: #3b2b22;
    --night: #1d2120;
    --night-2: #0d0e0e;
    --on-night: #eeefec;
    --on-night-muted: #a9aeab;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151716;
  --mist: #202322;
  --ink: #eeefec;
  --muted: #a9aeab;
  --line: #353938;
  --teal-ink: #5cc9d2;
  --dawn: #3b2b22;
  --night: #1d2120;
  --night-2: #0d0e0e;
  --on-night: #eeefec;
  --on-night-muted: #a9aeab;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 330;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body, body:lang(ar) { line-height: 1.85; }
strong, b { font-weight: 560; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 560; line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 20; }

/* Logo: always on white */
.logo-tile { display: inline-grid; place-items: center; background: #fff; border-radius: 10px; width: 38px; height: 38px; flex: none; box-shadow: 0 0 0 1px rgba(16, 38, 45, .08); }
.logo-tile img { width: 28px; height: 28px; }
.logo-tile.big { width: 64px; height: 64px; border-radius: 16px; }
.logo-tile.big img { width: 46px; height: 46px; }
.logo-tile.huge { width: 120px; height: 120px; border-radius: 28px; margin-inline: auto; }
.logo-tile.huge img { width: 88px; height: 88px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 10px 28px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 420; font-size: .96rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--teal); }
.tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang { display: flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.lang a { min-width: 34px; text-align: center; font-size: .82rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 4px 9px; border-radius: 999px; }
.lang a[aria-current] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 720px) {
  .bar { padding-block: 10px 0; gap: 6px 12px; }
  .main-nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 6px; }
  .main-nav a { white-space: nowrap; }
}

/* ---------- Home ---------- */
.hero { padding-block: clamp(48px, 9vw, 104px) 40px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); font-weight: 520; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; }
:lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.25; max-width: 16ch; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 26px 0 32px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: .95rem; }
.badge.soon { background: var(--mist); color: var(--muted); }
.badge svg { width: 18px; height: 18px; fill: currentColor; }


/* Hero with product preview */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 22px; }
.proof { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.rang { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }
.rang i { width: 13px; height: 13px; border-radius: 50%; background: var(--teal); display: block; }
.rang i.free { background: transparent; box-shadow: inset 0 0 0 2.5px var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .rang i.free { animation: breathe 2.6s ease-in-out 1.2s 2; }
  @keyframes breathe { 50% { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 8px color-mix(in srgb, var(--gold) 28%, transparent); } }
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* App screens from the Figma, in a device frame */
.devices { position: relative; justify-self: end; width: min(300px, 100%); }
.phone { margin: 0; border-radius: 42px; background: #0d1a1e; padding: 9px; box-shadow: 0 40px 80px -40px rgba(8, 30, 36, .55), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone img { display: block; width: 100%; height: auto; box-sizing: border-box; padding: 7% 0 8%; border-radius: 33px; background: #fff; }
/* Safe areas: the screen sits between the top bar (camera) and the home indicator, nothing gets cut */
.phone::before { content: ""; position: absolute; top: calc(9px + 2.2%); left: 50%; width: 30%; height: 3.2%; border-radius: 999px; background: #0d1a1e; transform: translateX(-50%); z-index: 1; }
.phone::after { content: ""; position: absolute; bottom: calc(9px + 2.4%); left: 50%; width: 36%; height: 5px; border-radius: 999px; background: #10262d; transform: translateX(-50%); }
.phone.front { position: relative; z-index: 2; }
.phone { position: relative; }
.phone.back { position: absolute; z-index: 1; width: 86%; top: 9%; inset-inline-end: 58%; transform: rotate(-7deg); box-shadow: 0 30px 60px -36px rgba(8, 30, 36, .5); }
[dir="rtl"] .phone.back { transform: rotate(7deg); }
@media (max-width: 1100px) { .phone.back { inset-inline-end: 48%; } }
@media (max-width: 860px) { .hero-grid .devices { justify-self: center; } .phone.back { display: none; } }

/* Insight: three short truths */
.insight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.insight div { border-top: 3px solid var(--teal); padding-top: 20px; }
.insight h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.insight p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .insight { grid-template-columns: 1fr; gap: 28px; } }

/* Five moments, each in the sky of its prayer (fixed colours: they are pictures of a time of day) */
.moments { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.moments li { border-radius: 22px; padding: 22px 18px; min-height: 300px; display: flex; flex-direction: column; gap: 6px; }
.m-name { font-size: .92rem; font-weight: 500; opacity: .85; }
.m-time { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.moments p { margin: auto 0 0; font-size: .98rem; line-height: 1.45; }
.m-fajr { background: linear-gradient(180deg, #142a4d 0%, #3c4a72 50%, #8f5f6c 100%); color: #fff; }
.m-jumua { background: linear-gradient(180deg, #d6eff1 0%, #f6f6e9 100%); color: #10262d; }
.m-isha { background: linear-gradient(180deg, #0b1f2b 0%, #22386a 100%); color: #fff; }
.m-tarawih { background: radial-gradient(circle at 80% 16%, #f5d47e 0 12px, transparent 13px), linear-gradient(180deg, #07121f 0%, #15284d 100%); color: #fff; }
.m-aid { background: linear-gradient(180deg, #f5d47e 0%, #fff3d6 100%); color: #10262d; }
@media (max-width: 1000px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); } .moments li { min-height: 220px; } .moments li:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .moments { grid-template-columns: 1fr; } .moments li:last-child { grid-column: auto; } }

.split-cta { margin-top: 26px; }

/* Manifesto + free, in the night of Isha */
.believe { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.believe h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.manifesto { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.manifesto li { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; color: var(--on-night); padding-inline-start: 20px; border-inline-start: 2px solid var(--gold); }
.free .logo-tile { margin-bottom: 20px; }
.free p { color: var(--on-night-muted); margin: 12px 0 0; }
@media (max-width: 860px) { .believe { grid-template-columns: 1fr; } }

/* Final call to action */
.final { background: var(--mist); padding-block: clamp(56px, 9vw, 110px); text-align: center; }
.final .rang { justify-content: center; margin: 0 0 26px; }
.final h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 520; letter-spacing: -0.035em; }
:lang(ar) .final h2 { letter-spacing: 0; }
.final p { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 10px 0 30px; }
.final .cta-row { justify-content: center; }

/* The day band — the signature element */
.dayband { margin: 0 0 clamp(56px, 8vw, 96px); }
.sky {
  position: relative; overflow: hidden; height: clamp(110px, 16vw, 170px);
  background: linear-gradient(to right,
    #142a4d 0%, #f2c3ae 10%, #d6eff1 30%, #f5d47e 50%, #ec8657 70%, #22386a 90%, #0f2f3a 100%);
}
[dir="rtl"] .sky { background: linear-gradient(to left,
    #142a4d 0%, #f2c3ae 10%, #d6eff1 30%, #f5d47e 50%, #ec8657 70%, #22386a 90%, #0f2f3a 100%); }
.sky .sun {
  position: absolute; width: clamp(26px, 3.4vw, 42px); aspect-ratio: 1; border-radius: 50%;
  background: #fff6d8; box-shadow: 0 0 0 10px rgba(255, 246, 216, .35), 0 0 60px 20px rgba(255, 236, 170, .6);
  inset-inline-start: calc(30% - clamp(13px, 1.7vw, 21px)); top: 22%;
}
.prayers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.prayers li { position: relative; text-align: center; padding: 26px 4px 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.prayers .dot { position: absolute; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal); }
.prayers li::before { content: ""; position: absolute; top: -40px; height: 33px; width: 1px; background: rgba(255,255,255,.7); }
.prayers strong { font-size: clamp(.95rem, 1.6vw, 1.2rem); font-weight: 560; }
.prayers .ar { font-size: clamp(.95rem, 1.5vw, 1.15rem); color: var(--teal-ink); line-height: 1.4; }
.prayers .moment { font-size: .84rem; color: var(--muted); }
:lang(ar) .prayers .ar { display: none; }
.dayband figcaption { margin-top: 26px; color: var(--muted); font-size: .98rem; text-align: center; }
@media (max-width: 560px) { .prayers .moment { display: none; } }
@keyframes dawn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@keyframes dawn-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* One orchestrated moment: the day dawns, then the prayers appear. Only if motion is accepted. */
@media (prefers-reduced-motion: no-preference) {
  .sky { animation: dawn 1.6s cubic-bezier(.3,.7,.2,1) backwards; }
  [dir="rtl"] .sky { animation-name: dawn-rtl; }
  .prayers li { animation: rise .5s ease-out backwards; animation-delay: calc(.9s + var(--i) * .12s); }
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section > .wrap > h2, .split h2, .mosques h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.025em; max-width: 20ch; }
.section .intro { color: var(--muted); font-size: 1.08rem; max-width: 36em; margin: 14px 0 0; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 22px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: -2px; inset-inline-start: 0; width: 48px; border-top: 2px solid var(--teal); }
.steps li::after { content: counter(step); display: block; font-size: 3.4rem; font-weight: 200; line-height: 1; color: var(--teal-ink); margin-bottom: 14px; order: -1; }
.steps li { display: flex; flex-direction: column; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.steps li::before { content: ""; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* For whom: photo + text */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.routemap { width: 100%; height: auto; display: block; }
.routemap .street { fill: var(--line); }
.routemap .blk { fill: var(--mist); }
.routemap .park { fill: color-mix(in srgb, var(--teal) 16%, var(--mist)); }
.routemap .route-shadow { fill: none; stroke: var(--bg); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.routemap .route { fill: none; stroke: var(--teal); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.routemap .stop { fill: var(--bg); stroke: var(--teal); stroke-width: 4; }
.routemap .car rect { fill: var(--gold); }
.routemap .car .glass { fill: var(--ink); opacity: .75; }
.routemap .mosque { fill: var(--ink); }
.routemap .mosque .crescent { fill: var(--gold); }
.routemap .pin { fill: var(--teal); stroke: var(--bg); stroke-width: 4; }
.split p { color: var(--muted); font-size: 1.06rem; }
.who { list-style: none; padding: 0; margin: 24px 0 0; }
.who li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: baseline; }
.who li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split .routemap { max-width: 420px; } }

/* Eight-pointed star (logo motif) used as a bullet */
.star { width: 14px; height: 14px; position: relative; display: inline-block; translate: 0 2px; }
.star::before, .star::after { content: ""; position: absolute; inset: 2px; background: var(--teal); }
.star::after { transform: rotate(45deg); }
.star.gold::before, .star.gold::after { background: var(--gold); }

/* Features: quiet two-column list */
.features { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.features h3 { font-size: 1.08rem; margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Hero call to action */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border: 1px solid var(--line); }
.share:hover { border-color: #25d366; }
.share svg { width: 18px; height: 18px; fill: #1faa52; }

.kin { margin: 40px 0 0; font-size: 1.12rem; max-width: 40em; padding: 18px 22px; background: var(--dawn); border-radius: var(--radius-s); }

/* Donations */
.donate-btn { font-size: .86rem; font-weight: 560; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: #2e2300; text-decoration: none; white-space: nowrap; }
.donate-btn:hover, .donate-btn[aria-current] { background: #ffc61a; color: #2e2300; }
.button.gold { background: var(--gold); color: #2e2300; }
.button.gold:hover { background: #ffc61a; color: #2e2300; }
.free .more { align-items: center; }
.lead-doc { font-size: 1.2rem; }
.button.big { padding: 15px 30px; font-size: 1.05rem; margin-top: 6px; }
@media (max-width: 420px) { .donate-btn { padding: 6px 10px; font-size: .8rem; } }

/* For mosques */
.button { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 500; }
.button:hover { background: #1d8d96; color: #fff; }
.mosques { background: var(--mist); border-radius: var(--radius-l); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px 64px; align-items: start; }
.mosques > div > p { color: var(--muted); margin: 14px 0 26px; }
.mq-steps { list-style: none; margin: 0; padding: 0; counter-reset: mq; display: grid; gap: 22px; }
.mq-steps li { counter-increment: mq; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.mq-steps li::before { content: counter(mq); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--teal-ink); font-weight: 560; }
.mq-steps h3 { font-size: 1.05rem; }
.mq-steps p { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 760px) { .mosques { grid-template-columns: 1fr; } }

/* Association: night of Isha */
.night { background: var(--night); color: var(--on-night); }
.night a { color: #8fe1e8; }
:root[data-theme="dark"] .night { border-block: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .night { border-block: 1px solid var(--line); } }
:root[data-theme="dark"] .sky { filter: saturate(.85) brightness(.88); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky { filter: saturate(.85) brightness(.88); } }
.assoc { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.assoc h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.assoc p { color: var(--on-night-muted); max-width: 40em; margin: 12px 0 0; }
.assoc .ids, .free .ids { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 24px 0 0; }
.assoc .ids div, .free .ids div { display: flex; flex-direction: column; }
.assoc .ids dt, .free .ids dt { font-size: .85rem; color: var(--on-night-muted); }
.assoc .ids dd, .free .ids dd { margin: 0; font-weight: 500; }
.assoc .more, .free .more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media (max-width: 560px) { .assoc { grid-template-columns: 1fr; } }

/* ---------- Documents ---------- */
.doc-head { background: var(--mist); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 520; letter-spacing: -0.03em; max-width: 22ch; }
:lang(ar) .doc-head h1 { letter-spacing: 0; }
.updated { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.doc-grid { padding-block: 40px 96px; }
.doc-grid.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
.toc nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: .88rem; }
.toc p { font-weight: 560; margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 5px 14px; color: var(--muted); text-decoration: none; margin-inline-start: -1px; border-inline-start: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-inline-start-color: var(--teal); }
@media (max-width: 900px) { .doc-grid.has-toc { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.4rem; font-weight: 540; margin: 2.4em 0 .6em; }
.prose h3 { font-size: 1.08rem; margin: 1.8em 0 .4em; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--teal-ink); }
.callout { background: var(--mist); border-inline-start: 3px solid var(--teal); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 20px 0; }
[dir="rtl"] .callout { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.callout.warn { background: var(--dawn); border-inline-start-color: #e07a4f; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-s); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--mist); font-weight: 560; }
dl.facts { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; margin: 20px 0; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { color: var(--muted); padding-inline-end: 16px; }
dl.facts dd { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; font-size: .88rem; }
}
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--teal-ink); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

mark.todo { unicode-bidi: isolate; background: #ffe08a; color: #4a3700; padding: 0 5px; border-radius: 4px; font-weight: 500; font-size: .92em; }

/* Footer */
.site-footer { background: var(--night-2); color: var(--on-night-muted); font-size: .92rem; padding-top: 56px; }
.site-footer a { color: var(--on-night); }
.foot { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.org { display: flex; gap: 18px; align-items: flex-start; }
.org p { margin: 1px 0; }
.org-name { color: var(--on-night); font-weight: 560; font-size: 1rem; }
.links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.links li { margin: 0 0 8px; break-inside: avoid; }
.links a { text-decoration: none; color: var(--on-night-muted); }
.links a:hover { color: var(--on-night); text-decoration: underline; }
.copy { padding-block: 22px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
.night + .site-footer { padding-top: 8px; }

/* Language chooser / 404 */
.chooser { display: grid; min-height: 100vh; place-items: center; background: var(--mist); }
.chooser .theme-toggle { position: fixed; top: 14px; inset-inline-end: 14px; }
.picker { text-align: center; }
.picker ul { list-style: none; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.picker ul a { display: block; padding: 10px 22px; border-radius: 999px; background: var(--bg); text-decoration: none; font-weight: 500; }
.picker section { margin: 22px 0; }
.picker h1 { font-size: 1.4rem; margin: 14px 0 6px; }
