/* AAIA public site — "The Survey Sheet": every page is a sheet in a bilingual map series.
   White sheet, contour green, survey gold, figure green, sparse map blue. Barlow Condensed is the
   map lettering (titles, labels, coordinates); Readex Pro carries body text in Latin and Arabic.
   Layout uses logical properties, so /ar/ mirrors itself. */
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url(/assets/fonts/alexandria-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Alexandria"; src: url(/assets/fonts/alexandria-arabic.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; src: url(/assets/fonts/readex-pro-arabic.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  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"; src: url(/assets/fonts/readex-pro-latin-ext.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  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"; src: url(/assets/fonts/readex-pro-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  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 {
  --sheet: #ffffff; --sheet-2: #f3f7f4; --ink: #1f4232; --ink-2: #4a6255; --ink-3: #6f857a;
  --contour: #316149; --gold: #d0ad67; --gold-ink: #85651f; --gold-wash: #f7f0de; --blue: #2b5d7a;
  --night: #162d22; --rule: #cfdbd4; --rule-2: #e3ebe6; --grid: rgba(49, 97, 73, .07);
  /* labels and small caps use the text face; condensed map lettering lives only inside the map (.locator) */
  --display: "Readex Pro", system-ui, sans-serif;
  --text: "Readex Pro", system-ui, sans-serif;
  --serif: "Alexandria", "Readex Pro", system-ui, sans-serif;   /* headings: one family drawn for Latin and Arabic */
  /* the khatam pattern always sits under a green veil, so it reads as texture and never competes with text */
  --veil: linear-gradient(rgba(31, 66, 50, .87), rgba(31, 66, 50, .87));
  --veil-strong: linear-gradient(rgba(31, 66, 50, .92), rgba(31, 66, 50, .92));
  --khatam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23d0ad67' stroke-width='1'%3E%3Cpath d='M18 18h28v28H18zM32 12l20 20-20 20-20-20zM32 0v12M32 52v12M0 32h12M52 32h12'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/svg%3E");
  --wrap: 1280px; --pad: clamp(16px, 4vw, 40px);
  --t-h1: clamp(2.4rem, 5.2vw, 4.6rem); --t-h2: clamp(1.75rem, 3.2vw, 2.75rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hover: .28s cubic-bezier(.4, 0, .2, 1);   /* one symmetric curve for every hover, in and out */
  --space: clamp(64px, 9vw, 120px);
}
[dir="rtl"] { --t-h1: clamp(2.2rem, 4.6vw, 4rem); --t-h2: clamp(1.6rem, 3vw, 2.5rem); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-color: var(--contour) var(--sheet-2); }
body { margin: 0; font-family: var(--text); font-weight: 400; color: var(--ink); background: var(--sheet); line-height: 1.65; font-size: 1.0625rem; }
[dir="rtl"] body { line-height: 1.85; }
::selection { background: var(--gold); color: var(--night); }
input, textarea { caret-color: var(--contour); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--contour); text-underline-offset: .22em; text-decoration-thickness: 1px; }
/* every link, button and expandable heading eases its colours on hover and back again;
   elements with their own motion (cards, logos, arrows) set a fuller transition further down */
a, button, summary { transition: color var(--hover), background-color var(--hover), border-color var(--hover), box-shadow var(--hover), text-decoration-color var(--hover), opacity var(--hover); }
/* headings: Alexandria in both languages */
h1, h2 { margin: 0 0 .5em; color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.15; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { margin: 0 0 .5em; color: var(--ink); font: 600 1.15rem/1.3 var(--text); text-wrap: balance; }
[dir="rtl"] :is(h1, h2) { font-weight: 700; line-height: 1.5; letter-spacing: 0; }
[dir="rtl"] h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 58ch; }
/* hidden above the page, not beside it, so it never widens an RTL page */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* map lettering for small labels: condensed caps, tabular figures */
.ref, .sheet-margin, .crumbs, .map-legend, .grades, .stop, .day, .kind {
  font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
[dir="rtl"] :is(.sheet-margin, .crumbs, .map-legend, .grades, .kind) { letter-spacing: 0; text-transform: none; font-family: var(--text); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .6em 1.5em; border-radius: 0;
  font: 600 1rem/1 var(--text); letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color var(--hover), color var(--hover), border-color var(--hover), box-shadow var(--hover); white-space: nowrap; }
[dir="rtl"] .btn { font: 600 1rem/1 var(--text); letter-spacing: 0; text-transform: none; }
.btn--primary { background: var(--contour); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: #dcbd7f; }
.btn--ghost { border-color: var(--contour); color: var(--contour); background: transparent; }
.btn--ghost:hover { background: var(--sheet-2); }
.btn--wa { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn--wa svg { color: #1fa855; width: 1.25em; height: 1.25em; }
.btn--wa:hover { border-color: var(--contour); }
.btn--glass { border-color: rgba(255, 255, 255, .65); color: #fff; background: rgba(22, 45, 34, .25); }
.btn--glass svg { color: #4ed07f; width: 1.25em; height: 1.25em; }
.btn--glass:hover { background: rgba(22, 45, 34, .5); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.link { font: 600 .98rem/1.3 var(--text); text-decoration: none; white-space: nowrap; color: var(--contour); display: inline-flex; align-items: center; gap: 6px; }
[dir="rtl"] .link { font: 600 .98rem/1.3 var(--text); letter-spacing: 0; text-transform: none; }
.link:hover .arrow { transform: translateX(5px); }
[dir="rtl"] .link:hover .arrow { transform: scaleX(-1) translateX(5px); }

/* ---------------------------------------------------------------- top bar, banner, header */
.topbar { background: var(--night); color: #c9d8cf; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .spacer { flex: 1; }
.topbar .lang { font-weight: 600; color: var(--gold); }
/* B12 logins: a small native dropdown in the top bar */
.topbar .b12 { position: relative; }
.topbar .b12 summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.topbar .b12 summary::-webkit-details-marker { display: none; }
.topbar .b12 summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.topbar .b12[open] summary::after { transform: translateY(1px) rotate(225deg); }
.topbar .b12 summary:hover { color: #fff; }
.topbar .b12 div { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; display: grid; min-width: 180px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); }
.topbar .b12 div a { color: var(--ink); padding: 9px 12px; border-radius: 6px; }
.topbar .b12 div a:hover { background: var(--mist, #eef3ef); color: var(--ink); }
.banner { background: var(--gold); color: var(--night); text-align: center; padding: 10px var(--pad); font-weight: 500; font-size: .95rem; }
.banner a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--veil-strong), var(--khatam) 0 0 / 64px 64px, var(--ink); border-bottom: 2px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand img { background: #fff; border-radius: 50%; padding: 3px; }
.brand img { width: 54px; height: 54px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand b { font: 600 1.35rem/1 var(--serif); letter-spacing: 0; }
.brand small { font: 600 .7rem/1.2 var(--text); color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
[dir="rtl"] .brand b { font: 700 1.2rem/1.3 var(--serif); }
[dir="rtl"] .brand small { font: 500 .85rem/1.3 var(--text); letter-spacing: 0; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav > ul > li { position: relative; }
.nav a, .nav button { font: 500 .96rem/1 var(--text); letter-spacing: 0; text-transform: none; color: #eef4f0; text-decoration: none; background: none; border: 0;
  padding: 12px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
[dir="rtl"] :is(.nav a, .nav button) { font: 500 .97rem/1.2 var(--text); letter-spacing: 0; text-transform: none; }
.nav > ul > li > a:hover, .nav button:hover { color: var(--gold); }
.sub a { color: var(--ink); }
.nav [aria-current="page"], .nav button[aria-current] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.chev { width: 13px; height: 13px; transition: transform .25s; }
.sub { position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--ink);
  box-shadow: 0 14px 30px -12px rgba(22, 45, 34, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.sub a { display: flex; width: 100%; padding: 10px 12px; text-transform: none; letter-spacing: .02em; font: 500 1rem/1.2 var(--text); }
.sub a:hover { background: var(--sheet-2); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .chev { transform: rotate(180deg); }
.nav .btn { min-height: 44px; padding: .5em 1.15em; font-size: 1rem; }
.nav .btn--gold { background: var(--gold); color: var(--night); box-shadow: none; }
.nav .btn--gold:hover { background: #dcbd7f; color: var(--night); }
.menu-btn { display: none; margin-inline-start: auto; align-items: center; gap: 10px; background: none; border: 1.5px solid rgba(255, 255, 255, .6); padding: 9px 14px; font: 600 1rem/1 var(--text);
  color: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1320px) {
  .menu-btn { display: inline-flex; }
  /* solid header (no backdrop-filter) so this fixed panel positions against the viewport */
  .nav { position: fixed; inset: var(--nav-top, 116px) 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--pad) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li { border-bottom: 1px solid var(--rule); }
  .nav a, .nav button { color: var(--ink); }
  .nav a, .nav button { width: 100%; padding: 15px 2px; font-size: 1.25rem; justify-content: space-between; }
  [dir="rtl"] :is(.nav a, .nav button) { font-size: 1.08rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; display: none; min-width: 0; background: transparent; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; } .has-sub.open:hover .sub { display: block; }
  .sub a { padding: 10px 14px; color: var(--ink-2); font-size: 1.02rem; }
  .nav .btn { margin-top: 22px; width: 100%; min-height: 52px; justify-content: center; }
  /* B12 logins inside the menu, so phones reach them without scrolling to the footer */
  .nav-b12 { display: grid; gap: 10px; padding: 8px 0 18px; border-bottom: 2px solid var(--ink); }
  .nav-b12 > span { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
  [dir="rtl"] .nav-b12 > span { letter-spacing: 0; font-size: .95rem; }
  .nav-b12 > span svg { width: 15px; height: 15px; }
  .nav-b12 > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav .nav-b12 a { justify-content: center; padding: 13px 6px; font-size: .98rem; font-weight: 600; text-align: center; border: 1.5px solid var(--rule); color: var(--ink); background: var(--sheet-2); transition: border-color var(--hover), background-color var(--hover), color var(--hover); }
  .nav .nav-b12 a:hover, .nav .nav-b12 a:active { border-color: var(--contour); background: #fff; color: var(--ink); }
  .nav [aria-current="page"], .nav button[aria-current] { box-shadow: none; }
  /* lock the page behind the open menu (iOS Safari needs the root element locked too) */
  html:has(body.nav-open), body.nav-open { overflow: hidden; }
  body.nav-open .site-header { position: fixed; top: var(--hdr-top, 0); left: 0; right: 0; }
  body.nav-open main { margin-top: var(--hdr-h, 0); }   /* keeps the page from shifting under the pinned header */
  .nav { overscroll-behavior: contain; }
}
.lang-sm { display: none; }
@media (min-width: 1321px) { .nav-b12 { display: none; } }
@media (max-width: 420px) { .brand small { font-size: .6rem; letter-spacing: .04em; } .brand b { font-size: 1.15rem; } }
@media (max-width: 640px) { .site-header .wrap { gap: 10px; min-height: 68px; } .brand { gap: 8px; flex: 0 1 auto; min-width: 0; } .brand span { overflow: hidden; } [dir="rtl"] .brand b { font-size: .95rem; } .topbar { display: none; } .lang-sm { display: inline-block; margin-inline-start: auto; font-weight: 600; color: var(--gold); text-decoration: none; padding: 8px 4px; } .lang-sm + .menu-btn { margin-inline-start: 0; } .banner { font-size: .85rem; padding-block: 8px; } .hide-sm { display: none !important; } .menu-btn b { display: none; } .brand img { width: 46px; height: 46px; } .brand b { font-size: 1.05rem; } }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--space); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-bottom: 10px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head .lead { margin: 0; }
/* under each title: a gold ornament and the same title in the other language */
.collar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.orn { width: 74px; height: 10px; flex: none; background:
  linear-gradient(var(--gold), var(--gold)) 0 50% / 30px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 50% / 30px 1.5px no-repeat; position: relative; }
.orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.collar .alt { font: 500 .98rem/1.3 var(--text); color: var(--ink-3); }
[lang="en"].alt { font: 500 1rem/1.3 var(--serif); }
[lang="ar"].alt { font: 700 1.05rem/1.4 var(--serif); }
.pattern .collar .alt, .close .collar .alt { color: #b8cbbf; }

/* ---------------------------------------------------------------- hero: the school's photographs */
.hero { position: relative; min-height: clamp(560px, 84svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-on img, .slide.was-on img { animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide figcaption { position: absolute; inset-inline-end: var(--pad); top: 58px; font-size: .85rem; color: #fff; background: rgba(22, 45, 34, .72); padding: 6px 12px; opacity: 0; transition: opacity .6s .5s; }
.slide.is-on figcaption { opacity: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 45, 34, .94) 0%, rgba(22, 45, 34, .86) 48%, rgba(22, 45, 34, .25) 72%, rgba(22, 45, 34, .05) 88%), linear-gradient(0deg, rgba(22, 45, 34, .85) 0%, rgba(22, 45, 34, 0) 45%); }
[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(22, 45, 34, .94) 0%, rgba(22, 45, 34, .86) 48%, rgba(22, 45, 34, .25) 72%, rgba(22, 45, 34, .05) 88%), linear-gradient(0deg, rgba(22, 45, 34, .85) 0%, rgba(22, 45, 34, 0) 45%); }
.hero-inner { position: relative; width: 100%; padding-block: clamp(90px, 14vh, 160px) 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 4.2rem); margin-bottom: 18px; }
.hero .lead { color: rgba(255, 255, 255, .88); margin-bottom: 30px; }
.slide-nav { position: absolute; z-index: 2; top: 24px; inset-inline-end: var(--pad); display: flex; gap: 8px; background: rgba(22, 45, 34, .72); padding: 4px 10px; }
.slide-nav button { width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.slide-nav i { display: block; height: 3px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.slide-nav i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .slide-nav i::after { transform-origin: right; }
.slide-nav [aria-current] i::after { animation: tick var(--dur, 7s) linear forwards; }
.slide-nav.paused [aria-current] i::after { animation-play-state: paused; }
.slide-nav.manual [aria-current] i::after { animation: none; transform: none; }
@keyframes tick { to { transform: scaleX(1); } }
.facts { position: relative; list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; color: var(--ink); padding: 0; border-top: 3px solid var(--gold);
  max-width: calc(var(--wrap) - 2 * var(--pad)); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .5); }
.facts li { padding: 20px 24px; display: grid; gap: 2px; }
.facts li + li { border-inline-start: 1px solid var(--rule); }
.facts b { font: 600 1.7rem/1.1 var(--serif); color: var(--contour); }
[dir="rtl"] .facts b { font: 700 1.45rem/1.3 var(--serif); }
.facts span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-inner { flex-direction: column; align-items: stretch; padding-block: 38svh 22px; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(0deg, rgba(22, 45, 34, .96) 0%, rgba(22, 45, 34, .9) 45%, rgba(22, 45, 34, .35) 68%, rgba(22, 45, 34, .05) 100%); }
  .hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
  .hero .actions .btn { flex: 1 1 auto; }
  .slide figcaption { display: none; }
  .facts { grid-template-columns: repeat(4, 1fr); max-width: none; margin-inline: var(--pad); }
  .facts li { padding: 10px 6px; text-align: center; }
  .facts b { font-size: 1rem; white-space: nowrap; }
  [dir="rtl"] .facts b { font-size: .95rem; }
  .facts span { font-size: .66rem; line-height: 1.25; }
  .slide-nav { top: 14px; inset-inline-end: auto; inset-inline-start: var(--pad); background: none; padding: 0; gap: 6px; }
  .slide-nav button { width: 22px; height: 18px; }
  .slide-nav i { height: 2px; }
}

/* ---------------------------------------------------------------- welcome */
.welcome-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.body-lg { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.welcome .slogan { font: 500 1.5rem/1.3 var(--serif); color: var(--gold-ink); margin: 26px 0 22px; }
[dir="rtl"] .welcome .slogan { font: 700 1.35rem/1.6 var(--serif); font-style: normal; }
.collage { position: relative; min-height: 460px; }
.collage .c1 { position: absolute; inset-inline-end: 0; top: 0; width: 82%; height: 72%; object-fit: cover; }
.collage .c2 { position: absolute; inset-inline-start: 0; bottom: 0; width: 58%; height: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 18px 40px -20px rgba(22, 45, 34, .5); }
.collage .c3 { position: absolute; inset-inline-end: 8%; bottom: 4%; width: 104px; height: 104px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 10px 30px -10px rgba(22, 45, 34, .45); }
.collage::before { content: ""; position: absolute; inset-inline-start: 6%; top: 10%; width: 40%; height: 40%; background: var(--khatam) 0 0 / 40px 40px; opacity: .45; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } .collage { min-height: 340px; } }

/* ---------------------------------------------------------------- green pattern bands */
.pattern { background: var(--veil), var(--khatam) 0 0 / 64px 64px, var(--ink); color: #d4e1d9; }
.pattern h2, .pattern h3 { color: #fff; }
.pattern .lead { color: #c4d4ca; }
.pattern .link { color: var(--gold); }

/* ---------------------------------------------------------------- where: the map section */
.where-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.where .legend-box { margin: 28px 0 32px; }
.legend-box { list-style: none; padding: 18px 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(208, 173, 103, .45); display: grid; gap: 14px; max-width: 520px; }
.legend-box li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: .95rem; color: #c4d4ca; line-height: 1.4; }
.legend-box li svg { width: 26px; height: 26px; color: var(--gold); }
.legend-box b { display: block; color: #fff; font-weight: 600; }
@media (max-width: 900px) { .where-grid { grid-template-columns: 1fr; } .locator { width: 100%; justify-self: stretch; } }

/* the map sheet */
.locator { --display: "Barlow Condensed", "Readex Pro", system-ui, sans-serif; margin: 0; position: relative; width: min(100%, 540px); justify-self: end; background: #fff; padding: 16px 16px 12px; }
@media (max-width: 900px) { .locator { width: 100%; justify-self: stretch; } }
.sheet-margin { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--ink-2); padding: 0 2px 8px; }
.map-frame { border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; background: #fff; position: relative; overflow: hidden; margin: 6px; }
.map-frame svg { width: 100%; height: auto; display: block; aspect-ratio: 600 / 673; }
.map-frame svg text { font-family: var(--display); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
/* Arabic map labels: the text face, never tracked or uppercased (tracking breaks the joined letters apart) */
[dir="rtl"] .map-frame svg text { font-family: var(--text) !important; font-weight: 500; letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] .map-frame .home-name { font-weight: 700; }
[dir="rtl"] .sheet-margin { flex-wrap: wrap; }
.grat line { stroke: var(--contour); stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.grat-lbl text { font-size: 11px; fill: var(--ink-3); letter-spacing: .04em; }
.gov { fill: var(--sheet-2); stroke: var(--contour); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .6s; }
.gov--home { fill: url(#hatch); stroke: var(--gold-ink); stroke-width: 1.6; }
.ring { fill: none; stroke: var(--gold-ink); stroke-width: 1.2; stroke-dasharray: .012 .01; vector-effect: non-scaling-stroke; opacity: 0; }
.ring-lbl { font-size: 11px; fill: var(--gold-ink) !important; letter-spacing: .05em; }
.city-dot { fill: #fff; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.city-name { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.water { font-size: 11px; fill: var(--blue) !important; letter-spacing: .08em; }
.dist { font-size: 11px; fill: var(--gold-ink) !important; }
.pin-body { fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; }
.pin-halo { fill: var(--contour); opacity: .3; }
.leader-px { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.leader { stroke: var(--gold-ink); stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.north { position: absolute; top: 10px; inset-inline-end: 12px; width: 22px; height: 36px; pointer-events: none; }
.north svg { width: 100%; height: 100%; }
.north path { fill: var(--ink); }
.north text { font: 700 9px var(--display); fill: var(--ink); }
.home-name { font-size: 14px; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .05em; }
.home-sub { font-size: 11.5px; fill: var(--ink-2) !important; }
/* label sets per view: ring labels and the Amman distance belong to the close-up */
.locator .ring-mk, .locator .near { opacity: 0; transition: opacity .5s; }
.locator.is-district .ring-mk, .locator.is-district .near { opacity: 1; }
.locator .far, .locator .water-mk { transition: opacity .5s; }
.locator.is-district .far, .locator.is-district .water-mk { opacity: 0; }
.locator.is-district .ring { opacity: 1; }
.map-legend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 6px 0; font-size: .82rem; color: var(--ink-2); }
.scale { display: inline-flex; align-items: center; gap: 8px; }
.scale { width: 190px; flex: none; }
.scale i { display: block; height: 7px; width: 120px; border: 1.5px solid var(--ink); border-top: 0; transform: scaleX(var(--s, .4)); transform-origin: left; transition: transform 1.2s var(--ease); }
.scale b { margin-inline-start: calc((var(--s, .4) - 1) * 120px); transition: margin 1.2s var(--ease); }
[dir="rtl"] .scale i { transform-origin: right; }
.views { display: inline-flex; border: 1.5px solid var(--ink); }
.views button { font: inherit; letter-spacing: inherit; text-transform: inherit; background: #fff; color: var(--ink); border: 0; padding: 8px 14px; cursor: pointer; }
.views button + button { border-inline-start: 1.5px solid var(--ink); }
.views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-legend .credit { width: auto; margin-inline-start: auto; font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; text-transform: none; font-family: var(--text); font-weight: 400; }

/* map choreography (with JS only; without it the finished sheet shows at once) */
.js .locator:not(.is-drawn) .gov { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .locator:not(.is-drawn) .pin, .js .locator:not(.is-drawn) .mk:not(.grat-lbl) { opacity: 0; }
.locator.is-drawing .gov { stroke-dasharray: 1; animation: draw 1.6s var(--ease) forwards, fill-in .9s .9s ease forwards; fill-opacity: 0; }
.locator.is-drawing .gov:nth-child(3n) { animation-delay: .12s, 1s; }
.locator.is-drawing .gov:nth-child(3n+1) { animation-delay: .24s, 1.1s; }
.locator.is-drawn .mk { transition: opacity .6s .2s; }
.locator .pin { transform-box: fill-box; transform-origin: 50% 100%; }
.locator.pin-in .pin { animation: pin-drop .9s var(--ease) both; }
.locator.pin-in .pin-halo { animation: halo 2.4s 1s ease-out 2; transform-box: fill-box; transform-origin: center; }
.locator.is-district .ring { animation: draw-ring 1.4s var(--ease) both; }
.locator.is-district .ring--1 { animation-delay: .15s; } .locator.is-district .ring--2 { animation-delay: .3s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-46px) scale(.8); } 60% { opacity: 1; transform: translateY(3px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes halo { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }
@keyframes draw-ring { from { stroke-dashoffset: .4; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

/* ---------------------------------------------------------------- pathways scale chart */
.pathways { background: var(--sheet-2); border-block: 1px solid var(--rule); }
.scale-chart { --col: calc(100% / var(--n)); position: relative; padding-top: 34px; }
.grades { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-bottom: 1.5px solid var(--ink); font-size: .95rem; color: var(--ink); }
.grades span { padding: 0 0 12px; text-align: center; position: relative; white-space: nowrap; }
.grades span::after { content: ""; position: absolute; bottom: -1.5px; inset-inline-start: 50%; width: 1.5px; height: 10px; background: var(--ink); }
.grades .ey { color: var(--gold-ink); }
/* Early Years: a hatched span over the first three grades of the ruler, labelled above it */
.ey-band { position: absolute; top: 0; inset-inline-start: 0; width: calc(var(--col) * 3); height: calc(34px + 2.3em); pointer-events: none; display: flex; align-items: flex-start; padding: 4px 6px;
  background: repeating-linear-gradient(45deg, rgba(208, 173, 103, .14) 0 2px, transparent 2px 9px); border-inline-end: 1px dashed var(--gold-ink);
  font: 600 .8rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
[dir="rtl"] .ey-band { font: 500 .8rem/1.4 var(--text); letter-spacing: 0; }
.bands { list-style: none; margin: 0; padding: 0; position: relative; }
.band a { display: block; text-decoration: none; color: inherit; padding: 26px 0 8px; position: relative; }
.band + .band { border-top: 1px solid var(--rule); }
.band .line { display: block; position: relative; height: 18px; transition: opacity .35s ease; margin-inline-start: calc(var(--col) * var(--from) + var(--col) / 2);
  width: calc(var(--col) * (var(--to) - var(--from))); }
.band .line i { position: absolute; inset: 7px 0; background: var(--c); transform-origin: var(--origin, left); transition: transform 1.1s var(--ease), inset .3s var(--ease); }
[dir="rtl"] .band .line i { --origin: right; }
.band .line::before, .band .line::after { content: ""; position: absolute; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c); z-index: 1; }
.band .line::before { inset-inline-start: -8px; } .band .line::after { inset-inline-end: -8px; background: var(--c); }
.band-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 14px; margin-inline-start: calc(var(--col) * var(--from)); padding-inline-end: 34px; }
.band-text b { font: 600 1.7rem/1.05 var(--serif); color: var(--ink); }
[dir="rtl"] .band-text b { font: 700 1.35rem/1.4 var(--serif); }
.band-text span { font-weight: 600; color: var(--c-ink, var(--c)); }
.band-text small { flex-basis: 100%; color: var(--ink-2); font-size: .92rem; }
.band a > .arrow { position: absolute; inset-inline-end: 0; bottom: 18px; color: var(--contour); font-size: 1.3rem; }
.band--national { --c: var(--contour); }
.band--american { --c: var(--gold); --c-ink: var(--gold-ink); }
.band--british { --c: var(--blue); }
/* hovering one pathway quietly fades the others; both directions ease */
.bands:has(a:hover, a:focus-visible) .band:not(:hover, :focus-within) .line { opacity: .3; }
.band a:hover .line i, .band a:focus-visible .line i { inset: 5px 0; }
.band a:hover > .arrow { transform: translateX(6px); }
[dir="rtl"] .band a:hover > .arrow { transform: scaleX(-1) translateX(6px); }
.js .scale-chart:not(.is-in) .band .line i { transform: scaleX(0); }
.scale-chart .band:nth-child(2) .line i { transition-delay: .12s, 0s; } .scale-chart .band:nth-child(3) .line i { transition-delay: .24s, 0s; }
@media (max-width: 720px) {
  .grades { font-size: .7rem; letter-spacing: 0; }
  [dir="rtl"] .grades { font-size: .62rem; }
  .ey-band { font-size: .62rem; padding: 4px 2px; }
  [dir="rtl"] .grades .ey { color: transparent; }
  /* Pre-K, KG1, KG2 shortened so every grade keeps an equal column */
  [dir="ltr"] .grades .ey { font-size: 0; }
  [dir="ltr"] .grades .ey::before { content: attr(data-s); font-size: .7rem; }
  .band-text { margin-inline-start: 0; }
  .band-text b { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------- campus plates */
.plates { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, clamp(220px, 22vw, 310px)); gap: clamp(12px, 1.6vw, 22px); }
.plate { margin: 0; position: relative; border: 1px solid var(--ink); padding: 8px; background: #fff; display: flex; flex-direction: column; min-height: 0; }
.plate--lead { grid-row: span 2; }
.plate img { flex: 1; width: 100%; min-height: 0; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); transition: filter .5s; }
.plate:hover img { filter: none; }
.plate figcaption { display: flex; align-items: center; gap: 10px; padding: 9px 2px 1px; font-size: .9rem; color: var(--ink-2); }
.ref { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; background: var(--gold); color: var(--night); font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 860px) { .plates { grid-template-columns: 1fr 1fr; grid-template-rows: none; } .plate--lead { grid-column: span 2; grid-row: auto; } .plate img { aspect-ratio: 4 / 3; } .plate--lead img { aspect-ratio: 16 / 10; } }

/* ---------------------------------------------------------------- values */
.values { color: #d4e1d9; }
.values h2, .values h3 { color: #fff; }
.values-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.values-intro p { color: #c4d4ca; font-size: 1.08rem; max-width: 56ch; }
.values-intro .slogan { font: 500 1.5rem/1.3 var(--serif); color: var(--gold); margin-top: 8px; }
[dir="rtl"] .values-intro .slogan { font: 700 1.3rem/1.6 var(--serif); font-style: normal; }
.value-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.value-list > div { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.value-list svg { width: 24px; height: 24px; color: var(--gold); grid-row: span 2; margin-top: 2px; }
.values-photo { margin: 26px 0 0; position: relative; border: 1px solid rgba(208, 173, 103, .6); padding: 8px; }
.values-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.values-photo figcaption { position: absolute; inset-inline: 8px; bottom: 8px; padding: 40px 18px 14px; background: linear-gradient(0deg, rgba(22, 45, 34, .92), rgba(22, 45, 34, 0));
  font: 500 1.5rem/1.25 var(--serif); color: var(--gold); }
[dir="rtl"] .values-photo figcaption { font: 700 1.35rem/1.6 var(--serif); font-style: normal; }
.value-list dt { font: 600 1.45rem/1.15 var(--serif); color: #fff; }
[dir="rtl"] .value-list dt { font: 700 1.25rem/1.5 var(--serif); }
.value-list dd { margin: 0; font-size: .93rem; color: #b6c8bd; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .value-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- teachers */
.car-ctrls { display: flex; gap: 0; border: 1.5px solid var(--ink); }
.car-ctrls button { width: 50px; height: 46px; border: 0; background: #fff; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.car-ctrls button + button { border-inline-start: 1.5px solid var(--ink); }
.car-ctrls button:hover { background: var(--sheet-2); }
.car-prev .arrow { transform: scaleX(-1); }
[dir="rtl"] .car-prev .arrow { transform: none; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 2px 12px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .carousel { grid-auto-columns: 44%; } }
@media (max-width: 560px) { .carousel { grid-auto-columns: 70%; } }
.teacher { scroll-snap-align: start; margin: 0; text-align: center; }
.teacher { text-align: start; border: 1px solid var(--ink); padding: 8px; background: #fff; }
.teacher .face { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sheet-2); margin: 0 0 12px; }
.teacher .face img { width: 100%; height: 100%; object-fit: cover; }
.teacher .face .none { display: grid; place-content: center; justify-items: center; gap: 8px; height: 100%; color: var(--ink-3); font-size: .85rem;
  background: repeating-linear-gradient(-45deg, rgba(49, 97, 73, .08) 0 5px, transparent 5px 10px); }
.teacher .face .none svg { width: 34px; height: 34px; color: var(--contour); opacity: .7; }
.teacher figcaption { display: grid; gap: 2px; padding: 0 4px 4px; }
.teacher .sk-line { margin-inline: 0; }
.teacher b { display: block; color: var(--ink); font: 600 1.3rem/1.15 var(--serif); }
[dir="rtl"] .teacher b { font: 700 1.15rem/1.5 var(--serif); }
.teacher small { color: var(--ink-2); font-size: .93rem; }

/* ---------------------------------------------------------------- notices + upcoming */
.notices { background: var(--sheet-2); border-block: 1px solid var(--rule); }
.updates { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .updates { grid-template-columns: 1fr; } }
.news-list { display: grid; border-top: 1.5px solid var(--ink); }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.post.no-img { grid-template-columns: 1fr; }
.post .thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rule-2); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post h3 { margin: 6px 0 8px; font: 600 1.5rem/1.2 var(--serif); }
[dir="rtl"] .post h3 { font: 700 1.2rem/1.5 var(--serif); }
.post .meta { display: flex; gap: 12px; align-items: center; font-size: .85rem; color: var(--ink-3); }
.kind { font-size: .78rem; padding: 3px 9px; background: var(--ink); color: #fff; }
.kind--announcement { background: var(--gold); color: var(--night); }
.post p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.post .clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .toggle { background: none; border: 0; padding: 8px 0 0; font: 600 .95rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--contour); cursor: pointer; }
[dir="rtl"] .post .toggle { font: 600 .92rem var(--text); letter-spacing: 0; }
.full .post { grid-template-columns: 280px 1fr; }
.full .post.no-img { grid-template-columns: 1fr; }
@media (max-width: 640px) { .post, .full .post { grid-template-columns: 1fr; } .post .thumb { aspect-ratio: 16 / 9; } }
.upcoming { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.upcoming li { display: grid; grid-template-columns: 66px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.upcoming .day { display: grid; text-align: center; background: var(--ink); color: #fff; line-height: 1; height: 62px; align-content: center; }
.upcoming .day b { font: 700 1.9rem/1 var(--display); }
.upcoming .day small { font-size: .74rem; color: var(--gold); margin-top: 3px; }
.upcoming .what b { display: block; color: var(--ink); font-weight: 600; }
.upcoming .what small { color: var(--ink-3); }
.empty { color: var(--ink-2); padding: 22px 0; border-bottom: 1px dashed var(--rule); margin: 0; }
.upcoming li.empty { display: block; }

/* ---------------------------------------------------------------- skeletons: animated survey hatching */
.sk { display: block; background: repeating-linear-gradient(-45deg, rgba(49, 97, 73, .11) 0 5px, rgba(49, 97, 73, .03) 5px 10px); background-size: 28.28px 28.28px;
  animation: hatch 1.1s linear infinite; border: 1px dashed rgba(49, 97, 73, .3); }
.sk-line { height: 12px; margin: 8px 0; border: 0; }
.sk-line.tall { height: 20px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; margin-inline: auto; } .w70 { width: 70%; } .w80 { width: 80%; } .w100 { width: 100%; }
.teacher .w40 { margin-inline: auto; }
.upcoming .day.sk { background-color: transparent; }
.sk-btn { width: 130px; height: 48px; }
.sk-tile { width: 100%; margin: 0 0 10px; break-inside: avoid; }
.cal-skeleton { padding: 20px; }
.cal-sk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.cal-sk-grid span { aspect-ratio: 1.4; }
.sk-item { animation: sk-in .4s ease both; }
@keyframes hatch { to { background-position: 28.28px 0; } }
@keyframes sk-in { from { opacity: 0; } }
/* real content replacing a skeleton settles into place */
.is-loaded > * { animation: settle .6s var(--ease) both; }
.is-loaded > :nth-child(2) { animation-delay: .06s; } .is-loaded > :nth-child(3) { animation-delay: .12s; } .is-loaded > :nth-child(4) { animation-delay: .18s; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ---------------------------------------------------------------- route to admission */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; inset-inline: 21px; border-top: 2px dashed var(--contour); }
.steps li { position: relative; padding-inline-end: 8px; }
.stop { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--contour); color: var(--contour); font-size: 1.2rem; position: relative; margin-bottom: 20px; }
.steps li:last-child .stop { background: var(--gold); border-color: var(--gold); color: var(--night); }
.steps h3 { font: 600 1.4rem/1.2 var(--serif); margin-bottom: 8px; }
[dir="rtl"] .steps h3 { font: 700 1.2rem/1.5 var(--serif); }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 22px; bottom: 22px; inset-inline: 21px auto; border-top: 0; border-inline-start: 2px dashed var(--contour); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding-bottom: 26px; }
  .stop { grid-row: span 2; margin: 0; }
}

/* ---------------------------------------------------------------- close: the entrance photograph */
.close { position: relative; overflow: hidden; color: #fff; padding-block: clamp(90px, 12vw, 160px); text-align: center; }
.close-bg { position: absolute; inset: 0; }
.close-bg img { width: 100%; height: 100%; object-fit: cover; }
.close-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(22, 45, 34, .78), rgba(22, 45, 34, .9)); }
.close-inner { position: relative; }
.close h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.close p { font-size: 1.12rem; margin-bottom: 30px; color: rgba(255, 255, 255, .88); }
.close .actions { justify-content: center; }

/* ---------------------------------------------------------------- inner pages */
.page-hero { color: #d4e1d9; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); border-bottom: 2px solid var(--gold); background: var(--veil), var(--khatam) 0 0 / 64px 64px, var(--ink); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c4d4ca; }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); margin: 14px 0 18px; }
[dir="rtl"] .page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.crumbs { font-size: .85rem; color: var(--ink-3); }
.crumbs a { color: var(--contour); text-decoration: none; }
.soon { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 28px; border: 1.5px solid var(--ink); width: max-content; max-width: 100%; }
.chips:empty { display: none; }
.chip { font: 600 .95rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; padding: 12px 16px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
[dir="rtl"] .chip { font: 500 .95rem/1.2 var(--text); letter-spacing: 0; }
.chip + .chip { border-inline-start: 1.5px solid var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* calendar */
.cal { background: #fff; border: 1.5px solid var(--ink); outline: 1px solid var(--rule); outline-offset: 5px; overflow: hidden; min-height: 300px; margin: 6px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1.5px solid var(--ink); gap: 12px; }
.cal-head h2 { margin: 0; font-size: 1.8rem; }
.cal-head .car-ctrls button { height: 42px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grid .dow { text-align: center; font: 600 .85rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 12px 0; background: var(--sheet-2); border-bottom: 1px solid var(--rule); }
[dir="rtl"] .cal-grid .dow { font: 500 .85rem/1 var(--text); letter-spacing: 0; }
.cal-day { min-height: 108px; border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 6px; font-size: .85rem; }
.cal-day:nth-child(7n) { border-inline-end: 0; }
.cal-day.out { background: #fafcfb; color: #b3bfb8; }
.cal-day .n { font: 600 1rem/1 var(--display); display: inline-grid; place-items: center; width: 28px; height: 28px; }
.cal-day.today .n { background: var(--gold); color: var(--night); }
.ev { display: block; margin-top: 3px; font-size: .74rem; line-height: 1.3; padding: 3px 6px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev--school { background: var(--contour); } .ev--ministry { background: var(--night); } .ev--holiday { background: var(--gold); color: var(--night); } .ev--exam { background: var(--blue); }
.cal-list { list-style: none; margin: 0; padding: 0; display: none; }
@media (max-width: 720px) {
  .cal-day { min-height: 54px; text-align: center; }
  .cal-day .ev { display: none; }
  .cal-day.has::after { content: ""; display: block; width: 6px; height: 6px; background: var(--contour); margin: 2px auto 0; }
  .cal-list { display: grid; gap: 10px; padding: 16px; }
}
.cal-list li { display: flex; gap: 10px; align-items: baseline; }
.cal-list .d { font: 700 1rem var(--display); color: var(--ink); min-width: 4.5em; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0; font-size: .9rem; color: var(--ink-2); }
.dot { display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; vertical-align: -1px; }
.dot--school { background: var(--contour); } .dot--ministry { background: var(--night); } .dot--holiday { background: var(--gold); } .dot--exam { background: var(--blue); }

/* jobs */
.jobs { display: grid; border-top: 1.5px solid var(--ink); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.job h3 { margin: 0 0 6px; font: 600 1.5rem/1.2 var(--serif); }
.job .meta { color: var(--ink-3); font-size: .92rem; }
.job .desc { grid-column: 1 / -1; white-space: pre-line; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }

/* gallery: photographs packed with no wasted gutter */
.gallery { columns: 3 260px; column-gap: 10px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 10px; overflow: hidden; cursor: zoom-in; background: var(--rule-2); break-inside: avoid; }
.gallery img { width: 100%; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.035); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(22, 45, 34, .94); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 56px 16px; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 92vw); border: 8px solid #fff; }
.lightbox figcaption { color: #e3ebe6; text-align: center; }
.lightbox button { position: fixed; top: 50%; width: 50px; height: 50px; border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.lb-prev { inset-inline-start: 16px; } .lb-next { inset-inline-end: 16px; }
.lb-prev .arrow { transform: scaleX(-1); } [dir="rtl"] .lb-prev .arrow { transform: none; }
.lightbox .x { top: 16px; inset-inline-end: 16px; }

/* forms */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.form-split { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .split, .form-split { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1.5px solid var(--ink); outline: 1px solid var(--rule); outline-offset: 5px; padding: clamp(20px, 3vw, 32px); margin: 6px; }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form .grid2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 7px; font: 600 .92rem/1.3 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
[dir="rtl"] .form label { font: 600 .92rem/1.4 var(--text); letter-spacing: 0; text-transform: none; }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink); width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--rule); border-bottom-color: var(--ink); border-radius: 0; background: #fff; min-height: 50px; transition: border-color var(--hover), background-color var(--hover), color var(--hover); }
[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form textarea { resize: vertical; min-height: 116px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--contour); background: var(--sheet-2); outline: none; box-shadow: 0 2px 0 var(--gold); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font: 400 .98rem/1.5 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink); }
.form .check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--contour); }
.form [aria-invalid="true"] { border-color: #b3261e; background: #fdf3f2; }
.form .btn { margin-top: 10px; }
.form-msg { margin: 14px 0 0; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ink); background: var(--gold-wash); padding: 14px 16px; }
.form-msg.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1.5px solid var(--ink); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-ink); margin-top: 3px; }
.contact-list b { display: block; font: 600 .85rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .contact-list b { font: 500 .88rem var(--text); letter-spacing: 0; }
.contact-list a { font-weight: 500; text-decoration: none; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 1.5px solid var(--ink); background: var(--sheet-2); }
.modal { border: 1.5px solid var(--ink); border-radius: 0; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 70px -20px rgba(22, 45, 34, .5); }
.modal::backdrop { background: rgba(22, 45, 34, .6); }
.modal form { padding: 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { font-size: 1.6rem; margin: 0; }
.modal-head h2 span { color: var(--ink-3); }
.x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: #b7c9bf; font-size: .95rem; padding-top: 72px; }
.site-footer a { color: #e2ece6; text-decoration: none; display: inline-flex; gap: 9px; align-items: center; }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 { color: var(--gold); font-size: 1rem; letter-spacing: .14em; margin-bottom: 18px; }
[dir="rtl"] .site-footer h2 { letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer ul span { display: inline-flex; gap: 9px; align-items: center; }
.site-footer svg { color: var(--gold); }
.site-footer .cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.foot { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.foot-brand img { background: #fff; border-radius: 50%; padding: 5px; margin-bottom: 16px; }
.foot-brand b { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 30px; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; font-size: .84rem; }
.foot-bottom small { color: #8fa69a; margin-inline-end: auto; }
/* footer credit: magenta on a quiet pill; hover only underlines the name, nothing else moves */
.site-footer a.credit { gap: 8px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #dfe8e2; font-size: .9rem; transition: border-color var(--hover), background-color var(--hover), color var(--hover); }
.credit b { color: #ff3d8b; font-weight: 700; font-size: 1rem; text-decoration: underline 1.5px transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.site-footer a.credit:hover { color: #dfe8e2; border-color: #ff3d8b; background: rgba(255, 61, 139, .08); }
.site-footer a.credit:hover b { text-decoration-color: #ff3d8b; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }
.wa-fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .25s var(--ease); }
.wa-fab:hover { transform: scale(1.07); }
/* back to the top: the corner opposite WhatsApp, shown once the visitor has scrolled */
.to-top { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--gold);
  border: 1.5px solid var(--gold); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color var(--hover); }
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--contour); }
@media (max-width: 640px) { .foot-bottom { padding-bottom: 96px; } }
.cta-visible .wa-fab { opacity: 0; pointer-events: none; transform: scale(.6); }
.wa-fab { transition: transform .25s var(--ease), opacity .25s; }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- the opening sequence (first visit per session) */
.intro { display: none; }
.intro-on .intro { display: grid; position: fixed; inset: 0; z-index: 300; place-items: center; background: #fff;
  clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.76, 0, .24, 1);
  animation: intro-failsafe 0s 5s forwards; }
.intro-on body { overflow: hidden; animation: unlock 0s 5s forwards; }
@keyframes unlock { to { overflow: visible; } }
.intro.out { clip-path: inset(0 0 100% 0); }
.intro-sheet { display: grid; justify-items: center; text-align: center; position: relative; padding: 24px; }
.reticle { position: absolute; top: 24px; width: 200px; height: 200px; left: 50%; margin-left: -100px; margin-top: -44px; }
.reticle * { fill: none; stroke: var(--contour); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
.reticle .r2 { stroke: var(--gold); stroke-dasharray: .01 .012; animation: draw 1.4s .2s var(--ease) forwards, spin 14s linear infinite; transform-origin: 100px 100px; }
.intro-sheet img { width: 112px; height: 112px; position: relative; animation: seal-in 1s .25s var(--ease) both; }
.intro-sheet img + .intro-coords { margin-top: 70px; }
.intro-label { margin: 0 0 22px; font: 600 .9rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .intro-label { font: 500 .95rem/1.4 var(--text); letter-spacing: 0; }
.intro-coords { margin: 0; font: 600 clamp(1.7rem, 4.6vw, 2.5rem)/1.2 var(--serif); color: var(--ink); }
[dir="rtl"] .intro-coords { font: 700 clamp(1.6rem, 4.6vw, 2.3rem)/1.5 var(--serif); }
.intro-name { margin: 12px 0 26px; color: var(--gold-ink); font-weight: 500; opacity: 0; transition: opacity .5s; }
.intro.located .intro-name { opacity: 1; }
.intro-rule { display: block; width: min(320px, 70vw); height: 3px; background: var(--rule-2); overflow: hidden; }
.intro-rule i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .35s var(--ease); }
[dir="rtl"] .intro-rule i { transform-origin: right; }
@keyframes seal-in { from { opacity: 0; transform: scale(.82); filter: blur(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes intro-failsafe { to { visibility: hidden; } }

/* page to page: the next sheet slides into place; a gold survey rule shows the fetch */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sheet-out .35s ease both; }
::view-transition-new(root) { animation: sheet-in .55s var(--ease) both; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } }
.nav-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 250; pointer-events: none; }
[dir="rtl"] .nav-progress { transform-origin: right; }
.nav-progress.go { animation: progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes progress { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 100% { transform: scaleX(.92); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .scale-chart:not(.is-in) .band .line i { transform: none; }
}
#main:focus { outline: none; }

/* ---------------------------------------------------------------- inner pages (blocks from src/pages.js) */
.tint { background: var(--sheet-2); }
/* two plain inner-page blocks in a row share one gap (home sections keep their own spacing) */
.blk:not(.tint):not(.pattern) + .blk:not(.tint):not(.pattern) { padding-top: 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip > figure { order: -1; }
.split .body-lg + .body-lg { margin-top: 0; }
.split-photo { margin: 0; position: relative; }
.split-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.split-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--gold); z-index: -1; }
[dir="rtl"] .split-photo::before { inset: 14px 14px -14px -14px; }
.prose { max-width: 820px; }
.prose .body-lg { max-width: 68ch; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards li { background: var(--sheet); border: 1px solid var(--rule-2); border-top: 3px solid var(--gold); padding: 26px 24px 24px; }
.cards h3 { font: 600 1.3rem/1.25 var(--serif); margin-bottom: 10px; }
.cards p { margin: 0; color: var(--ink-2); }
.pattern .cards li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); border-top-color: var(--gold); }
.pattern .cards p { color: #c4d4ca; }

.go-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.go-cards a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px 24px 58px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color var(--hover), background-color var(--hover), box-shadow var(--hover), transform var(--hover); }
.go-cards a:hover { border-color: var(--contour); box-shadow: 0 14px 34px rgba(22, 45, 34, .1); transform: translateY(-2px); }
.go-cards small { color: var(--gold-ink); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.go-cards h3 { font: 600 1.35rem/1.25 var(--serif); margin: 8px 0; }
.go-cards p { margin: 0; color: var(--ink-2); }
.go-cards .arrow, .go-cards a > svg { position: absolute; bottom: 22px; inset-inline-start: 24px; width: 22px; height: 22px; color: var(--contour); transition: transform .2s; }
.go-cards a:hover .arrow { transform: translateX(5px); }
[dir="rtl"] .go-cards .arrow { transform: scaleX(-1); }
[dir="rtl"] .go-cards a:hover .arrow { transform: scaleX(-1) translateX(5px); }
.go-cards--dark a { background: rgba(255, 255, 255, .06); border-color: rgba(208, 173, 103, .45); color: #fff; padding-bottom: 64px; }
.go-cards--dark a:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.go-cards--dark small { color: var(--gold); }
.go-cards--dark h3 { color: #fff; font-size: 1.7rem; }
.go-cards--dark a > svg { color: var(--gold); }

.letter { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; max-width: 1080px; }
.portrait { aspect-ratio: 4 / 5; background: var(--veil), var(--khatam) 0 0 / 48px 48px, var(--ink); display: grid; place-items: center; border-bottom: 3px solid var(--gold); position: sticky; top: 120px; }
.portrait span { font: 600 3.4rem/1 var(--serif); color: var(--gold); }
.letter-p { color: var(--ink-2); max-width: 68ch; line-height: 1.75; }
.sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.sign b { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.sign span { color: var(--gold-ink); font-weight: 600; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; max-width: 980px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule-2); font-size: 1.05rem; }
.checklist svg { width: 22px; height: 22px; color: #fff; background: var(--contour); border-radius: 50%; padding: 3px; margin-top: 2px; }

.fees { border-collapse: collapse; width: 100%; max-width: 680px; background: var(--sheet); border: 1px solid var(--rule-2); }
.fees th, .fees td { padding: 16px 22px; border-bottom: 1px solid var(--rule-2); text-align: start; font-weight: 400; }
.fees td { text-align: end; font: 600 1.15rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.fees .total { background: var(--gold-wash); }
.fees .total th { font-weight: 600; }
.fees .total td { color: var(--gold-ink); font-size: 1.35rem; }
.fees-note { color: var(--ink-2); max-width: 680px; margin-top: 16px; }

.faq { max-width: 860px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 1.12rem/1.4 var(--text); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--text); color: var(--gold-ink); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--contour); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq details[open] p { animation: faq-in .25s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

.value-list--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.close--plain { background: var(--veil), var(--khatam) 0 0 / 64px 64px, var(--ink); padding-block: clamp(64px, 8vw, 110px); }
.close--plain h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* organisational chart: stacked tiers joined by a gold spine */
.org { display: grid; gap: 28px; justify-items: center; position: relative; }
.org > * { position: relative; }
.org > * + *::before { content: ""; position: absolute; top: -28px; left: 50%; height: 28px; border-inline-start: 2px solid var(--gold); }
.org-top { display: grid; gap: 12px; justify-items: center; }
.org-top .org-box + .org-box { position: relative; }
.org-box { display: inline-block; padding: 12px 22px; background: var(--sheet); border: 1.5px solid var(--ink); font-weight: 600; color: var(--ink); text-align: center; }
.org-box--gm { background: var(--ink); color: #fff; font: 600 1.15rem/1.3 var(--serif); padding: 14px 30px; }
.org-heads { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; width: 100%; border-top: 2px solid var(--gold); }
.org-heads > li { display: grid; gap: 10px; align-content: start; }
.org-box--head { background: var(--contour); border-color: var(--contour); color: #fff; padding: 12px 10px; }
.org-team { list-style: none; margin: 0; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule-2); display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.org-team li { padding-inline-start: 12px; position: relative; }
.org-team li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.org-coords { width: 100%; text-align: center; }
.org-label { display: inline-block; font: 600 .82rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
[dir="rtl"] .org-label { letter-spacing: 0; font-size: .95rem; }
.org-coords ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.org-coords .org-box { font-size: .9rem; padding: 10px 8px; display: grid; place-items: center; border-color: var(--rule); }

@media (max-width: 1000px) { .org-heads { grid-template-columns: repeat(2, 1fr); } .org-coords ul { grid-template-columns: repeat(3, 1fr); } .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .split-photo::before { display: none; }
  .letter { grid-template-columns: 1fr; }
  .portrait { position: static; width: 120px; aspect-ratio: 1; border-radius: 50%; border: 0; }
  .portrait span { font-size: 2.4rem; }
}
@media (max-width: 640px) {
  .cards, .cards--2, .checklist { grid-template-columns: 1fr; }
  .org-heads { grid-template-columns: 1fr; }
  .org-coords ul { grid-template-columns: 1fr 1fr; }
  .fees th, .fees td { padding: 14px 14px; }
}

/* ---------------------------------------------------------------- accreditation: quiet grey marks that take their colour on hover */
.accred { padding-block: clamp(40px, 5vw, 64px); border-block: 1px solid var(--rule-2); background: var(--sheet); }
.accred h2 { font: 600 .82rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin: 0 0 28px; }
[dir="rtl"] .accred h2 { letter-spacing: 0; font-size: 1rem; }
.accred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px clamp(32px, 5vw, 72px); }
.accred-list li { display: grid; justify-items: center; gap: 12px; }
.accred-list img, .foot-logos img { height: var(--h); width: auto; display: block; transition: filter .35s ease, opacity .35s ease, transform .35s ease; }
.accred-list img { filter: grayscale(1) contrast(.85); opacity: .5; }
.accred-list span { font-size: .78rem; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; transition: color .35s; }
.accred-list li:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
.accred-list li:hover span { color: var(--contour); }
@media (hover: none) { .accred-list img { opacity: .75; } }
@media (max-width: 640px) {
  .accred-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .accred-list li:first-child { grid-column: 1 / -1; }
  .accred-list img { height: calc(var(--h) * .82); }
}

.foot-accred { display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-accred > span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8fa69a; }
[dir="rtl"] .foot-accred > span { letter-spacing: 0; font-size: .9rem; }
.site-footer .foot-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.foot-logos img { height: calc(var(--h) * .62); filter: brightness(0) invert(1); opacity: .45; }
.foot-logos li:hover img { opacity: .95; }

/* ---------------------------------------------------------------- staff: names in the org chart, leader photos, the team directory */
.org-box small:empty { display: none; }
.org-box small { display: block; font: 500 .8rem/1.3 var(--text); opacity: .85; margin-top: 3px; }
.org-box--gm small { color: var(--gold); opacity: 1; }
.portrait.has-photo { background: var(--sheet-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .portrait.has-photo { overflow: hidden; } }

.staff { display: grid; gap: 12px; }
.staff-dept { border: 1px solid var(--rule); background: var(--sheet); }
.staff-dept summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font: 600 1.2rem/1.3 var(--serif); color: var(--ink); }
.staff-dept summary::-webkit-details-marker { display: none; }
.staff-dept summary small { font: 600 .8rem/1 var(--text); color: var(--gold-ink); background: var(--gold-wash); padding: 4px 9px; border-radius: 999px; }
.staff-dept summary::after { content: "+"; margin-inline-start: auto; font: 400 1.6rem/1 var(--text); color: var(--gold-ink); transition: transform .25s; }
.staff-dept[open] summary::after { transform: rotate(45deg); }
.staff-dept summary:hover { color: var(--contour); }
.staff-grid { list-style: none; margin: 0; padding: 4px 22px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.staff-dept[open] .staff-grid { animation: faq-in .3s ease-out; }
.staff-grid li { display: grid; gap: 2px; align-content: start; }
.staff-face { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sheet-2); margin-bottom: 8px; border-bottom: 2px solid var(--gold); }
.staff-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-grid b { font: 600 1rem/1.25 var(--text); color: var(--ink); }
.staff-grid small { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 640px) { .staff-grid { grid-template-columns: repeat(2, 1fr); padding: 4px 14px 18px; gap: 18px 12px; } .staff-dept summary { padding: 16px 14px; } }

/* laptop widths (1321–1500px): the full menu stays visible, with tighter spacing so it never runs off the edge */
@media (min-width: 1321px) and (max-width: 1500px) {
  .site-header .wrap { gap: 12px; }
  .nav a, .nav button { padding-inline: 6px; font-size: .9rem; }
  [dir="rtl"] :is(.nav a, .nav button) { font-size: .9rem; }
  .nav .btn { padding-inline: .9em; font-size: .92rem; }
  .brand b { font-size: 1.15rem; }
}
