/* Farabi Language School: one stylesheet for both languages.
   Tokens first (purpose names), then base, then parts. Logical properties only
   (the few physical ones are marked "physical"). No inline styles anywhere in the HTML. */

/* ---------- Fonts (self-hosted, OFL: Cairo for headings, IBM Plex Sans Arabic for text) ---------- */
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("fonts/cairo-arabic-600.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: "Cairo"; font-weight: 700; font-display: swap; src: url("fonts/cairo-arabic-700.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: "Cairo"; font-weight: 800; font-display: swap; src: url("fonts/cairo-arabic-800.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: "Cairo"; font-weight: 600; font-display: swap; src: url("fonts/cairo-latin-600.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-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("fonts/cairo-latin-700.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-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url("fonts/cairo-latin-800.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-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-arabic-400.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: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("fonts/plex-arabic-500.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: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("fonts/plex-arabic-600.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: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-latin-400.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-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("fonts/plex-latin-500.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-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("fonts/plex-latin-600.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-200B, U+200F-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand, measured from logo.png: ring #003472 (range #003271 to #01165a), red #e80404 */
  --brand: #003472;
  --brand-strong: #01165a;
  --brand-soft: #e3ebf6;
  --accent: #d00303;            /* the logo red, one step darker so white text passes 4.5:1 */
  --accent-strong: #a80202;
  --on-accent: #ffffff;
  --on-brand: #f6f8fc;
  --panel: #01165a;              /* solid navy blocks with white text: stays dark in dark mode */
  --panel-hover: #003472;

  /* Neutral surfaces: page, card, inset */
  --page: #f5f3ee;
  --surface: #fdfcf9;
  --inset: #ebe8e0;
  --text: #17202e;
  --text-muted: #4b576b;
  --border: #d9d4c8;
  --link: #003472;
  --heading: #01165a;
  --focus: #0b63d1;
  --placeholder-bg: #fff4c9;
  --placeholder-text: #5a4300;
  --footer-bg: #01165a;
  --footer-text: #dbe4f3;
  --footer-muted: #a9b8d0;
  --overlay: rgb(1 22 90 / 0.82);
  --overlay-soft: rgb(1 22 90 / 0.18);
  --shadow: 0 1px 2px rgb(23 32 46 / 0.06), 0 6px 18px rgb(23 32 46 / 0.07);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-head: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --step-0: 1.0625rem;          /* 17 px body */
  --gutter: 16px;
  --section-space: 56px;
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 28px; --section-space: 84px; --header-h: 76px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8fb8f0;
    --brand-strong: #bcd5f7;
    --brand-soft: #1b2c47;
    --panel: #13254a;
    --panel-hover: #1c3463;
    --accent: #e11d1d;
    --accent-strong: #ff4a42;
    --page: #0c1421;
    --surface: #142033;
    --inset: #1b2b43;
    --text: #e8edf5;
    --text-muted: #aab6c8;
    --border: #2a3b55;
    --link: #9ec2f5;
    --heading: #f1f5fb;
    --focus: #7db4ff;
    --placeholder-bg: #3a3012;
    --placeholder-text: #ffe28a;
    --footer-bg: #08101c;
    --footer-text: #d5deec;
    --footer-muted: #98a8c0;
    --overlay: rgb(5 12 26 / 0.84);
    --overlay-soft: rgb(5 12 26 / 0.25);
    --shadow: none;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  overflow-x: clip;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
}
html[lang="en"] body { line-height: 1.6; }
main { flex: 1 0 auto; }
img, svg { max-inline-size: 100%; }
img { display: block; block-size: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.4; margin: 0 0 0.5em; text-wrap: balance; }
html[lang="en"] :is(h1, h2, h3, h4) { line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; overflow-wrap: anywhere; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
li { margin-block-end: 0.35em; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[dir="ltr"] { unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip-link {
  position: absolute; inset-inline-start: 12px; inset-block-start: -80px; z-index: 100;
  background: var(--panel); color: var(--on-brand); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { inset-block-start: 12px; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { inline-size: 100%; max-inline-size: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { inline-size: 22px; block-size: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); } /* mirrored arrows only */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 48px; padding: 8px 22px; border-radius: var(--radius-pill);
  font: 700 1rem/1.3 var(--font-head); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-light { background: #fdfcf9; color: #01165a; }
.btn-light:hover { background: #ffffff; }
.btn-ghost-light { background: rgb(255 255 255 / 0.08); color: #fff; border-color: rgb(255 255 255 / 0.7); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.18); }
.btn-quiet { background: none; color: var(--link); padding-inline: 8px; text-decoration: underline; text-underline-offset: 0.25em; }
.btn-small { min-block-size: 44px; padding-inline: 16px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header and menu ---------- */
.site-header { position: relative; z-index: 50; background: var(--surface); border-block-end: 1px solid var(--border); }
.header-bar { display: flex; align-items: center; gap: 8px; min-block-size: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); min-inline-size: 0; margin-inline-end: auto; }
.brand img { inline-size: 52px; block-size: 52px; border-radius: 50%; }
.brand-text { font: 800 1.05rem/1.25 var(--font-head); }
.brand-text small { display: block; font: 500 0.8rem/1.3 var(--font-body); color: var(--text-muted); }
.icon-btn {
  inline-size: 46px; block-size: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; background: none; color: var(--brand); cursor: pointer; text-decoration: none;
  font: 700 0.9rem var(--font-head);
}
.icon-btn:hover { background: var(--brand-soft); }
.lang-link { border: 1.5px solid var(--border); border-radius: var(--radius-pill); inline-size: auto; padding-inline: 14px; min-inline-size: 46px; font-size: 0.95rem; }
.nav-toggle { position: absolute; opacity: 0; inline-size: 46px; block-size: 46px; margin: 0; cursor: pointer; z-index: 3; inset-inline-end: var(--gutter); }
.nav-toggle-label { inline-size: 46px; block-size: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--brand); order: 9; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--focus); outline-offset: 2px; }
.nav-toggle:checked + .nav-toggle-label { background: var(--brand-soft); }
.nav-toggle-label .icon-close { display: none; }
.nav-toggle:checked + .nav-toggle-label .icon-open { display: none; }
.nav-toggle:checked + .nav-toggle-label .icon-close { display: block; }
.site-nav {
  display: none; position: absolute; inset-inline: 0; inset-block-start: 100%;
  background: var(--surface); border-block-end: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; border-block-end: 1px solid var(--border); }
.site-nav li a { display: flex; align-items: center; min-block-size: 52px; padding-inline: 4px; color: var(--text); font: 600 1.1rem var(--font-head); text-decoration: none; }
.site-nav li a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { margin-block-start: 16px; }
.header-cta { display: none; }
.header-call { color: #fff; background: var(--accent); }
.header-call:hover { background: var(--accent-strong); }
@media (min-width: 1020px) {
  .nav-toggle, .nav-toggle-label { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; order: 2; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li { border: 0; }
  .site-nav li a { min-block-size: 44px; padding-inline: 14px; border-radius: var(--radius-pill); font-size: 1rem; }
  .site-nav li a:hover { background: var(--brand-soft); }
  .site-nav li a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  .site-nav .nav-cta { display: none; }
  .header-cta { display: inline-flex; order: 3; }
  .header-call { display: none; }
  .lang-link { order: 4; }
  .brand { margin-inline-end: 12px; }
  .header-bar { gap: 6px; }
  .brand-spacer { flex: 1; order: 1; }
}
@media (max-width: 399px) { .brand-text small { display: none; } .brand img { inline-size: 44px; block-size: 44px; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--panel); isolation: isolate; overflow: clip; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--overlay) 8%, var(--overlay-soft) 100%); }
.hero-inner { padding-block: 120px 36px; min-block-size: min(78svh, 620px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero h1 { color: #fff; max-inline-size: 18ch; }
html[lang="ar"] .hero h1 { max-inline-size: 16ch; }
.hero p.lead { font-size: 1.15rem; max-inline-size: 38ch; color: #eef3fb; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; padding: 0; list-style: none; font-weight: 500; color: #dbe6f6; }
.hero-facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-note { font-size: 0.9rem; color: #c9d6ea; margin-block: 14px 0; }
@media (min-width: 768px) { .hero-inner { min-block-size: 640px; padding-block: 140px 56px; } .hero p.lead { font-size: 1.3rem; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section-alt { background: var(--inset); }
.section-head { max-inline-size: 60ch; margin-block-end: 28px; }
.section-head p { color: var(--text-muted); margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; max-inline-size: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font-head); min-block-size: 44px; }

/* Page header (inner pages) */
.page-head { background: var(--surface); border-block-end: 1px solid var(--border); padding-block: 36px 32px; }
.page-head p { color: var(--text-muted); max-inline-size: 60ch; margin: 0; font-size: 1.1rem; }
.page-head .btn-row { margin-block-start: 20px; }
.crumbs { font-size: 0.9rem; color: var(--text-muted); margin-block-end: 8px; }
.crumbs a { color: var(--text-muted); }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.stages li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stages li a { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; min-block-size: 104px; justify-content: space-between; text-decoration: none; color: inherit; border-radius: var(--radius); position: relative; }
.stages li a:hover { background: var(--brand-soft); }
.stage-arrow { color: var(--brand); margin-block-start: 8px; align-self: flex-end; }
.stages strong { font: 800 1.2rem/1.3 var(--font-head); color: var(--heading); }
.stages span { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.stages li:first-child { background: var(--panel); border-color: var(--panel); }
.stages li:first-child strong { color: #fff; }
.stages li:first-child .stage-arrow { color: #fff; }
.stages li:first-child a:hover { background: var(--panel-hover); }
.stages li:first-child span { color: #cdd9ec; }
@media (min-width: 768px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .stages li a { min-block-size: 140px; padding: 22px 20px; } }
.stages-note { margin-block-start: 18px; }

/* Placeholder marker (never looks like real content) */
.todo { background: var(--placeholder-bg); color: var(--placeholder-text); padding: 1px 8px; border-radius: 6px; border: 1px dashed currentColor; font-size: 0.95em; white-space: normal; }

/* Why Farabi: school day card + bus + facility list */
.why-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; } }
.day-card { background: var(--panel); color: #fff; border-radius: var(--radius); padding: 26px 24px; }
.day-card h3 { color: #fff; margin-block-end: 6px; }
.day-card .time { font: 800 clamp(2rem, 1.4rem + 3vw, 3rem)/1.2 var(--font-head); color: #fff; display: block; margin-block: 4px 12px; }
.day-card p { color: #d6e0f1; margin-block-end: 0.6em; }
.day-card .bus { display: flex; gap: 12px; align-items: flex-start; border-block-start: 1px solid rgb(255 255 255 / 0.25); padding-block-start: 16px; margin-block-start: 16px; color: #eef3fb; }
.day-card .bus .icon { margin-block-start: 5px; }
.day-card .bus p { margin: 0; color: inherit; }
.facility-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .facility-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.facility-list li { margin: 0; display: flex; align-items: center; gap: 14px; padding-block: 14px; border-block-end: 1px solid var(--border); min-block-size: 64px; }
.facility-list .icon { color: var(--brand); inline-size: 26px; block-size: 26px; }
.facility-list b { font-family: var(--font-head); font-weight: 700; color: var(--heading); display: block; line-height: 1.4; }
.facility-list small { color: var(--text-muted); font-size: 0.92rem; display: block; line-height: 1.5; }
.source-note { color: var(--text-muted); font-size: 0.92rem; margin-block-start: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.steps li { counter-increment: step; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
@media (min-width: 900px) { .steps li { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; } }
.steps li::before { content: counter(step); grid-row: span 2; inline-size: 44px; block-size: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 800 1.2rem var(--font-head); }
@media (min-width: 900px) { .steps li::before { grid-row: auto; margin-block-end: 6px; } }
.steps h3 { margin: 0; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Photos */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1020px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-grid li { margin: 0; }
.photo-grid a { display: block; position: relative; border-radius: var(--radius-sm); overflow: clip; background: var(--inset); }
.photo-grid img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.25s ease; }
@media (hover: hover) { .photo-grid a:hover img { transform: scale(1.04); } }
.home-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .home-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-note { color: var(--text-muted); font-size: 0.92rem; margin-block-start: 14px; }

/* Gallery page */
.album { margin-block-end: 56px; }
.album-head { max-inline-size: 70ch; margin-block-end: 18px; }
.album-head h2 { margin-block-end: 4px; }
.album-head p { color: var(--text-muted); margin: 0; }
.album-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.album-nav li { margin: 0; }
.album-nav a { display: inline-flex; align-items: center; min-block-size: 44px; padding: 6px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); text-decoration: none; font: 600 0.98rem var(--font-head); color: var(--text); background: var(--surface); }
.album-nav a:hover { border-color: var(--brand); color: var(--brand); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: #060b14; padding: 56px 12px 16px; color: #fff; }
.lightbox:target { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-block-size: 0; max-inline-size: 100%; }
.lightbox img { max-inline-size: 100%; max-block-size: calc(100svh - 190px); inline-size: auto; block-size: auto; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { text-align: center; color: #e8edf5; font-size: 1rem; max-inline-size: 70ch; line-height: 1.6; }
.lightbox-bar { position: absolute; inset-block-start: 0; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.lightbox-count { color: #b9c6da; font-size: 0.95rem; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-inline-size: 48px; min-block-size: 48px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.12); color: #fff; text-decoration: none; font: 700 0.95rem var(--font-head); padding-inline: 14px; border: 1px solid rgb(255 255 255 / 0.35); }
.lb-btn:hover { background: rgb(255 255 255 / 0.25); }
.lightbox :focus-visible { outline-color: #fff; }
.lb-pager { display: flex; gap: 12px; }

/* About */
.prose { max-inline-size: 68ch; }
.prose h2 { margin-block-start: 1.6em; }
.prose h2:first-child { margin-block-start: 0; }
.letter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .letter { padding: 36px; } }
.letter h3 { margin-block-end: 0.8em; }
.about-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pillar h2 { font-size: 1.4rem; }
.pillar p:last-child { margin-block-end: 0; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.fact-row li { margin: 0; background: var(--brand-soft); color: var(--brand); font: 700 0.95rem var(--font-head); padding: 8px 16px; border-radius: var(--radius-pill); }
.principles { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.principles li { counter-increment: p; margin: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.principles li::before { content: counter(p); inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 800 1rem var(--font-head); margin-block-start: 2px; }

/* Folds (parents' guide) */
.guide-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .guide-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; } }
.fold-list { display: grid; gap: 12px; }
details.fold { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 14px; min-block-size: 64px; padding: 10px 18px; cursor: pointer; font: 700 1.1rem var(--font-head); color: var(--heading); border-radius: var(--radius); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .icon { color: var(--brand); }
details.fold > summary::after { content: ""; margin-inline-start: auto; inline-size: 12px; block-size: 12px; border-inline-end: 2.5px solid currentColor; border-block-end: 2.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; flex: none; }
details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.fold-body { padding: 4px 20px 20px; border-block-start: 1px solid var(--border); padding-block-start: 16px; }
.fold-body > :last-child { margin-block-end: 0; }
.quick-card { position: static; }
@media (min-width: 960px) { .quick-card { position: sticky; inset-block-start: 20px; } }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 10px; margin: 0; border-block-end: 1px solid var(--border); }
.kv li:last-child { border: 0; }
.kv span { color: var(--text-muted); }
.kv b { font-weight: 600; }

/* Admissions */
.stage-table { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .stage-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.docs li { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.callout { background: var(--panel); color: #fff; border-radius: var(--radius); padding: 24px; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #d6e0f1; }
.callout .todo { color: #4a3600; background: #ffe9a3; }
@media (min-width: 768px) { .callout { padding: 36px; } }
.fee-box { border: 2px dashed var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.contact-card { display: flex; flex-direction: column; gap: 10px; }
.contact-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.contact-card h2 .icon { color: var(--brand); }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.phone-list li { margin: 0; }
.phone-link { display: flex; align-items: center; gap: 10px; min-block-size: 48px; padding: 6px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); text-decoration: none; font: 700 1.15rem var(--font-head); color: var(--brand); letter-spacing: 0; }
.phone-link:hover { background: var(--brand-soft); border-color: var(--brand); }
.contact-card p { margin: 0; }
.contact-card .muted { color: var(--text-muted); font-size: 0.95rem; }

/* Strips and footer */
.contact-strip { background: var(--panel); color: #fff; padding-block: 48px; }
.contact-strip h2 { color: #fff; margin-block-end: 6px; }
.contact-strip p { color: #d6e0f1; margin: 0; }
.strip-inner { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .strip-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.strip-phones { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: 48px 28px; margin-block-start: auto; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font: 700 1.1rem var(--font-head); color: #fff; margin-block-end: 12px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a, .footer-links a { display: inline-flex; align-items: center; min-block-size: 44px; gap: 8px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-block-end: 12px; }
.footer-brand img { inline-size: 56px; block-size: 56px; border-radius: 50%; }
.footer-brand strong { font: 800 1.15rem var(--font-head); color: #fff; }
.site-footer p { color: var(--footer-muted); margin-block-end: 0.6em; }
.footer-bottom { border-block-start: 1px solid rgb(255 255 255 / 0.18); margin-block-start: 28px; padding-block-start: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--footer-muted); font-size: 0.92rem; }
.footer-bottom p { margin: 0; }

/* 404 */
.not-found { text-align: center; padding-block: 72px; max-inline-size: 640px; margin-inline: auto; }
.not-found .btn-row { justify-content: center; margin-block-start: 24px; }
.not-found img { margin: 0 auto 20px; inline-size: 96px; block-size: 96px; border-radius: 50%; }

/* Print / motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .contact-strip { display: none; } }

/* ---------- Small additions ---------- */
.icon-flip { transform: scaleX(-1); }
[dir="rtl"] .icon-flip.icon-dir { transform: none; }
.phone-link-light { color: #fff; border-color: rgb(255 255 255 / 0.6); }
.phone-link-light:hover { background: rgb(255 255 255 / 0.14); border-color: #fff; }
.strip-phones { list-style: none; padding: 0; margin: 0 0 14px; }
.strip-actions { margin: 0; }
.btn-disabled { opacity: 1; border-style: dashed; color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.callout-note { margin: 16px 0 0; font-size: 0.98rem; }
.footer-social-h { margin-block-start: 20px; }
.muted { color: var(--text-muted); }
.crumbs a { text-underline-offset: 0.2em; }
.fee-box h2 { font-size: 1.4rem; }
.docs svg { margin-block-start: 3px; color: var(--brand); }
.stage-table .card h3 { margin-block-end: 6px; }
.stage-table .card p { margin: 0; }

/* Arabic pages: Arabic-Indic digits in numbered lists and counters (Asser, 2026-11-22) */
html[lang="ar"] ol { list-style-type: arabic-indic; }
html[lang="ar"] .steps, html[lang="ar"] .principles { list-style: none; }
html[lang="ar"] .steps li::before { content: counter(step, arabic-indic); }
html[lang="ar"] .principles li::before { content: counter(p, arabic-indic); }
.about-figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: clip; align-self: start; border: 1px solid var(--border); }
.about-figure img { inline-size: 100%; block-size: auto; }
.prose-wide { max-inline-size: 78ch; }
.signoff { margin-block-start: 1.4em; }
.day-card .btn-row { margin-block-start: 20px; }
.icon-btn, .nav-toggle-label, .brand img { flex: none; }
.site-footer li a, .footer-links a { min-inline-size: 44px; }
@media (max-width: 480px) { .brand-text { font-size: 0.95rem; } .lang-link { padding-inline: 10px; font-size: 0.9rem; } .header-bar { gap: 4px; } }
