/* ==========================================================================
   Localization & Export Forum — Website (V1)
   From the Figma file "Localization & Export Forum — Website (V1)":
   Full · EN, Full · AR (desktop 1440) and Mobile · EN, Mobile · AR (390)
   ========================================================================== */

/* The Arabic SemiBold in the design is the IBM Plex 4.0.2 release (narrower letters, stacked lam-meem);
   Regular, Medium and Bold match the current release served by Google Fonts. Declared after the Google
   stylesheet, so it takes over weight 600 for every script. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@ibm/plex@4.0.2/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
}
/* Inter 3.19: the version the design is laid out with (the newer Google Fonts Inter has other widths and a narrower "1") */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web%20latin)/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+2190-21FF;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web)/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web%20latin)/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+2190-21FF;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web)/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web%20latin)/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+2190-21FF;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web)/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web%20latin)/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+2190-21FF;
  src: url("https://cdn.jsdelivr.net/npm/inter-ui@3.19.3/Inter%20(web)/Inter-Bold.woff2") format("woff2"); }

/* ---------- Tokens (Figma colour variables + values read from the frames) ---------- */
:root {
  --brand-green: #28ac4a;
  --brand-green-hover: #1e8f3c;
  --brand-gold: #d4a25d;
  --accent-gold: #c8a264;          /* eyebrows, markers, live link, footer tag */

  --bg-nav: #091915;
  --bg-dark: #0a1f1a;
  --bg-dark-2: #0d3a2e;
  --bg-light: #f1f6f2;
  --bg-footer: #091915;

  --surface-card-solid: #123d33;
  --surface-inset: #0a2b24;
  --surface-pill-white: #eafbf3;

  --border-on-light: #d5dfd8;
  --text-on-dark: #eaf4ee;
  --text-on-dark-muted: #9fb9ac;
  --text-on-light: #0b201b;
  --text-on-light-muted: #3c5048;
  --text-on-green: #06261a;
  --text-pill: #0b3c33;
  --eyebrow-light: #1b6a4a;

  /* Section fills (solid in the design) */
  --bg-speakers: #0d4a38;
  --bg-sectors: #0b2e27;
  --bg-deep: #0a1f1a;
  --bg-messages: #0d352c;
  --bg-integration: #0e3a2d;
  --bg-cases: #0c2f28;
  --bg-program: #0a2b24;

  /* Themeable surfaces (the sun toggle swaps these) */
  --on-dark: var(--text-on-dark);
  --on-dark-muted: var(--text-on-dark-muted);
  --card: rgba(255, 255, 255, 0.08);
  --card-soft: rgba(234, 244, 238, 0.05);
  --card-faint: rgba(234, 244, 238, 0.04);
  --card-panel: #225848;           /* speaker / sponsor card body */
  --stroke: rgba(255, 255, 255, 0.14);
  --stroke-strong: rgba(234, 244, 238, 0.2);
  --hairline: rgba(234, 244, 238, 0.1);
  --inset: var(--surface-inset);
  --input-bg: var(--surface-inset);

  --font-en: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-inter: "Inter", "IBM Plex Sans", system-ui, sans-serif;  /* the layers the design sets in Inter */
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, Arial, sans-serif;

  --container: 1240px;
  --gutter: 100px;
  --section-pad: 112px;
  --section-pad-tight: 96px;    /* minister, speakers and audience bands */
  --head-gap: 40px;
  --head-gap-lg: 48px;          /* sections drawn with the wider title gap */
  --header-h: 88px;

  --shadow-card: 0 24px 60px 0 rgba(0, 0, 0, 0.3);
  --shadow-empty: 0 20px 50px 0 rgba(0, 0, 0, 0.25);
  --shadow-photo: 0 30px 60px -28px rgba(6, 38, 26, 0.55);
  --shadow-white-btn: 0 10px 30px 0 rgba(0, 0, 0, 0.25);
  --glow-green: 0 8px 24px 0 rgba(40, 172, 73, 0.35);
  --session-bg: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27 preserveAspectRatio=%27none%27%3E%3ClinearGradient id=%27g%27 gradientUnits=%27userSpaceOnUse%27 x1=%270.5%27 y1=%270.5%27 x2=%27-0.20711%27 y2=%27-0.20711%27%3E%3Cstop offset=%270%27 stop-color=%27%23ffffff%27 stop-opacity=%270.1%27/%3E%3Cstop offset=%271%27 stop-color=%27%23ffffff%27 stop-opacity=%270.04%27/%3E%3C/linearGradient%3E%3Crect width=%271%27 height=%271%27 fill=%27url(%23g)%27/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="light"] {
  --bg-speakers: #e6f0ea;
  --bg-sectors: #eef4f0;
  --bg-deep: #f6faf7;
  --bg-messages: #e9f1ec;
  --bg-integration: #eef4f0;
  --bg-cases: #e9f1ec;
  --bg-program: #f1f6f2;
  --on-dark: var(--text-on-light);
  --on-dark-muted: var(--text-on-light-muted);
  --card: #ffffff;
  --card-soft: #ffffff;
  --card-faint: #ffffff;
  --card-panel: #ffffff;
  --stroke: var(--border-on-light);
  --stroke-strong: var(--border-on-light);
  --hairline: var(--border-on-light);
  --inset: #f1f6f2;
  --input-bg: #ffffff;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 17px;
  line-height: 28px;
  color: var(--on-dark);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="ar"] body { font-family: var(--font-ar); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography (desktop) ---------- */
.display, .h1, .h2, .h3, .h4 { font-weight: 700; }
.display { font-size: 72px; line-height: 78px; letter-spacing: -0.015em; }
.h1 { font-size: 64px; line-height: 70px; letter-spacing: -0.012em; }
.h2 { font-size: 48px; line-height: 55px; letter-spacing: -0.008em; }
.h3 { font-size: 28px; line-height: 36px; letter-spacing: -0.003em; }
.h4 { font-size: 28px; line-height: 36px; letter-spacing: -0.003em; }
/* Arabic: no tracking (it breaks joining); the 48px titles sit in a 72px line box */
:lang(ar) { letter-spacing: 0 !important; }
:lang(ar) .h2 { line-height: 72px; }

.lead { font-size: 20px; line-height: 32px; }
.small { font-size: 17px; line-height: 28px; }
.caption { font-size: 15px; line-height: 24px; }
.muted { color: var(--on-dark-muted); }

.eyebrow {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--on-dark-muted);
}
.eyebrow--bright { color: var(--on-dark); }
.eyebrow--gold { color: var(--accent-gold); }

/* Headline gradient: one green→gold gradient across the whole title box, left to right in both
   languages; white runs are painted over it */
.grad {
  background-image: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad .plain { -webkit-text-fill-color: var(--text-on-dark); color: var(--text-on-dark); }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.icon-arrow { width: 16px; height: 16px; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--brand-green);
  --btn-fg: var(--text-on-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: var(--glow-green);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { --btn-bg: var(--brand-green-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--mint { --btn-bg: var(--surface-pill-white); --btn-fg: var(--text-pill); box-shadow: var(--shadow-white-btn); }
.btn--mint:hover { --btn-bg: #ffffff; }

/* block-level so the 21px link does not sit in a taller text line box */
.link-arrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  color: var(--brand-green);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow:hover { gap: 14px; color: #3cc35e; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .container { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { flex: none; display: block; }
/* the Figma logo vectors (Logo/on-dark), stretched to the instance box like the design */
.logo__img { display: block; width: 178px; height: 44px; }

.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-nav ul { display: flex; align-items: center; gap: 24px; }
.main-nav ul a {
  position: relative;
  display: block;
  padding: 12px 0;
  font-size: 15px;
  line-height: 21px;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.main-nav ul a:lang(en) { font-family: var(--font-inter); }
.main-nav ul a:hover { color: var(--text-on-dark); }
.main-nav ul a[aria-current="page"] { color: var(--text-on-dark); font-weight: 700; transform: translateY(-5px); }
.main-nav ul a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-green);
}
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 244, 238, 0.25);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-on-dark);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}
/* The switch label is set in the page's caption style: on English pages "العربية" is drawn in IBM Plex Sans,
   which has no Arabic letters, so Figma falls back to Noto Sans Arabic; on Arabic pages "English" uses Plex Arabic */
.lang-switch:lang(ar) { font-family: "IBM Plex Sans", "Noto Sans Arabic", var(--font-ar); }
.lang-switch:lang(en) { font-family: var(--font-ar); }
.lang-switch:hover { background: rgba(234, 244, 238, 0.08); }
/* desktop header: links, button and switch take the widths drawn in the frame (set per page by the build) */
@media (min-width: 1141px) {
  .main-nav ul a[style], .header-cta[style], .header-lang[style] { width: var(--nw); }
  .header-lang { justify-content: center; }
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(234, 244, 238, 0.25);
  color: var(--text-on-dark);
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(234, 244, 238, 0.08); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline-block; }

.menu-toggle { display: none; }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 13.33px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { top: -4.17px; }
.menu-toggle span::after { top: 4.17px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(4.17px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-4.17px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-pad); }
.section--tight { padding-block: var(--section-pad-tight); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }
.section--light .muted { color: var(--text-on-light-muted); }
.section--light .eyebrow { color: var(--eyebrow-light); }
.section--dark { color: var(--on-dark); }
.bg-speakers { background: var(--bg-speakers); }
.bg-sectors { background: var(--bg-sectors); }
.bg-deep { background: var(--bg-deep); }
.bg-messages { background: var(--bg-messages); }
.bg-integration { background: var(--bg-integration); }
.bg-cases { background: var(--bg-cases); }
.bg-program { background: var(--bg-program); }
.section--border-top { border-top: 1px solid var(--border-on-light); }

/* Bands rebuilt from the Figma layers (build.mjs band()): the band's own fills (--fbg-*), the photo
   (cover, centred, opacity --fop-*) and the overlay layers above it (--fov-*); -d desktop, -m phone */
.hero, .cta, .photo-band, :root:not([data-theme="light"]) .section[data-fig] { background: var(--fbg-d); }
.hero, .cta, .photo-band { position: relative; isolation: isolate; overflow: hidden; }
.fig-photo, .fig-photo-pic { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
img.fig-photo, .fig-photo-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: var(--fop-d, 1); }
[data-fig][style*="--fov-d"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--fov-d);
}

.section-head { margin-bottom: var(--head-gap); }
.section--spaced .section-head { margin-bottom: var(--head-gap-lg); }
.section-head .h2 + p { margin-top: 16px; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.section-head--split > div { flex: 0 1 720px; }
.section-head--split > p { flex: 0 1 420px; }
.section--opps .section-head--split > p { flex-basis: 380px; }

/* ---------- Hero ---------- */
.hero { color: var(--text-on-dark); }

.hero--home { padding: 72px 0 56px; }
.hero--page { padding: 120px 0 110px; }
/* the Arabic About desktop frame closes its hero with 120px */
@media (min-width: 761px) { html[lang="ar"] .hero--overlay-fixed { padding-bottom: 120px; } }
.hero--compact { padding: 96px 0; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.hero-eyebrow::before { content: ""; flex: none; width: 40px; height: 2px; background: var(--brand-green); }
.hero .display { margin-top: 24px; }
.hero .display + .lead { margin-top: 24px; }
.hero .lead { max-width: 760px; color: rgba(234, 244, 238, 0.9); }
.hero .h1 { max-width: 1000px; }
.hero .h1 + .lead { margin-top: 28px; max-width: 720px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 15px; line-height: 24px; color: var(--text-on-dark-muted); }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb [aria-current] { color: var(--text-on-dark); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* hero cards: the 1px inside stroke counts in the layout (24 + 1 above, 28 + 1 below), so the cards are 166 and 158 tall */
.stats {
  margin-top: 40px;
  padding: 24px 31px 28px;
  border-radius: 20px;
  background: rgba(27, 63, 60, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.stats__label { font-size: 13px; line-height: 20px; color: var(--text-on-dark-muted); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.stat__value { display: block; font-size: 44px; font-weight: 700; line-height: 48px; letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--text-on-dark-muted); }
/* "+1500" keeps its plus sign on the left in Arabic too */
[dir="rtl"] .stat__value { direction: ltr; unicode-bidi: isolate; }

.countdown {
  margin-top: 16px;
  padding: 24px 0 28px;
  /* the row is 1176 wide and starts 1px past the padding, on the start side */
  padding-inline: 32px 30px;
  border-radius: 20px;
  background: rgba(6, 35, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.countdown__head { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 20px; }
.countdown__date { color: var(--accent-gold); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; margin-top: 20px; text-align: center; }
.countdown__value { display: block; font-size: 36px; font-weight: 700; line-height: 40px; letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }
.countdown__unit { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--text-on-dark-muted); }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 13px; line-height: 20px; color: var(--text-on-dark-muted); }
.hero-foot__brand { margin-right: -0.25em; font-size: 12px; font-weight: 500; line-height: 17px; letter-spacing: 0.25em; text-transform: uppercase; }

/* ---------- Photos / splits ---------- */
.photo { overflow: hidden; border-radius: 20px; box-shadow: 0 30px 70px 0 rgba(9, 25, 21, 0.22); }
.message .photo { box-shadow: 0 26px 60px 0 rgba(9, 25, 21, 0.25); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 600 / 460; }

.split { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 600px); align-items: center; justify-content: space-between; gap: 60px; }
.split__body > * + * { margin-top: 16px; }
.split--tall .split__body > * + * { margin-top: 20px; }
.split--tall .photo--wide { aspect-ratio: 600 / 480; }
.split__body .eyebrow + .h2 { margin-top: 0; }
.split__body .link-arrow { margin-top: 28px; }

/* Minister teaser (home) */
.message { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 56px; }
.message .photo { aspect-ratio: 280 / 248.88; }
.message .h3 { max-width: 880px; }
.message p { margin-top: 18px; max-width: 880px; }
.message .link-arrow { margin-top: 18px; }

/* Minister message (about) */
.message--full { grid-template-columns: 484px minmax(0, 1fr); align-items: start; }
.message--full .photo { aspect-ratio: 484 / 440; }
.message--full .h2 + p { margin-top: 18px; }
.message--full p + p { margin-top: 18px; }

/* ---------- National logos ---------- */
.section--national { padding-block: 64px 80px; }
.section--national.section--flush { padding-block: 0 96px; border-top: 0; }
.section--national:lang(ar) { border-top: 0; }
/* the Arabic desktop frame keeps the minister band at 402px: the photo column ends 57.12px above its edge */
@media (min-width: 761px) { html[lang="ar"] .section--minister { padding-bottom: 57.12px; } }
.section--national.section--flush:lang(ar) { padding-block: 64px 176px; }
.partners-title { text-align: center; margin-bottom: 40px; }
/* Same left-to-right order in both languages (the Arabic frames do not mirror it) */
.logo-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 43px; direction: ltr; }
.logo-strip a { transition: transform 0.2s var(--ease); }
.logo-strip a:hover { transform: translateY(-2px); }


/* ---------- Carousel (speakers / sponsors) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track > * { scroll-snap-align: start; flex: none; }

.speaker {
  width: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stroke);
  user-select: none;
}
.speaker__photo { aspect-ratio: 258 / 260; background: #dceae4; }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* the body frame is 260 wide inside the 258px border box (220px text column) */
.speaker__body { width: 260px; padding: 20px; color: var(--on-dark); }
.speaker__name { font-size: 22px; font-weight: 600; line-height: 30px; }
.speaker__org { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 43px; margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--on-dark-muted); }

/* Logo tiles (speaker / sponsor / participant chips, national logos). Every frame draws its own tile size,
   radius and fill and its own box for the logo, so build.mjs writes them per tile (-d desktop, -m phone). */
.ftile { position: relative; display: block; flex: none; overflow: hidden; width: var(--tw-d); height: var(--th-d); border-radius: var(--tr-d); background: var(--tbg-d); }
.ftile img { position: absolute; left: var(--ix-d); top: var(--iy-d); width: var(--iw-d); height: var(--ih-d); max-width: none; object-fit: var(--fit-d); background: var(--ibg-d); pointer-events: none; }
/* the desktop frame with a session expanded draws that session's tiles from its own values (-x) */
@media (min-width: 761px) {
  .session:has(.session-details.is-open) .ftile[style*="--tw-x"] { width: var(--tw-x); height: var(--th-x); border-radius: var(--tr-x); background: var(--tbg-x); }
  .session:has(.session-details.is-open) .ftile[style*="--tw-x"] img { left: var(--ix-x); top: var(--iy-x); width: var(--iw-x); height: var(--ih-x); object-fit: var(--fit-x); background: var(--ibg-x); }
}
.speaker:lang(ar) { height: 374px; }
.speaker:lang(ar) .speaker__org { height: 30px; }

.after-carousel { margin-top: 40px; line-height: 21px; }
.sponsors-block { margin-top: 104px; }

.sponsor {
  width: 256px;
  padding: 20px 19px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
  text-align: center;
  user-select: none;
}
.sponsor-note { font-size: 13px; line-height: 20px; }
.sponsor .chip-logo { margin-inline: auto; }
.sponsors-block .carousel__track { gap: 24px; }
/* Some blocks are drawn differently in the desktop and phone frames: both are emitted, one is shown */
.only-phone { display: none; }
.sponsor__tier { display: block; margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--on-dark-muted); }
.sponsor__tier--white { color: #ffffff; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 28px;
}
.card .eyebrow { margin-bottom: 16px; }
.card .h4 + p, .card .h3 + p { margin-top: 16px; }
.card p { color: var(--on-dark-muted); font-size: 15px; line-height: 24px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
/* three 397px cards, 24px apart, from the start edge (the row is 1239 wide in the 1240 container) */
.grid--3 { grid-template-columns: repeat(3, minmax(0, 397px)); gap: 24px; }

.sector-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sc-gap, 16px); padding: 28px; padding-inline-end: 26px; border-radius: 24px; }
.sector-card .eyebrow, .sector-card .h4 + p { margin: 0; }

/* Image cards (Localize / Export) */
.image-card {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px 41px 33px;
  border-radius: 22px;
  overflow: hidden;
  color: var(--text-on-dark);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%230d2a23'/%3E%3Cstop offset='0.7' stop-color='%23013f34'/%3E%3Cstop offset='1' stop-color='%230b2620'/%3E%3C/linearGradient%3E%3Crect width='1' height='1' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  border: 1px solid rgba(197, 225, 232, 0.2);
  box-shadow: 0 24px 70px 0 rgba(0, 0, 0, 0.38), inset 0 1px 0 0 rgba(233, 250, 255, 0.28);
}
.image-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 31, 25, 0.06) 15%, rgba(4, 31, 25, 0.44) 42%, rgba(4, 31, 25, 0.94) 75%, rgb(4, 37, 30) 100%);
}
.image-card:hover img { transform: scale(1.04); }
/* the Arabic frames anchor the text 28px from the right edge and 33px from the bottom */
.image-card:lang(ar) { padding-inline-start: 27px; padding-bottom: 32px; }
.image-card .h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.008em; }
.image-card p { margin-top: 12px; max-width: 544px; font-size: 15px; line-height: 24px; color: rgba(234, 244, 238, 0.9); }

/* Messages (2×2 text grid) */
.bg-messages .h2 { max-width: 900px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.feature h3 { font-size: 22px; font-weight: 600; line-height: 30px; }
.feature p { margin-top: 10px; font-size: 17px; line-height: 28px; color: var(--on-dark-muted); }

/* Sector integration panels */
.stack { display: grid; gap: 24px; }
/* content 1144 wide from 1px past the padding (two 548 columns 48 apart, their text 540 wide) */
.integration { padding: 48px; padding-inline-end: 46px; border-radius: 20px; }
.integration .eyebrow { margin-bottom: 20px; }
.integration > p, .integration .h3 + p { margin-top: 20px; max-width: 1144px; font-size: 17px; line-height: 28px; }
.integration__subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.integration__subs h4 { font-size: 22px; font-weight: 600; line-height: 30px; }
.integration__subs p { margin-top: 8px; max-width: 540px; }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stage { padding-top: 14px; border-top: 2px solid rgba(40, 172, 73, 0.6); }
.stage h3 { font-size: 22px; font-weight: 600; line-height: 30px; }
.stage p { margin-top: 14px; font-size: 15px; line-height: 24px; color: var(--text-on-light-muted); }

/* Experiences */
/* two 608px items 20px apart (the row is 1236 wide) */
.experiences { display: grid; grid-template-columns: repeat(2, minmax(0, 608px)); gap: 20px; }
.experience {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 106px;
  padding: 20px 28px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid rgba(234, 244, 238, 0.15);
}
.experience__title { display: block; font-size: 22px; font-weight: 600; line-height: 30px; }
.experience .caption { display: block; margin-top: 6px; color: var(--on-dark-muted); }

/* icon/plus 18×18: 10.5px strokes 1.5 wide; open (icon/x) the diagonals span a 9×9 box */
.plus { position: relative; flex: none; width: 18px; height: 18px; color: var(--brand-gold); }
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10.5px; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
[aria-expanded="true"] .plus::before { width: 12.73px; transform: translate(-50%, -50%) rotate(45deg); }
[aria-expanded="true"] .plus::after { width: 12.73px; transform: translate(-50%, -50%) rotate(135deg); }

/* Audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-on-light);
  font-size: 15px;
  line-height: 24px;
  color: var(--text-on-light);
}

/* ---------- Accordion (generic) ---------- */
.acc-trigger { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; text-align: start; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.acc-panel > div { overflow: hidden; }
.is-open > .acc-panel { grid-template-rows: 1fr; }

/* ---------- CTA band ---------- */
.cta { padding: var(--cta-pt, 96px) 0 var(--cta-pb, 89px); color: var(--text-on-dark); }
.cta--about { --cta-pb: 130px; }
.cta--program { --cta-pb: 113px; }
/* media CTA: the text block is centred in a 244px row (40.5px above and below), the button follows in a 320px column */
.cta--media { --cta-pt: 136.5px; --cta-pb: 123px; }
.cta:lang(ar) { --cta-pt: 96px; --cta-pb: 96px; }
.cta .h2 { max-width: 820px; color: var(--text-on-dark); }
.cta p { margin-top: 16px; max-width: 820px; font-size: 17px; line-height: 28px; color: rgba(234, 244, 238, 0.9); }
.cta .btn { margin-top: 48px; }
.cta--center { text-align: center; }
.cta--center .h2 { margin-inline: auto; }
.cta--center .eyebrow { margin-bottom: 30px; }
.cta--center .eyebrow:lang(ar) { margin-bottom: 16px; }
.cta--center .btn { margin-top: 30px; }
.cta--media .btn { margin-top: 40.5px; }
:lang(ar) .cta .h2,
:lang(ar) .cta p { max-width: none; }
:lang(ar) .cta .btn { margin-top: 60px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: 96px; background: var(--bg-footer); color: var(--text-on-dark); }
.footer-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr) auto; column-gap: 68px; }
.footer-brand__name { font-size: 40px; font-weight: 700; line-height: 48px; letter-spacing: -0.005em; }
.footer-brand__tag { margin-top: 12px; margin-right: -0.3em; font-size: 12px; font-weight: 500; line-height: 17px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-gold); }
.footer-brand__desc { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--text-on-dark-muted); }
.footer-col h2 { margin-bottom: 16px; font-size: 15px; font-weight: 600; line-height: 21px; }
.footer-col h2:lang(en) { font-family: var(--font-inter); }
/* Layers the English frames set in Inter (the Arabic frames use IBM Plex Sans Arabic for the same layers) */
html[lang="en"] .countdown__value,
html[lang="en"] .hero-foot__brand,
html[lang="en"] .footer-brand__tag,
html[lang="en"] .footer-watermark { font-family: var(--font-inter); }
html[lang="en"] .image-card .h2 { font-family: var(--font-inter); }
html[lang="ar"] .hero-foot__brand, html[lang="ar"] .footer-brand__tag { font-family: var(--font-ar); }
.footer-col li { font-size: 15px; line-height: 24px; }
.footer-col li + li { margin-top: 16px; }
.footer-col a { font-size: 15px; line-height: 24px; color: var(--text-on-dark-muted); transition: color 0.2s; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(234, 244, 238, 0.1); font-size: 13px; line-height: 20px; color: var(--text-on-dark-muted); }
.footer-watermark {
  height: 234px;
  margin-top: 26px;
  padding-inline-start: 10px;
  overflow: hidden;
  font-size: 300px;
  font-weight: 700;
  line-height: 300px;
  white-space: nowrap;
  color: rgba(234, 244, 238, 0.04);
  user-select: none;
  pointer-events: none;
}

/* ---------- Program ---------- */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.day { padding: 36px; border-radius: 24px; }
.day h3 { font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.003em; color: var(--on-dark); }
.day .day__date { margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(234, 244, 238, 0.12); font-size: 17px; line-height: 28px; color: var(--on-dark-muted); }
.day p:last-child { margin-top: 16px; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(234, 244, 238, 0.06);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-white-btn);
}
.tab {
  height: 45px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  white-space: nowrap;
  color: var(--on-dark);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { background: rgba(234, 244, 238, 0.06); }
.tab[aria-selected="true"] { background: var(--surface-pill-white); color: var(--text-pill); font-weight: 700; }
.tab-panel[hidden] { display: none; }
.tabs-wrap { margin-top: 88px; }
.tab-panel { margin-top: 40px; }

/* Figma lays the card content out 1px in from the padding on the start side, at full width (1144 / 302) */
.session {
  padding: 48px;
  padding-inline-end: 46px;
  border-radius: 24px;
  /* Figma gradient in the card unit square: white 10% from the centre to the bottom-right, 4% at the top-left */
  background: var(--session-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card);
}
.session + .session { margin-top: 40px; }
.session .eyebrow { margin-bottom: 24px; }
.session .h3 { font-size: 40px; line-height: 46px; letter-spacing: -0.008em; }
.session-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--inset);
  border: 1px solid var(--stroke);
}
.session-meta dt { font-size: 13px; line-height: 20px; color: var(--on-dark-muted); }
.session-meta dd { margin-top: 6px; font-size: 17px; line-height: 28px; }
.session-stream { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 24px; }
.session-stream span:last-child { color: var(--accent-gold); }
.session h4 { margin-top: 24px; font-size: 15px; font-weight: 600; line-height: 21px; }
.participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1142px; margin-top: 24px; }
.participant {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}
.participant--full { grid-column: 1 / -1; }

.participant strong { display: block; font-size: 17px; font-weight: 400; line-height: 28px; color: var(--on-dark); }
.participant > span:last-child > span { display: block; margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--on-dark-muted); }
.session-note { margin-top: 24px; font-size: 15px; line-height: 24px; color: var(--on-dark-muted); }
.session-details { margin-top: 24px; border-top: 1px solid var(--hairline); }
.session-details > .acc-trigger { padding-top: 24px; font-size: 15px; font-weight: 600; line-height: 21px; color: var(--on-dark-muted); }
/* the English frames set the session title, the participants title and the themes toggle in Inter */
html[lang="en"] .session .h3, html[lang="en"] .session h4, html[lang="en"] .session-details > .acc-trigger { font-family: var(--font-inter); }
.session-details > .acc-trigger .plus { color: var(--on-dark); }
/* themes: a 15px number + 12px gap, then an 820px text column (847px in all, right-aligned in Arabic) */
.session-details .acc-panel > div > div { padding-top: 24px; max-width: 847px; }
.session-details h5 { margin: 0 0 20px; font-size: 15px; font-weight: 600; line-height: 21px; color: var(--on-dark); }
.session-details h5.strategic-title { margin: 24px 0 16px; }
html[lang="en"] .session-details h5 { font-family: var(--font-inter); }
.themes { display: grid; gap: 20px; counter-reset: theme; }
.themes li { position: relative; padding-inline-start: 27px; counter-increment: theme; }
.themes li::before {
  content: counter(theme) ".";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 17px;
  line-height: 28px;
  color: var(--accent-gold);
}
/* the number keeps LTR order ("1."), so its side is set physically */
[dir="rtl"] .themes li::before { left: auto; right: 0; }
.themes strong { display: block; font-size: 17px; font-weight: 400; line-height: 28px; }
.themes p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--on-dark-muted); }
.strategic { display: grid; gap: 16px; }
.strategic li { position: relative; padding-inline-start: 19px; font-size: 17px; line-height: 28px; }
.strategic li::before { content: "•"; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent-gold); }

.empty-state {
  padding: 80px 24px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-empty);
  text-align: center;
}
.empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: var(--brand-gold);
}
.empty-state__icon .icon { width: 20px; height: 20px; }
.empty-state h3 { margin-top: 20px; font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.003em; white-space: break-spaces; }
.empty-state p { margin: 20px auto 0; max-width: 480px; font-size: 17px; line-height: 28px; color: var(--on-dark-muted); }

/* ---------- Opportunities ---------- */
.opps { display: grid; gap: 40px; }
.opp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--opp-img, 590px);
  min-height: 397px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3);
}
/* the framed photos (cards 1 and 5) have their own radius and shadow */
.opp--framed .opp__media { border-radius: 22px; box-shadow: 0 30px 70px 0 rgba(9, 25, 21, 0.22); }
.opp__body { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.opp__body h3 { font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.003em; }
.opp__body p { margin-top: 18px; max-width: 540px; font-size: 17px; line-height: 28px; color: var(--on-dark-muted); }
.opp__body .link-arrow { margin-top: 18px; }
.opp__media { position: relative; overflow: hidden; }
.opp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.opp:hover .opp__media img { transform: scale(1.04); }
.opp--reverse { grid-template-columns: var(--opp-img, 590px) minmax(0, 1fr); }
.opp--reverse .opp__media { order: -1; }

/* ---------- Participation ---------- */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(28, 90, 72, 0.6), rgba(14, 58, 46, 0.6));
  border: 1px solid rgba(40, 172, 73, 0.35);
}
.banner p { max-width: 700px; font-size: 17px; line-height: 28px; }
/* desktop frame: each card keeps its own height and photo box (card 1 is drawn 533px tall, card 3 529px) */
.participate-cards { margin-top: 40px; gap: 24px; align-items: start; }
.p-card { display: flex; flex-direction: column; height: var(--pcard-h, auto); padding: 0; overflow: hidden; border-radius: 24px; }
.p-card__media { flex: none; width: var(--pimg-w, auto); height: var(--pimg-h, auto); max-width: none; overflow: hidden; }
.p-card--framed .p-card__media { border-radius: 22px; box-shadow: 0 30px 70px 0 rgba(9, 25, 21, 0.22); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__body { display: flex; flex-direction: column; flex: 1; padding: 32px; padding-inline-end: 30px; }
.p-card__body h3 { font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.003em; }
.p-card__body p { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--on-dark-muted); }
.p-card__body .link-arrow { margin-top: 16px; }
.notice {
  margin-top: 40px;
  padding: 20px 28px;
  border-radius: 16px;
  background: rgba(212, 162, 93, 0.08);
  border: 1px solid rgba(212, 162, 93, 0.35);
  font-size: 15px;
  line-height: 24px;
  color: var(--on-dark);
}

.faq { max-width: 860px; border-bottom: 1px solid rgba(11, 32, 27, 0.12); }
.faq__item { border-top: 1px solid rgba(11, 32, 27, 0.12); }
.faq__item .acc-trigger { align-items: flex-start; padding-top: 32px; font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.003em; color: var(--text-on-light); }
.faq__item .acc-trigger[aria-expanded="false"] { padding-bottom: 32px; }
.faq__item .acc-panel p { padding: 16px 0 32px; max-width: 600px; font-size: 17px; line-height: 28px; color: var(--text-on-light-muted); }
.faq__toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #063b31;
  color: #ffffff;
}
.faq__toggle::before,
.faq__toggle::after { content: ""; position: absolute; width: 9.33px; height: 1.667px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.faq__toggle::after { transform: rotate(90deg); }
[aria-expanded="true"] .faq__toggle::after { transform: rotate(0deg); }

/* ---------- Media center ---------- */
.section--media { padding-block: 96px 128px; }
.library { display: grid; gap: 16px; }
.library__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
}
.library__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 162, 93, 0.4);
  color: var(--brand-gold);
}
.library__body { flex: 1; }
.library__body h3 { font-size: 22px; font-weight: 600; line-height: 30px; }
.library__body p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--on-dark-muted); }
.badge-soon {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 162, 93, 0.5);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: var(--accent-gold);
}
html[lang="en"] .badge-soon { font-family: var(--font-inter); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 490px) minmax(0, 664px); justify-content: space-between; gap: 64px; align-items: start; }
.contact-intro { margin-top: 16px; }
.channels { margin-top: 40px; }
.channel { padding-bottom: 10px; border-bottom: 1px solid rgba(234, 244, 238, 0.12); }
.channel + .channel { margin-top: 24px; }
.channel dt { font-size: 13px; line-height: 20px; color: var(--on-dark-muted); }
.channel dd { margin-top: 10px; font-size: 22px; line-height: 30px; }
html[lang="en"] .channel dd, html[lang="en"] .form-card .h3, html[lang="en"] .form-field label, html[lang="en"] .input { font-family: var(--font-inter); }
html[lang="en"] .form-field label small { font-family: var(--font-en); }
.channel a { transition: color 0.2s; }
.channel a:hover { color: var(--brand-green); }

.form-card {
  padding: 48px;
  padding-inline-end: 46px;
  border-radius: 24px;
  /* same card gradient as the programme sessions (Figma unit-square gradient) */
  background: var(--session-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card);
}
.form-card .h3 { font-size: 36px; line-height: 41px; letter-spacing: -0.008em; }
.form-card > p { margin-top: 22px; font-size: 15px; line-height: 24px; color: var(--on-dark-muted); }
.form-field { margin-top: 22px; }
.form-field label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; font-weight: 600; line-height: 21px; }
.form-field label small { font-size: 13px; font-weight: 400; line-height: 20px; color: var(--on-dark-muted); }
.input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--input-bg);
  color: var(--on-dark);
  display: block;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: rgba(159, 185, 172, 0.7); opacity: 1; }
.input:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(40, 172, 73, 0.2); }
textarea.input { height: 176px; padding-block: 18px; resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 52px;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23EAF4EE' stroke-width='1.333' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 21px center;
}
[dir="rtl"] select.input { background-position: left 21px center; }
:root[data-theme="light"] select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230B201B' stroke-width='1.333' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}
select.input option { color: #0b201b; }
/* The email field types left-to-right but sits right-aligned in Arabic, like its placeholder */
[dir="rtl"] input[type="email"] { text-align: right; }
.form-card .btn { margin-top: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1340px) {
  :root { --gutter: 40px; }
  .main-nav ul { gap: 18px; }
  .site-header .container { gap: 24px; }
}

/* Collapsed navigation (tablet and phone) */
@media (max-width: 1140px) {
  .menu-toggle { display: inline-grid; }
  .header-cta,
  .header-lang { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: block;
    padding: 16px var(--gutter) 40px;
    background: var(--bg-footer);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul a { padding: 18px 0; font-size: 20px; line-height: 28px; border-bottom: 1px solid var(--hairline); }
  .main-nav ul a[aria-current="page"] { color: var(--brand-green); }
  .main-nav ul a[aria-current="page"]::after { display: none; }
  .nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
  .site-header .container { justify-content: space-between; }
  .header-actions { margin-inline-start: auto; }
}

@media (max-width: 1024px) {
  :root { --section-pad: 80px; --section-pad-tight: 80px; --head-gap: 40px; }
  .display { font-size: 60px; line-height: 66px; }
  .h1 { font-size: 52px; line-height: 58px; }
  .h2 { font-size: 40px; line-height: 46px; }
  :lang(ar) .h2 { line-height: 60px; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head--split > div, .section-head--split > p, .section--opps .section-head--split > p { flex: none; }
  .section--spaced .section-head { margin-bottom: var(--head-gap); }
  .split, .message--full { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 43px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .opp, .opp--reverse { grid-template-columns: 1fr; }
  .opp__media { order: -1; aspect-ratio: 16 / 9; }
  .carousel { margin-inline-end: calc(var(--gutter) * -1); }
  .footer-watermark { font-size: 200px; line-height: 200px; height: 160px; }
}

/* ---------- Phone: values from the Mobile · EN / Mobile · AR frames (390 wide) ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-pad: 64px; --section-pad-tight: 64px; --head-gap: 24px; --header-h: 64px; }

  body { font-size: 16px; line-height: 26px; }
  .display { font-size: 40px; line-height: 44px; letter-spacing: -0.012em; }
  .h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.012em; }
  .h2, :lang(ar) .h2 { font-size: 32px; line-height: 37px; }
  .h3, .h4 { font-size: 22px; line-height: 29px; }
  .lead { font-size: 17px; line-height: 27px; }
  .small { font-size: 16px; line-height: 26px; }
  .caption { font-size: 15px; line-height: 24px; }
  .section-head--split { gap: 16px; }

  /* Header: logo + theme + menu only */
  .site-header { background: var(--bg-footer); border-bottom: 0; }
  .logo__img { width: 146px; height: 36px; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; border-color: rgba(234, 244, 238, 0.25); }
  .icon-btn .icon { width: 20px; height: 20px; }

  /* Hero */
  .hero, .cta, .photo-band, :root:not([data-theme="light"]) .section[data-fig] { background: var(--fbg-m); }
  img.fig-photo, .fig-photo-pic img { opacity: var(--fop-m, 1); }
  [data-fig][style*="--fov-d"]::before { background: var(--fov-m); }
  .hero--home { padding: 48px 0; }
  .hero--page, .hero--compact { padding: 56px 0; }
  .hero-eyebrow { gap: 10px; }
  .hero-eyebrow::before { width: 28px; }
  .hero .display { margin-top: 18px; }
  .hero .display + .lead { margin-top: 18px; }
  .breadcrumb { margin-bottom: 20px; }
  .hero .h1 + .lead { margin-top: 20px; }
  .btn-row { flex-direction: column; gap: 12px; margin-top: 18px; }
  .btn-row .btn { width: 100%; }
  .stats { margin-top: 24px; padding: 20px 12px; }
  .stats__grid { gap: 8px; margin-top: 12px; }
  .stat__value { font-size: 32px; line-height: 35px; }
  .countdown { margin-top: 24px; padding: 20px; }
  .countdown__head { flex-direction: column; gap: 12px; }
  .countdown__grid { margin-top: 16px; }
  .countdown__value { font-size: 32px; line-height: 35px; }
  .hero-foot { display: none; }

  /* Photo-first stacks */
  .message, .message--full { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .message .photo, .message--full .photo { aspect-ratio: 350 / 300; }
  .message .h3 { font-size: 22px; line-height: 29px; }
  .message p { margin-top: 18px; }
  .message .link-arrow { margin-top: 18px; }
  .message--full .h2 + p { margin-top: 18px; }
  .split .photo { order: -1; aspect-ratio: 350 / 260; }
  .split__body .link-arrow { margin-top: 24px; }
  .split--tall .split__body > * + * { margin-top: 24px; }
  .split--tall .split__body .eyebrow + .h2 { margin-top: 0; }

  /* National logos: 2-column grid of white tiles, continuing the light band above */
  .section--national, .section--national:lang(ar) { border-top: 0; padding-block: 16px 56px; }
  .section--national.section--flush, .section--national.section--flush:lang(ar) { margin-top: -8px; padding-block: 0 64px; }
  .section--national .partners-title { font-size: 24px; line-height: 29px; margin-bottom: 40px; }
  .logo-strip { grid-template-columns: repeat(2, 150px); justify-content: center; gap: 16px; }


  /* Carousels stay inside the gutters */
  .carousel { margin-inline-end: 0; }
  .carousel__track, .sponsors-block .carousel__track { gap: 16px; }
  .only-desktop { display: none; }
  .only-phone { display: block; }
  .speaker { width: 260px; }
  .speaker__photo { aspect-ratio: 1; }
  .speaker__name { font-size: 18px; font-weight: 600; line-height: 24px; }
  .speaker__org { margin-top: 12px; }
  .after-carousel { margin-top: 26px; }
  .sponsors-block { margin-top: 64px; }
  .sponsor { width: 256px; }

  .sponsor-note { font-size: 14px; line-height: 20px; }

  /* Cards */
  .grid--2, .grid--3, .features, .experiences, .integration__subs, .days, .participants, .stages { grid-template-columns: 1fr; }
  .grid--2, .grid--3 { gap: 24px; }
  .card { border-radius: 20px; }
  .card .eyebrow { font-size: 14px; font-weight: 600; line-height: 20px; }
  .sector-card { gap: 16px; }
  .sector-card .h4 { font-size: 22px; line-height: 29px; }
  .image-card { min-height: 400px; padding: 24px 25px; }
  .image-card .h2 { font-size: 32px; line-height: 37px; }

  .features { gap: 32px; }
  .feature h3 { font-size: 18px; line-height: 24px; }
  .feature p { font-size: 16px; line-height: 26px; }
  .bg-messages .section-head { margin-bottom: 32px; }

  .integration { padding: 24px 23px; }
  .integration .eyebrow { margin-bottom: 16px; }
  .integration .h3 { font-size: 22px; line-height: 29px; }
  .integration > p, .integration .h3 + p { margin-top: 16px; font-size: 15px; line-height: 24px; }
  .integration__subs { gap: 16px; margin-top: 16px; padding-top: 16px; }
  .integration__subs h4 { font-size: 18px; line-height: 24px; }
  .integration__subs p { margin-top: 6px; }

  .stages { gap: 32px; }
  .section--spaced:has(.stages) .section-head { margin-bottom: 32px; }
  .stage h3 { font-size: 18px; line-height: 24px; }

  .experiences { gap: 12px; }
  /* Phone frames keep each caption on one line and let it run past the card */
  .experience { gap: 0; min-height: 100px; padding: 16px 28px; }
  .experience__title, .experience .caption { white-space: nowrap; }
  .experience__title { font-size: 18px; line-height: 24px; }
  .experience .caption { margin-top: 6px; }

  .section--spaced:has(.chips) .section-head { margin-bottom: 48px; }
  .chips { gap: 10px; }

  /* CTA band */
  .cta, .cta:lang(ar) { --cta-pt: 64px; --cta-pb: 64px; }
  .cta p { font-size: 16px; line-height: 26px; }
  .cta .btn, :lang(ar) .cta .btn { margin-top: 28px; }
  .cta--center .btn { margin-top: 28px; }
  .cta--center .eyebrow { margin-bottom: 16px; }
  /* English phone frame draws the centred band left-aligned (the Arabic one stays centred) */
  .cta--center:lang(en) { text-align: left; }
  .cta--center:lang(en) .h2 { margin-inline: 0; }

  /* Footer: one column */
  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .footer-brand__name { font-size: 30px; line-height: 36px; }
  .footer-bottom { margin-top: 40px; }
  .footer-watermark { height: 86px; margin-top: 74px; font-size: 110px; line-height: 110px; }

  /* Program */
  .day { padding: 36px; }
  .day h3 { font-size: 22px; line-height: 29px; }
  .day .day__date { font-size: 16px; line-height: 26px; }
  .day p:last-child { font-size: 15px; line-height: 24px; }
  .tabs-wrap { margin-top: 24px; }
  .tab-panel { margin-top: 24px; }
  .session { padding: 24px; padding-inline-end: 22px; }
  .participants { max-width: 300px; }
  .session + .session { margin-top: 24px; }
  .session .h3 { font-size: 28px; line-height: 32px; }
  .session-meta { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .session-meta dd, .participant strong { font-size: 16px; line-height: 26px; }
  .session h4 { white-space: nowrap; }
  /* Arabic phone frame lists the four fields bottom-up */
  .session-meta:lang(ar) { display: flex; flex-direction: column-reverse; }
  /* English phone frame draws the first session's fields collapsed: a 101×102 box whose four 1px rows sit
     17px apart, the labels and values overflowing it (the other sessions show the full box) */
  .session:has([data-open-on-phone]) .session-meta:lang(en) { display: flex; flex-direction: column; gap: 16px; width: 101px; height: 102px; }
  .session:has([data-open-on-phone]) .session-meta:lang(en) > div { height: 1px; }
  .session:has([data-open-on-phone]) .session-meta:lang(en) :is(dt, dd) { white-space: nowrap; }
  /* participant name/title boxes take the width drawn in the phone frame */
  .participant [style*="--w"] { display: block; width: var(--w); }
  .themes li { max-width: 288px; padding-inline-start: 26px; }
  .themes strong, .themes li::before, .strategic li { font-size: 16px; line-height: 26px; }
  .strategic li { max-width: 282px; }
  .participant { gap: 20px; }

  .session-details .acc-panel > div > div { max-width: none; }

  .empty-state { padding: 48px 21px; }
  .empty-state h3 { font-size: 22px; line-height: 29px; }
  .empty-state p { max-width: 300px; font-size: 16px; line-height: 26px; }

  /* Media tabs run past the screen edge and scroll */
  .section--media .tabs {
    display: flex;
    max-width: none;
    margin-inline-end: calc(var(--gutter) * -1);
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-inline-end: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .section--media .tabs::-webkit-scrollbar { display: none; }
  .section--media { padding-block: var(--section-pad); }
  .section--media .tab-panel { margin-top: 28px; }
  .section--media .section-head { margin-bottom: 28px; }

  /* Opportunities: image on top */
  .opps { gap: 24px; }
  .opp { border-radius: 24px; min-height: 0; }
  .opp__media { width: var(--oimg-w-m, auto); height: var(--oimg-h-m, auto); aspect-ratio: auto; }
  .opp__body { padding: 24px 23px; }
  .opp__body h3, .p-card__body h3 { font-size: 22px; line-height: 29px; }
  .opp__body p, .p-card__body p { font-size: 15px; line-height: 24px; }
  .opp__body .link-arrow { margin-top: 14px; }

  /* Participation */
  .banner { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; }
  .banner p { font-size: 16px; line-height: 26px; }
  .banner .btn { padding-inline: 4px; }
  .p-card { height: var(--pcard-h-m, auto); border-radius: 20px; }
  .p-card__media { width: var(--pimg-w-m, auto); height: var(--pimg-h-m, auto); }
  .p-card--framed .p-card__media { border-radius: 0; box-shadow: none; }
  .p-card__body { padding: 24px; padding-inline-end: 22px; }
  .p-card__body p { margin-top: 12px; }
  .p-card__body .link-arrow { margin-top: 12px; }
  .participate-cards { margin-top: 24px; }
  .notice { margin-top: 24px; }
  .faq { margin-top: 48px; }
  .faq__item .acc-trigger { gap: 32px; font-size: 22px; line-height: 29px; }
  /* the 32px toggle hangs past a one-line question (29px): the answer still follows the question, as drawn */
  .faq__toggle { margin-bottom: -3px; }
  .faq__item .acc-panel p { max-width: 286px; font-size: 16px; line-height: 26px; }

  /* Guides: icon and badge on the first row, text below */
  .library { gap: 12px; }
  .library__item { display: grid; grid-template-columns: auto 1fr; gap: 16px 0; padding: 24px; }
  .library__icon { grid-row: 1; grid-column: 1; }
  .badge-soon { grid-row: 1; grid-column: 2; justify-self: end; align-self: center; }
  .library__body { grid-row: 2; grid-column: 1 / -1; padding-inline-start: 1px; }
  .library__body h3 { font-size: 18px; font-weight: 600; line-height: 24px; }
  .library__body p { margin-top: 6px; max-width: 250px; }

  /* Contact */
  .contact-grid { gap: 32px; }
  .channels { margin-top: 32px; }
  .channel { padding-bottom: 8px; }
  .channel + .channel { margin-top: 20px; }
  .channel dd { margin-top: 8px; font-size: 20px; line-height: 24px; }
  .form-card { padding: 24px; padding-inline-end: 22px; }
  .form-card .h3 { font-size: 32px; line-height: 37px; }
  .input { font-size: 16px; }
  .form-card > p, .form-field { margin-top: 18px; }
  .form-card .btn { width: 100%; margin-top: 18px; }
}

@media (max-width: 380px) {
  .speaker, .sponsor { width: 240px; }
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone frames: speaker cards and logo tiles (values from the Mobile EN / AR frames) ---------- */
@media (max-width: 760px) {
  .speaker, .speaker:lang(ar) { width: 260px; height: 364px; }
  .speaker__photo { width: 260px; height: 256px; aspect-ratio: auto; }
  .speaker__name { font-size: 18px; line-height: 24px; }
  .speaker__org, .speaker:lang(ar) .speaker__org { height: 30px; margin-top: 12px; }
  .sponsor { height: 172px; }
  .ftile { width: var(--tw-m); height: var(--th-m); border-radius: var(--tr-m); background: var(--tbg-m); }
  .ftile img { left: var(--ix-m); top: var(--iy-m); width: var(--iw-m); height: var(--ih-m); object-fit: var(--fit-m); background: var(--ibg-m); }
}

/* ---------- Phone frames: hero cards, logo band title, sponsor note, Localize / Export cards ---------- */
@media (max-width: 760px) {
  /* stats: 20px top/bottom inside the border, a 310px row of three 98px columns */
  .stats { padding: 20px 19px; }
  /* countdown: label and date stacked 12px apart, then four 71.5px units 8px apart (the frame starts the content 1px in) */
  .countdown { padding: 20px; padding-inline-end: 18px; }
  .countdown__grid { column-gap: 8px; margin-top: 12px; }
  .section--national .partners-title { font-size: 22px; line-height: 29px; }
  .sponsor-note { font-size: 13px; line-height: 20px; }
  /* Localize / Export: photo + a flat 5% tint + a bottom-up shade with a 20% black wash; no card fill or shadow */
  .image-card { min-height: 400px; padding: 24px; padding-inline-end: 22px; border-radius: 20px; background: none; border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
  .image-card:lang(ar) { padding-inline-start: 24px; padding-bottom: 24px; }
  .image-card img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
  .image-card::before { background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), linear-gradient(0deg, rgba(4, 37, 30, 0.95) 0%, rgba(4, 31, 25, 0.55) 25%, rgba(4, 31, 25, 0.3) 55%, rgba(4, 31, 25, 0.05) 85%), linear-gradient(rgba(6, 29, 24, 0.05), rgba(6, 29, 24, 0.05)); }
  html[lang="en"] .image-card .h2 { font-family: var(--font-en); }
  .image-card p { margin-top: 10px; }
}

@media (max-width: 760px) {
  /* speakers band: header, row, link, spacer and the sponsor header all 28px apart */
  .bg-speakers .section-head, .sponsors-block .section-head { margin-bottom: 28px; }
  .after-carousel { margin-top: 28px; }
  /* the phone frames draw the photos flat */
  .photo, .message .photo { box-shadow: none; }
}

@media (max-width: 760px) {
  /* phone opportunity cards: flat (no shadow), plain photos, 14px between title, text and link */
  .opp { box-shadow: none; }
  .opp--framed .opp__media { border-radius: 0; box-shadow: none; }
  .opp__body p { margin-top: 14px; }
}

@media (max-width: 760px) {
  /* the Arabic phone frame lays the pills out from the last one, left to right, each line pushed to the right */
  .chips:lang(ar) { direction: ltr; justify-content: flex-end; }
  .chips:lang(ar) > li { order: var(--rev); }
}

@media (max-width: 760px) {
  /* contact (phone frames): channel values 18/24, form title 32/37 in both languages, placeholders 15/24 */
  .channel dd { font-size: 18px; line-height: 24px; }
  .form-card .h3 { font-size: 32px; line-height: 37px; }
  html[lang="en"] .form-card .h3 { font-family: var(--font-en); }
  .input { font-size: 15px; line-height: 24px; }
}

/* the Arabic desktop News frame sets the e-mail button in Noto Sans Arabic (its Photos and Guides frames use Plex Arabic) */
@media (min-width: 761px) { html[lang="ar"] main:has(#news:not([hidden])) .cta--media .btn { font-family: "Noto Sans Arabic", var(--font-ar); } }

/* ---------- Phone frames: home hero title (redrawn as separate text layers) ---------- */
@media (max-width: 760px) {
  .hero--home .display { background-image: none; }
  .hero--home .display .plain { color: #e7f2ee; -webkit-text-fill-color: #e7f2ee; }
  /* the tinted run carries its own green → gold gradient, mapped onto its own box as in the frame */
  .hero--home .display .tint {
    background: var(--tint-m);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  /* English: two lines in Arial Bold 34/40.8 (drawn by Figma with Arimo, its metric twin), 9px apart and 9px around them */
  html[lang="en"] .hero--home .display { margin-top: 9px; font-family: Arimo, Arial, sans-serif; font-size: 34px; line-height: 40.8px; letter-spacing: -0.85px; }
  html[lang="en"] .hero--home .display > span { display: block; width: fit-content; height: 41px; }
  html[lang="en"] .hero--home .display > .plain { margin-bottom: 9px; }
  html[lang="en"] .hero--home .display + .lead,
  html[lang="en"] .hero--home .btn-row { margin-top: 9px; }
  /* Arabic: one 30/45 line in a 45px box, its baseline 29.41px below the box top (Figma lays it out with Inter metrics);
     the tinted phrase starts where the frame puts it, 215.57px from the left */
  /* the frame draws these two layers with its Arabic fallback face, Noto Sans Arabic Bold */
  html[lang="ar"] .hero--home .display { display: flex; height: 45px; font-family: "Noto Sans Arabic", var(--font-ar); font-size: 30px; line-height: 45px; }
  html[lang="ar"] .hero--home .display > span { position: relative; top: -2.59px; white-space: nowrap; }
  html[lang="ar"] .hero--home .display > .tint { margin-inline-start: -2.24px; }
}
