/* Inside King Salman Park — design system
   Desert-to-green: sand, terracotta, palm, oasis, dusk indigo, gold.
   Logical properties throughout so RTL (Arabic) mirrors without overrides. */

:root {
  --sand-50: #fbf7f0;
  --sand-100: #f5ecdf;
  --sand-200: #ecdcc4;
  --sand-300: #e0c9a6;
  --sand-500: #b99a6b;
  --terracotta: #c2603a;
  --terracotta-deep: #9a4527;
  --palm: #1f5d45;
  --palm-deep: #0f3b2c;
  --oasis: #3fa27a;
  --oasis-light: #8fd3b2;
  --dusk: #1b2340;
  --dusk-2: #2b3560;
  --gold: #c9a45c;
  --gold-light: #e6cf98;

  --bg: var(--sand-50);
  --surface: #ffffff;
  --surface-2: var(--sand-100);
  --ink: #1d1b16;
  --ink-2: #3b372f;
  --muted: #6e665a;
  --line: #e6dccb;
  --link: var(--palm);
  --accent: var(--terracotta);
  --focus: #2b7fff;

  --st-planned: #8a7f6c;
  --st-design: #7a6fb0;
  --st-build: #d08a2e;
  --st-done: #2f8f63;
  --st-open: #1aa36b;
  --st-replan: #b5523a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(29, 27, 22, .06), 0 4px 14px rgba(29, 27, 22, .06);
  --shadow-2: 0 10px 40px rgba(15, 59, 44, .16);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --najdi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 7 0l7 14 7-14 7 14' fill='none' stroke='%23c9a45c' stroke-width='1.4'/%3E%3C/svg%3E");
}

:root[lang="ar"] {
  --font-display: "Reem Kufi", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1411;
    --surface: #131d19;
    --surface-2: #1a2621;
    --ink: #efe8da;
    --ink-2: #d9d1c1;
    --muted: #a39b8b;
    --line: #26332d;
    --link: var(--oasis-light);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --bg: #0c1411;
  --surface: #131d19;
  --surface-2: #1a2621;
  --ink: #efe8da;
  --ink-2: #d9d1c1;
  --muted: #a39b8b;
  --line: #26332d;
  --link: var(--oasis-light);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
:root[lang="ar"] body { font-size: 18px; line-height: 1.8; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -50px; background: var(--palm-deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .72em 1.25em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 .95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); color: var(--ink); }
.btn-primary { background: var(--palm); border-color: var(--palm); color: #fff; }
.btn-primary:hover { background: var(--palm-deep); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--dusk); }
.btn-gold:hover { background: var(--gold-light); color: var(--dusk); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { padding: .45em .9em; font-size: .82rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; text-transform: uppercase; letter-spacing: .14em;
  font: 600 .74rem/1 var(--font-body); color: var(--terracotta);
}
:root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
.eyebrow::before { content: ""; width: 28px; height: 14px; background: var(--najdi) center/28px 14px no-repeat; }

.chip {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; text-decoration: none;
}
.chip[aria-pressed="true"], .chip.active { background: var(--palm); color: #fff; border-color: var(--palm); }

.status {
  display: inline-flex; align-items: center; gap: .45em; padding: .28em .7em .28em .55em; border-radius: 999px;
  font: 600 .78rem/1.2 var(--font-body); background: color-mix(in srgb, var(--st, var(--st-planned)) 14%, transparent);
  color: var(--st, var(--st-planned)); border: 1px solid color-mix(in srgb, var(--st, var(--st-planned)) 35%, transparent);
  white-space: nowrap;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-date { font-weight: 500; opacity: .8; margin-inline-start: .2em; }
.status-announced, .status-planned { --st: var(--st-planned); }
.status-in_design { --st: var(--st-design); }
.status-under_construction { --st: var(--st-build); }
.status-completed, .status-handover { --st: var(--st-done); }
.status-operational { --st: var(--st-open); }
.status-replanned { --st: var(--st-replan); }
.status-preparing_opening { --st: var(--oasis); }
.status-under_construction .dot, .status-preparing_opening .dot { animation: pulse 1.8s infinite; }

/* source chips — every number carries one */
.src-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; margin-inline-start: 4px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 7px; border-radius: 6px;
  font: 500 .7rem/1.6 var(--font-body); text-decoration: none; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; transition: .15s;
}
.src-chip:hover { color: #fff; background: var(--palm); border-color: var(--palm); }
.src-chip.tier-1 { border-inline-start: 3px solid var(--oasis); }
.src-chip.tier-2 { border-inline-start: 3px solid var(--gold); }
.src-chip.tier-3 { border-inline-start: 3px solid var(--sand-500); }
.src-date { opacity: .75; }
.src-ext { width: 9px; height: 9px; }
:root[dir="rtl"] .src-ext { transform: scaleX(-1); }

.conf { font-size: .72rem; font-weight: 600; padding: .1em .5em; border-radius: 6px; }
.conf-high { color: var(--st-done); background: color-mix(in srgb, var(--st-done) 12%, transparent); }
.conf-medium { color: var(--st-build); background: color-mix(in srgb, var(--st-build) 12%, transparent); }
.conf-low { color: var(--st-replan); background: color-mix(in srgb, var(--st-replan) 12%, transparent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { font: 500 1.02rem/1.15 var(--font-display); color: inherit; margin: 0; }
.logo-text strong { color: var(--terracotta); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.main-nav > a, .more > summary {
  padding: .5em .75em; border-radius: 10px; text-decoration: none; color: var(--ink-2); font: 500 .92rem/1 var(--font-body); cursor: pointer; list-style: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: " ▾"; font-size: .7em; }
.main-nav > a:hover, .more > summary:hover { background: var(--surface-2); color: var(--ink); }
.main-nav > a[aria-current="page"] { color: var(--palm); background: color-mix(in srgb, var(--oasis) 14%, transparent); }
.more { position: relative; }
.more-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2);
  display: grid;
}
.more-panel a { padding: .55em .8em; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.more-panel a:hover { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { font: 600 .9rem/1 var(--font-body); text-decoration: none; padding: .55em .9em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: .2s; }
.burger::before, .burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.status-strip { background: var(--palm-deep); color: var(--sand-100); font-size: .84rem; }
.status-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; padding-block: 4px; }
.status-strip .muted { color: var(--sand-300); }
.status-strip a { color: var(--gold-light); margin-inline-start: auto; text-decoration: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--oasis-light); box-shadow: 0 0 0 0 rgba(143, 211, 178, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 211, 178, .6); } 70% { box-shadow: 0 0 0 9px rgba(143, 211, 178, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 211, 178, 0); } }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: fixed; inset: 100px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: var(--shadow-2);
    max-height: calc(100dvh - 100px); overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a, .more > summary { padding: .85em .4em; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .more[open] .more-panel, .more-panel { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .status-strip a { margin-inline-start: 0; }
}

/* ---------- layout primitives ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-alt { background: var(--surface-2); }
.section-dark { background: radial-gradient(1200px 600px at 80% -10%, var(--dusk-2), var(--dusk) 60%); color: var(--sand-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: var(--sand-300); }
.section-dark a { color: var(--gold-light); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { max-width: 640px; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: var(--sand-300); }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } }
.sticky-aside { position: sticky; top: 120px; display: grid; gap: 18px; }

.page-hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 14px; background: var(--najdi) repeat-x center/28px 14px; opacity: .45; }
.page-hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; color: inherit; text-decoration: none;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: inherit; }
.card-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--palm-deep), var(--palm)); position: relative; overflow: hidden; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.card-media .impression { position: absolute; inset-inline-start: 10px; bottom: 10px; font-size: .66rem; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--muted); }
.card-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terracotta); font-weight: 600; }
:root[lang="ar"] .card-kicker { letter-spacing: 0; }
.cat-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.cat-art svg { width: 46%; height: auto; opacity: .9; }
.cat-culture { background: linear-gradient(140deg, #3a2a52, #a0563a); }
.cat-nature { background: linear-gradient(140deg, #0f3b2c, #3fa27a); }
.cat-sport { background: linear-gradient(140deg, #1b2340, #2f8f63); }
.cat-entertainment { background: linear-gradient(140deg, #6b2d4d, #d08a2e); }
.cat-civic { background: linear-gradient(140deg, #2b3560, #6e8fb5); }
.cat-religious { background: linear-gradient(140deg, #1f4d5d, #c9a45c); }
.cat-mixed_use { background: linear-gradient(140deg, #5a3b25, #c2603a); }
.cat-infrastructure { background: linear-gradient(140deg, #2d3436, #7f8c8d); }
.cat-transport { background: linear-gradient(140deg, #1b2340, #2b7fff); }

/* ---------- facts ---------- */
.fact-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-table th, .fact-table td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table tr:last-child > * { border-bottom: 0; }
.fact-table th { font: 600 .85rem/1.4 var(--font-body); color: var(--muted); width: 34%; }
.fact-value { font: 600 1.15rem/1.3 var(--font-display); color: var(--ink); }
.fact-measure { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.fact-rival { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .86rem; }
.fact-rival .fact-value { font-size: .98rem; }
.fact-actions { display: flex; gap: 10px; margin-top: 6px; font-size: .78rem; }
.fact-actions button, .linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.fact-actions button:hover, .linklike:hover { color: var(--accent); }
@media (max-width: 640px) {
  .fact-table th, .fact-table td { display: block; width: auto; }
  .fact-table th { border-bottom: 0; padding-bottom: 0; }
}

.stat-ribbon { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font: 700 clamp(1.9rem, 3.6vw, 2.8rem)/1 var(--font-display); color: var(--palm); letter-spacing: -.02em; }
.section-dark .stat { background: rgba(255, 255, 255, .04); }
.section-dark .stat-ribbon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.section-dark .stat-value { color: var(--gold-light); }
.stat-label { font-weight: 600; font-size: .92rem; }
.stat-measure { font-size: .78rem; color: var(--muted); }
.section-dark .stat-measure { color: var(--sand-300); }

.callout { border-radius: var(--radius); padding: 18px 20px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.callout h3 { font-size: 1.05rem; margin-bottom: .3em; }
.callout p:last-child { margin: 0; }
.callout-why::before { content: "⚖"; margin-inline-end: 8px; }
.note { font-size: .86rem; color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: 12px; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--gold); font-family: var(--font-display); font-size: 1.15em; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1.2em 0; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: start; }
.prose a.ext::after, a.ext-icon::after { content: "↗"; font-size: .75em; margin-inline-start: 2px; }
:root[dir="rtl"] .prose a.ext::after { content: "↖"; }

/* ---------- timeline list ---------- */
.tl { position: relative; display: grid; gap: 14px; padding-inline-start: 28px; }
.tl::before { content: ""; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--oasis), var(--gold), var(--terracotta)); border-radius: 2px; }
.tl-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -26px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--tc, var(--palm)); }
.tl-item.target { border-style: dashed; }
.tl-item.target::before { background: var(--bg); border-style: dashed; }
.tl-date { font: 600 .82rem/1 var(--font-body); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-item h3 { font-size: 1.05rem; margin: 6px 0 4px; font-family: var(--font-body); font-weight: 600; }
.tl-item p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.track-governance { --tc: var(--dusk-2); } .track-design { --tc: #7a6fb0; } .track-construction { --tc: var(--st-build); }
.track-culture { --tc: var(--terracotta); } .track-investment { --tc: var(--gold); } .track-transport { --tc: #2b7fff; } .track-opening { --tc: var(--oasis); }
.track-tag { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); font-weight: 700; }

/* ---------- progress bars ---------- */
.bar { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar > span { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w, 0%); background: linear-gradient(90deg, var(--palm), var(--oasis)); border-radius: inherit; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar.gap > span { background: repeating-linear-gradient(45deg, var(--gold), var(--gold) 6px, var(--gold-light) 6px, var(--gold-light) 12px); }

/* ---------- ads ---------- */
.ad-slot { position: relative; display: grid; place-items: center; margin-inline: auto; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--sand-300); overflow: hidden; }
.ad-leaderboard { width: min(100%, 970px); min-height: 90px; }
.ad-billboard { width: min(100%, 970px); min-height: 250px; }
.ad-mpu { width: min(100%, 300px); min-height: 250px; }
.ad-native { width: 100%; min-height: 160px; }
.ad-label { position: absolute; top: 6px; inset-inline-end: 10px; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ad-house, .ad-creative { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 22px; text-decoration: none; color: var(--ink); }
.ad-house strong { font-family: var(--font-display); font-size: 1.1rem; }
.ad-house span { font-size: .86rem; color: var(--muted); }
.ad-leaderboard .ad-house { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 14px 22px; }

/* ---------- newsletter + footer ---------- */
.newsletter-band { background: linear-gradient(120deg, var(--palm-deep), var(--palm)); color: var(--sand-100); padding-block: 48px; position: relative; overflow: hidden; }
.newsletter-band::before { content: ""; position: absolute; inset: 0; background: var(--najdi) repeat center/28px 14px; opacity: .08; }
.nl-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; align-items: center; }
.nl-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input { flex: 1 1 220px; padding: .85em 1.1em; border-radius: 999px; border: 0; font: inherit; font-size: .95rem; }
.form-done { font-weight: 600; color: var(--gold-light); }
@media (max-width: 800px) { .nl-grid { grid-template-columns: 1fr; } }
.site-footer { background: var(--dusk); color: var(--sand-200); padding-block: 56px 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { color: #fff; font: 600 .82rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
:root[lang="ar"] .footer-grid h3 { letter-spacing: 0; font-size: .95rem; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid a { color: var(--sand-200); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand .logo-text { font-size: 1.25rem; color: #fff; }
.disclaimer { font-size: .8rem; color: var(--sand-300); max-width: 46ch; }
.footer-base { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: var(--sand-300); }
.footer-base a { color: var(--gold-light); margin-inline-start: auto; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }

/* ---------- forms + dialog ---------- */
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
input, textarea, select { font: inherit; font-weight: 400; padding: .7em .9em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.correction-dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.correction-dialog::backdrop { background: rgba(12, 20, 17, .55); backdrop-filter: blur(3px); }
.correction-dialog form { display: grid; gap: 12px; padding: 26px; }
.correction-dialog h2 { font-size: 1.5rem; margin: 0; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.form-stack { display: grid; gap: 14px; }

/* ---------- filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.filter-bar .label { font-size: .82rem; color: var(--muted); margin-inline-end: 4px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- embed box ---------- */
.embed-box { margin-top: 14px; font-size: .84rem; }
.embed-box textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .76rem; direction: ltr; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.center { text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.divider { height: 14px; background: var(--najdi) repeat-x center/28px 14px; opacity: .5; border: 0; margin: 40px 0; }
.kbd-num { font-variant-numeric: tabular-nums; }

/* ---------- asset page ---------- */
.asset-hero { position: relative; padding-block: clamp(40px, 6vw, 80px) 32px; }
.asset-hero.has-media { padding-top: 0; }
.asset-hero-media { position: relative; margin: 0; height: clamp(260px, 52vh, 560px); overflow: hidden; background: var(--palm-deep); }
.asset-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-out both; }
.asset-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 17, 0) 45%, var(--bg) 100%); }
.asset-hero-media .impression { position: absolute; inset-inline-end: 16px; top: 16px; z-index: 2; font-size: .7rem; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.asset-hero.has-media .asset-hero-text { position: relative; margin-top: -120px; z-index: 2; }
.asset-hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 760px; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.lead-prose { font-size: 1.12rem; color: var(--ink-2); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.aside-card h3 { font-size: 1.05rem; }
.role-list, .source-list, .news-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.role-list li { display: grid; gap: 2px; font-size: .92rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.role-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.role-list a { font-weight: 600; text-decoration: none; }
.role-list .muted { font-size: .84rem; }
.source-list { list-style: decimal; padding-inline-start: 1.4em; gap: 8px; font-size: .9rem; }
.news-mini li { font-size: .95rem; }
.gallery img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mini-map { min-height: 380px; }

/* ---------- home ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--dusk); isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 30s ease-out both; }
.graphic-ready .hero-poster { opacity: 0; transition: opacity 1.2s ease; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 18, 32, .15) 0%, rgba(12, 18, 32, 0) 30%, rgba(12, 18, 32, .55) 70%, rgba(12, 18, 32, .9) 100%),
              linear-gradient(90deg, rgba(12, 18, 32, .55) 0%, rgba(12, 18, 32, 0) 60%); }
:root[dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(12, 18, 32, .15) 0%, rgba(12, 18, 32, 0) 30%, rgba(12, 18, 32, .55) 70%, rgba(12, 18, 32, .9) 100%), linear-gradient(-90deg, rgba(12, 18, 32, .55) 0%, rgba(12, 18, 32, 0) 60%); }
.hero-content { padding-block: 140px clamp(56px, 9vh, 110px); pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: .98; max-width: 14ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
:root[lang="ar"] .hero-title { line-height: 1.25; max-width: 16ch; }
.hero-title em { font-style: italic; color: var(--gold-light); font-weight: 600; }
:root[lang="ar"] .hero-title em { font-style: normal; }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 600px; color: rgba(255, 255, 255, .88); }
.eyebrow-light { color: var(--gold-light); }
.btn-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-ctas { margin-top: 26px; }
.hero-status { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); font-size: .9rem; }
.hero-status div { display: grid; }
.hero-status span:not(.pulse) { color: rgba(255, 255, 255, .75); font-size: .82rem; }
.hero-scroll { position: absolute; bottom: 22px; inset-inline-end: var(--gutter); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.page-home #numbers { margin-top: -54px; position: relative; z-index: 3; }
.page-home #numbers .stat-ribbon { box-shadow: var(--shadow-2); }

.five-things { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.five-things a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: .25s; }
.five-things a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--oasis); }
.five-things h3 { margin: 0; font-size: 1.15rem; }
.five-things p { margin: 0; font-size: .9rem; color: var(--muted); }
.ft-n { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--palm); color: var(--gold-light); font: 700 1.1rem/1 var(--font-display); }
.five-things li:nth-child(5) .ft-n { background: var(--terracotta); color: #fff; }
@media (max-width: 1100px) { .five-things { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); } }

.featured-grid .card:first-child { grid-column: span 2; }
.featured-grid .card:first-child .card-media { aspect-ratio: 21/10; }
@media (max-width: 700px) { .featured-grid .card:first-child { grid-column: auto; } .featured-grid .card:first-child .card-media { aspect-ratio: 16/10; } }

.scale-band { overflow: hidden; }
.scale-teaser { min-height: 340px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.timeline-teaser { min-height: 260px; }
.timeline-teaser:not(.graphic-ready) .tl { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; }
.timeline-teaser:not(.graphic-ready) .tl::before { display: none; }
.timeline-teaser:not(.graphic-ready) .tl-item::before { display: none; }
.timeline-teaser.graphic-ready > .tl { display: none; }
.pkg-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fc-feature { padding: 28px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.lede-sm { font-size: 1.1rem; color: var(--ink-2); }
.changes-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 0; }
.changes-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.changes-list time { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.changes-list a { color: var(--ink); text-decoration: none; }
.changes-list a:hover { color: var(--accent); }
.story-media { aspect-ratio: 16/9; }
.story-water-loop { background: linear-gradient(140deg, #0f3b2c, #2b7fff); }
.story-wadi-section { background: linear-gradient(140deg, #5a3b25, #3fa27a); }
.story-shade-cooling { background: linear-gradient(140deg, #c2603a, #1b2340); }
.story-rac-lineart { background: url("/static/img/art/royal-arts-complex.svg") center/cover, linear-gradient(140deg, #3a2a52, #a0563a); }
.story-mini-timeline { background: url("/static/img/art/wadi.svg") center/cover, linear-gradient(140deg, #1b2340, #c9a45c); }
.press-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.press-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.press-band p { margin: 0; max-width: 620px; }


/* ---------- map ---------- */
.page-map .site-footer, .page-map .newsletter-band { display: none; }
.map-wrap { position: relative; }
.map-shell { position: relative; height: calc(100dvh - 100px); min-height: 480px; background: var(--surface-2); overflow: hidden; }
.map-fallback { height: 100%; overflow: auto; padding-block: 120px 40px; }
.map-fallback-inner { display: grid; gap: 22px; }
.map-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin: 0; }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-list a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.map-list a:hover { border-color: var(--oasis); }
.map-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.map-title-panel { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; z-index: 5; max-width: min(340px, calc(100% - 32px)); padding: 14px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-1); pointer-events: none; }
.map-title-panel h1 { font-size: 1.25rem; margin: 2px 0 4px; }
.map-title-panel p { margin: 0; font-size: .78rem; }

/* ---------- timeline ---------- */
.tl-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 14px 18px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tl-legend-kinds, .tl-legend-tracks { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.tl-key { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.tl-swatch { width: 22px; height: 12px; border-radius: 4px; border: 2px solid var(--palm); background: var(--surface); }
.tl-swatch.dashed { border-style: dashed; }
.tl-year { display: grid; grid-template-columns: 90px 1fr; gap: 8px 24px; margin-bottom: 28px; }
.tl-year-label { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-display); color: var(--palm); margin: 0; position: sticky; top: 90px; align-self: start; }
.tl-assets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
@media (max-width: 640px) { .tl-year { grid-template-columns: 1fr; } .tl-year-label { position: static; } }

/* ---------- compare ---------- */
.compare-stage { min-height: 420px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(14px, 3vw, 28px); }
.compare-fallback .fact-table { margin-top: 12px; }

/* ---------- design & stories ---------- */
.story-card-lg .card-media { aspect-ratio: 16 / 10; position: relative; }
.story-n { position: absolute; inset-block-end: 10px; inset-inline-start: 16px; font: 700 2.6rem/1 var(--font-display); color: rgba(255, 255, 255, .85); }
.read-on { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--link); }
.story-hero { position: relative; isolation: isolate; color: #fff; background: linear-gradient(140deg, var(--palm-deep), var(--dusk)); padding-block: clamp(70px, 12vw, 150px) clamp(40px, 6vw, 80px); overflow: hidden; }
.story-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 18, 32, .35), rgba(12, 18, 32, .8)); }
.story-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.05; max-width: 20ch; }
.story-dek { font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255, 255, 255, .88); max-width: 46ch; margin-top: 14px; }
.story-byline { font-size: .84rem; color: rgba(255, 255, 255, .7); margin-top: 22px; }
.crumbs-light, .crumbs-light a { color: rgba(255, 255, 255, .75); }
.story-graphic-wrap { margin-block: -36px 24px; position: relative; z-index: 2; }
.story-graphic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); min-height: 280px; overflow: hidden; }
.story-body { padding-block: 24px 56px; }
.story-prose { font-size: 1.08rem; line-height: 1.75; }
.story-prose > p:first-of-type::first-letter { font: 700 3.4em/.9 var(--font-display); float: inline-start; padding-inline-end: .12em; color: var(--palm); }
:root[lang="ar"] .story-prose > p:first-of-type::first-letter { font: inherit; float: none; padding: 0; color: inherit; }
.story-sources-h { margin-top: 2.4rem; font-size: 1.2rem; }

/* ---------- visit ---------- */
.visit-status { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); border: 2px solid var(--st-build); background: color-mix(in srgb, var(--st-build) 10%, var(--surface)); box-shadow: var(--shadow-1); }
.visit-status h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 0 0 6px; }
.visit-asof { font: 500 .5em var(--font-body); color: var(--muted); }
.visit-status p { margin: 0; max-width: 66ch; }
.visit-status-icon { padding-top: 14px; }
.visit-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.visit-fact { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.visit-fact h3 { margin-top: 0; }
.visit-update { border-color: var(--gold); }

/* ---------- faq ---------- */
.faq-cat { margin-bottom: 40px; scroll-margin-top: 110px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item[open] { border-color: var(--oasis); box-shadow: var(--shadow-1); }
.faq-item > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--terracotta); flex: none; transition: transform .2s; }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer .prose { max-width: none; }
.unconfirmed { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--sand-500); }

/* ---------- changes ---------- */
.changelog { list-style: none; margin: 0 0 28px; padding: 0; border-inline-start: 2px solid var(--line); }
.changelog-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 6px 20px; padding: 14px 0; padding-inline: 22px 0; }
.changelog-item::before { content: ""; position: absolute; inset-inline-start: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--oasis); border: 3px solid var(--bg); }
.changelog-date { font-size: .84rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.changelog-body p { margin: 0 0 6px; }
@media (max-width: 560px) { .changelog-item { grid-template-columns: 1fr; } }

/* ---------- press ---------- */
.media-card { margin: 0; }
.media-credit { font-size: .78rem; margin: 4px 0 10px; }
.correct-card { border-color: var(--terracotta); }
.brand-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; }
.brand-facts > div { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.brand-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.brand-facts dd { margin: 0; font-weight: 500; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 28px; height: 28px; border-radius: 8px; background: var(--c); border: 1px solid var(--line); }

/* ---------- about ---------- */
.about-principles .ft-n { margin-bottom: 8px; }

/* ---------- advertise ---------- */
.audience-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.audience-card h3 { margin-top: .4em; }
.audience-card p { margin: 0; color: var(--muted); }
.aud-mark { font: 700 1.1rem var(--font-display); color: var(--gold); }
.placements { display: grid; gap: 28px; justify-items: center; }
.placement { margin: 0; width: 100%; display: grid; gap: 10px; justify-items: center; text-align: center; }
.placement figcaption { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; font-size: .9rem; }
.placement-row { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: center; width: 100%; }
.placement-row .placement { width: auto; }
.mock { display: grid; place-items: center; max-width: 100%; border-radius: var(--radius); border: 1px dashed var(--sand-500); background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); color: var(--muted); font: 600 .9rem var(--font-body); }
.mock-leaderboard { width: 970px; aspect-ratio: 970 / 90; }
.mock-billboard { width: 970px; aspect-ratio: 970 / 250; }
.mock-mpu { width: 300px; aspect-ratio: 300 / 250; }
.mock-native { width: 300px; aspect-ratio: 300 / 160; }
.adv-form { max-width: 560px; }
.adv-thanks { max-width: 560px; }
.adv-rules { padding-inline-start: 1.1em; }

/* ---------- graphics fallbacks ---------- */
[data-graphic="timeline-tracks"].graphic-ready > .tl, [data-graphic="stat-explorer"].graphic-ready > .g-fallback, [data-graphic="known-vs-gap"].graphic-ready > .g-fallback, [data-graphic="park-compare"].graphic-ready > .g-fallback { display: none; }

/* ---------- atlas pages: shared ---------- */
[data-tags][hidden], [data-group][hidden] { display: none !important; }
.page-hero-dark { background: radial-gradient(1200px 600px at 80% -10%, var(--dusk-2), var(--dusk) 60%); color: var(--sand-100); }
.page-hero-dark h1, .page-hero-dark h2 { color: #fff; }
.page-hero-dark .lede { color: var(--sand-200); }
.page-hero-dark .crumbs, .page-hero-dark .crumbs a { color: var(--sand-300); }
.page-hero-dark .hero-note { color: var(--sand-300); font-size: .88rem; margin: 0; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.data-table th, .data-table td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font: 600 .76rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
:root[lang="ar"] .data-table thead th { letter-spacing: 0; font-size: .85rem; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .num { text-align: end; white-space: nowrap; }
.data-table tbody th { font-weight: 600; }

/* ---------- explore ---------- */
.filter-panel { position: sticky; top: 102px; z-index: 5; margin-bottom: 36px; padding: 16px 20px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filter-panel .filter-bar { margin-bottom: 12px; }
.filter-panel button.chip { cursor: pointer; font-family: inherit; }
.filter-panel button.chip:hover { border-color: var(--oasis); }
.filter-count { margin: 0 0 6px; font-size: .86rem; color: var(--muted); }
.filter-none { text-align: center; padding: 40px 0; color: var(--muted); }
.explore-group { margin-bottom: clamp(36px, 5vw, 64px); }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.group-swatch { width: 14px; height: 38px; border-radius: 6px; }
@media (max-width: 700px) { .filter-panel { position: static; } }

/* ---------- districts ---------- */
.district-card { min-height: 260px; }
.district-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px 26px; background: var(--surface-2) var(--najdi) repeat-x bottom/28px 14px; }
.district-n { font: 700 3rem/1 var(--font-display); color: var(--terracotta); opacity: .85; }
.district-alt { font-size: .9rem; color: var(--muted); margin-top: -4px; }
.district-go { margin-inline-start: auto; color: var(--palm); font-weight: 600; }
.district-card:hover .district-go { color: var(--accent); }

/* ---------- progress ---------- */
.stack-bar { display: flex; gap: 3px; height: 46px; border-radius: 999px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); padding: 3px; }
.stack-bar > span { display: grid; place-items: center; min-width: 30px; background: var(--st, var(--st-planned)); color: #fff; font-size: .8rem; border-radius: 999px; }
.stack-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; color: var(--ink-2); }
.stack-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--st, var(--st-planned)); margin-inline-end: 8px; }
.phase-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.phase-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.phase-col header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.phase-col h3 { margin: 0; }
.phase-col header .chip { margin-inline-start: auto; }
.phase-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--palm); color: var(--gold-light); font: 700 1.15rem/1 var(--font-display); }
.phase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.phase-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.phase-list li:last-child { border-bottom: 0; }
.phase-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.phase-list a:hover { color: var(--accent); }

/* ---------- investment ---------- */
.hero-kpis { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 30px; }
.hero-kpis div { display: grid; gap: 4px; }
.hero-kpis span { font: 700 clamp(2rem, 4.4vw, 3.4rem)/1 var(--font-display); color: var(--gold-light); }
.hero-kpis small { color: var(--sand-300); font-size: .88rem; }
.kvg-wrap { min-height: 220px; }
.kvg-fb-row { padding: 18px 0; border-top: 1px solid var(--line); }
.kvg-fb-row:first-child { border-top: 0; padding-top: 0; }
.kvg-fb-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); }
.kvg-fb-src { font-size: .82rem; margin-top: 10px; }
.pkg-card .pkg-top { display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 0; }
.pkg-card .pkg-top h3 { margin: 2px 0 0; }
.pkg-card .pkg-top .status { margin-inline-start: auto; }
.pkg-n { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--palm); color: var(--gold-light); font: 700 1.3rem/1 var(--font-display); }
.pkg-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 0; }
.pkg-stats div { display: grid; gap: 0; }
.pkg-stats dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
:root[lang="ar"] .pkg-stats dt { letter-spacing: 0; font-size: .82rem; }
.pkg-stats dd { margin: 0; font: 700 1.2rem/1.2 var(--font-display); color: var(--palm); }

/* ---------- builders / org ---------- */
.org-head { display: flex; gap: 14px; align-items: center; }
.org-head h3 { margin: 0; font-size: 1.15rem; }
.org-mono { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--dusk-2); color: var(--gold-light); font: 700 1rem/1 var(--font-display); }
.org-where { font-size: .82rem; }
.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.org-card a.stretched { color: var(--ink); text-decoration: none; }
.org-card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.org-card .chip { position: relative; z-index: 2; }
.org-assets .label { font-size: .76rem; color: var(--muted); display: block; margin-bottom: 6px; }

/* ---------- news ---------- */
.news-feed { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.news-item time { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .6em; }
.news-item h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; } }

/* ---------- figures explained ---------- */
.fc-card .fc-q { color: var(--ink-2); font-size: 1.02rem; }
.fc-values { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fc-values li { display: grid; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); min-width: 90px; }
.fc-values li span { font: 700 1.1rem/1.2 var(--font-display); color: var(--palm); }
.fc-values small { font-size: .72rem; color: var(--muted); }
.fc-state { display: inline-block; padding: .2em .7em; border-radius: 999px; font: 600 .74rem/1.4 var(--font-body); background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--terracotta-deep); }
.fc-state-resolved { background: color-mix(in srgb, var(--st-done) 16%, transparent); color: var(--st-done); }
.fc-state-open { background: color-mix(in srgb, var(--st-build) 16%, transparent); color: var(--st-build); }
.claim-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); border-block-start: 4px solid var(--sand-300); }
.claim-card.is-primary { border-block-start-color: var(--palm); box-shadow: var(--shadow-1); }
.claim-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.claim-value { font: 700 clamp(1.8rem, 3.4vw, 2.5rem)/1.05 var(--font-display); color: var(--palm); }
.claim-card dl { display: grid; gap: 10px; margin: 0; }
.claim-card dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
:root[lang="ar"] .claim-card dt { letter-spacing: 0; font-size: .82rem; }
.claim-card dd { margin: 0; font-size: .92rem; }
.claim-card .conf { align-self: flex-start; margin-top: auto; }
.explain-grid { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); }
.explain-block { position: relative; padding: clamp(22px, 3vw, 34px); padding-inline-start: clamp(70px, 9vw, 110px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.explain-block h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.explain-n { position: absolute; inset-inline-start: clamp(18px, 3vw, 34px); top: clamp(16px, 2.6vw, 30px); font: 700 clamp(2.4rem, 5vw, 4rem)/1 var(--font-display); color: var(--gold); opacity: .8; }

/* ---------- numbers ---------- */
.stat-explorer { min-height: 320px; }
.topic-block { margin-bottom: clamp(28px, 4vw, 52px); }
.topic-block h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }

/* ---------- sources ---------- */
.tier-card { position: relative; border-block-start: 4px solid var(--sand-500); }
.tier-card.tier-1 { border-block-start-color: var(--oasis); }
.tier-card.tier-2 { border-block-start-color: var(--gold); }
.tier-n { font: 700 2.4rem/1 var(--font-display); color: var(--gold); display: block; margin-bottom: 8px; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 52px); }
.method-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .94rem; }
.method-list .conf { margin-inline-end: 6px; }
.source-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.source-index li { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 6px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); border-inline-start: 4px solid var(--sand-500); }
.source-index li.tier-1 { border-inline-start-color: var(--oasis); }
.source-index li.tier-2 { border-inline-start-color: var(--gold); }
.source-index li:last-child { border-bottom: 0; }
.source-index .si-meta { display: grid; font-size: .9rem; }
.source-index time { font-size: .78rem; color: var(--muted); }
.source-index a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .source-index li { grid-template-columns: 1fr; } }

/* ---------- story graphics ---------- */
.story-graphic[data-graphic="water-loop"], .story-graphic[data-graphic="wadi-section"], .story-graphic[data-graphic="shade-cooling"] { min-height: 320px; aspect-ratio: 16/9; }
.story-graphic.graphic-ready { aspect-ratio: auto; }

.stat-sub{display:block;font-size:.85rem;color:var(--muted);margin-top:-2px;margin-bottom:4px}

/* park-map module injects .g-park-map{height:100%}; keep the viewport height */
.map-shell.g-park-map { height: calc(100dvh - 100px); min-height: 480px; }
@media (max-width: 720px) { .map-shell.g-park-map { height: calc(100dvh - 90px); } }
.map-shell.graphic-ready ~ .map-title-panel { inset-block-start: auto; inset-block-end: 34px; inset-inline-start: auto; inset-inline-end: 356px; max-width: 300px; }
@media (max-width: 820px) {
  .map-shell.graphic-ready ~ .map-title-panel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
}

/* narrow phones: keep logo + language + menu on one row without overflow */
@media (max-width: 420px) {
  .header-row { gap: 10px; }
  .header-row .logo { flex-shrink: 1; min-width: 0; gap: 8px; }
  .header-row .logo svg { width: 30px; height: 30px; flex: none; }
  .header-row .logo-text { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { margin-inline-start: auto; gap: 6px; flex: none; }
  .lang-switch { padding: .5em .7em; font-size: .82rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* round-2 graphics: reserve space to avoid layout shift */
.model-3d { aspect-ratio: 16/10; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); position: relative; }
.model-3d .g-fallback-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.model-3d.graphic-ready { aspect-ratio: auto; min-height: 0; background: none; overflow: visible; }
.heights-block { min-height: 360px; }
.transit-block { min-height: 420px; margin: 8px 0 24px; }
.heights-block.graphic-ready, .transit-block.graphic-ready { min-height: 0; }
.progress-board-block { min-height: 480px; }
.progress-board-block.graphic-ready { min-height: 0; }
/* hide the map title card while the timeline dock or tour is open */
.map-wrap:has(.pm-dock:not([hidden])) .map-title-panel,
.map-wrap:has(.pm-tour:not([hidden])) .map-title-panel { opacity: 0; visibility: hidden; transition: opacity .2s; }
/* scrollytelling story: sticky stage needs no clipping container */
.story-graphic[data-graphic="airbase-to-park"] { overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 0; min-height: 100vh; }
.story-graphic[data-graphic="airbase-to-park"].graphic-ready { min-height: 0; }
.story-airbase-to-park + .story-graphic-wrap { margin-block: 0; }

/* design index cards: artwork */
.story-media.has-img { position: relative; overflow: hidden; background: var(--dusk); }
.story-media.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.story-media.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,30,.62), rgba(20,18,30,0) 55%); pointer-events: none; }
.story-media.has-img .story-n { z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.story-ai { position: absolute; z-index: 1; inset-block-start: 10px; inset-inline-end: 10px; font: 600 .68rem/1 var(--font-body); letter-spacing: .02em; color: #fff; background: rgba(20,18,30,.55); backdrop-filter: blur(6px); padding: 5px 8px; border-radius: 999px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .story-card:hover .story-media.has-img img { transform: scale(1.05); } }
.story-media.has-img .story-n { inset-block-end: auto; inset-block-start: 12px; }
.story-media.has-img::after { background: linear-gradient(to bottom, rgba(20,18,30,.5), rgba(20,18,30,0) 40%, rgba(20,18,30,0) 75%, rgba(20,18,30,.35)); }

/* =====================================================================
   v11 editorial layer: homepage story flow, page centrepieces, press kit.
   Server-rendered charts (no JS): status-board, source-board, range-strip.
   Logical properties throughout, so everything mirrors in RTL.
   ===================================================================== */

/* ---------- hero: hotspots above the shade (the shade used to dim them) ---------- */
.hero-stage { z-index: auto; }
.hero-stage canvas, .hero-poster, .hero-stage .g-hero-3d__vig { z-index: -2; }
.hero-content { position: relative; z-index: 1; }
.hero-scroll { z-index: 2; }

/* ---------- home: numbers deck ---------- */
.numbers-deck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.nd-tile { background: var(--surface); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nd-tile.reveal { transition-delay: calc(var(--i, 0) * 55ms); }
.nd-kicker { font: 600 .72rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
:root[lang="ar"] .nd-kicker { letter-spacing: 0; font-size: .85rem; }
.nd-kicker a { color: inherit; text-decoration: none; }
.nd-kicker a:hover { text-decoration: underline; }
.nd-value { display: block; margin-top: 4px; color: var(--link); }
.nd-value small { display: block; font: 600 .78rem/1.2 var(--font-body); color: var(--muted); margin-bottom: 2px; }
.nd-value b { font: 700 clamp(2rem, 3.3vw, 3rem)/1 var(--font-display); letter-spacing: -.02em; }
:root[lang="ar"] .nd-value b { letter-spacing: 0; }
.nd-unit { display: block; font: 600 .95rem/1.3 var(--font-body); color: var(--ink-2); margin-top: 4px; overflow-wrap: anywhere; }
.nd-aside { font-size: .85rem; color: var(--muted); }
.nd-label { font-weight: 600; font-size: .92rem; }
.nd-measure { font-size: .78rem; line-height: 1.45; color: var(--muted); }
.nd-src { margin-top: auto; padding-top: 6px; }
.nd-src .src-chips { margin-inline-start: 0; }
.nd-lead { grid-column: span 2; grid-row: span 2; justify-content: flex-end; color: #fff; padding: clamp(22px, 3vw, 40px);
  background: radial-gradient(900px 500px at 85% -20%, var(--palm), var(--palm-deep) 62%); position: relative; isolation: isolate; }
.nd-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--najdi) repeat center/56px 28px; opacity: .1; }
.nd-lead .nd-kicker { color: var(--gold-light); }
.nd-lead .nd-value { color: var(--gold-light); }
.nd-lead .nd-value small { color: rgba(255, 255, 255, .75); font-size: 1rem; }
.nd-lead .nd-value b { font-size: clamp(5rem, 12vw, 10rem); line-height: .9; }
.nd-lead .nd-unit { display: inline; font: 600 clamp(1.6rem, 3vw, 2.6rem)/1 var(--font-display); color: #fff; }
.nd-lead .nd-aside { color: rgba(255, 255, 255, .85); font-size: 1rem; }
.nd-lead .nd-measure { color: rgba(255, 255, 255, .7); font-size: .85rem; max-width: 52ch; }
.nd-tile:nth-child(8):last-child { grid-column: span 2; }
.nd-foot { margin-top: 14px; font-size: .88rem; }
@media (max-width: 1000px) {
  .numbers-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-lead { grid-row: auto; }
}
@media (max-width: 520px) {
  .nd-tile { padding: 16px 14px 14px; }
  .nd-tile:nth-child(8):last-child { grid-column: span 2; }
  .nd-measure { font-size: .74rem; }
}

/* ---------- home: chapter rhythm ---------- */
.page-home main { counter-reset: ch; }
.page-home .ch { counter-increment: ch; }
.page-home .ch .eyebrow::after { content: counter(ch, decimal-leading-zero); order: -2; font: 600 .8rem/1 var(--font-display); letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-home .ch .eyebrow-light::after { color: rgba(255, 255, 255, .6); }
.page-home .section-head h2, .page-home .runway-text h2 { text-wrap: balance; }
.page-home .section-head { border-block-start: 1px solid var(--line); padding-block-start: 22px; }
.page-home .section-dark .section-head { border-color: rgba(255, 255, 255, .14); }

/* Najdi sawtooth edge on full-bleed dark bands (echoes the triangle motif) */
.runway-band, .page-home .scale-band {
  --saw: 22px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--saw) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--saw) 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--saw) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--saw) 51% repeat-x;
}

/* ---------- home: runway band ---------- */
.runway-band { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(440px, 74vh, 680px); background: var(--dusk); color: #fff; margin-block: clamp(24px, 4vw, 56px); }
.runway-media { position: absolute; inset: 0; z-index: -2; }
.runway-media img { width: 100%; height: 100%; object-fit: cover; }
.runway-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 18, 32, .1) 0%, rgba(12, 18, 32, .2) 35%, rgba(12, 18, 32, .86) 100%); }
.runway-text { width: 100%; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 100px); }
.runway-text h2 { color: #fff; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; max-width: 14ch; margin-block: .25em .3em; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
:root[lang="ar"] .runway-text h2 { line-height: 1.3; }
.runway-text p { max-width: 560px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .9); margin-bottom: 1.4em; }
.runway-media img { transform: scale(1.14) translate3d(0, var(--drift, 0%), 0); will-change: transform; }
.runway-band .impression { position: absolute; inset-inline-end: var(--gutter); top: 34px; font-size: .7rem; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
@media (prefers-reduced-motion: reduce) { .runway-media img { transform: none; } }

/* ---------- shared chart cards ---------- */
.status-board, .source-board, .range-hero { margin: 0 0 clamp(24px, 3vw, 40px); padding: clamp(18px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.status-board figcaption h2, .source-board figcaption h2, .range-hero figcaption h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: .25em; }
.status-board figcaption p, .source-board figcaption p { margin: 0; max-width: 70ch; }
.sb-asof { white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.sb-bar { display: flex; gap: 3px; height: 60px; margin-top: 18px; border-radius: 14px; overflow: hidden; }
.sb-seg { flex: var(--w) 1 0; min-width: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; padding: 0 4px; margin: 0;
  background: var(--st, var(--sand-500)); color: #14110c; font: 700 1.05rem/1 var(--font-body); cursor: pointer; text-decoration: none; transition: opacity .25s, filter .2s; }
.sb-seg:hover { filter: brightness(1.08); color: #14110c; }
.sb-seg:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 0; }
.sb-seg span { font: 600 .7rem/1 var(--font-body); white-space: nowrap; overflow: hidden; max-width: 100%; }
.sb-seg.status-announced, .sb-legend .status-announced i { background: repeating-linear-gradient(135deg, var(--st), var(--st) 6px, color-mix(in srgb, var(--st) 62%, #fff) 6px 12px); }
.sb-bar:has([aria-pressed="true"]) .sb-seg[aria-pressed="false"] { opacity: .3; }
.sb-seg[aria-pressed="true"] { box-shadow: inset 0 -5px 0 rgba(20, 17, 12, .55); }
.sb-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }
.sb-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sb-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--st); flex: none; }
.sb-legend b { color: var(--muted); font-weight: 600; }
.sb-note { margin: 14px 0 0; font-size: .82rem; }
.sb-bar.tiers .sb-seg.tier-1 { background: var(--oasis); }
.sb-bar.tiers .sb-seg.tier-2 { background: var(--gold); }
.sb-bar.tiers .sb-seg.tier-3 { background: var(--sand-500); }
.sb-sub { margin: 28px 0 10px; font-size: 1.05rem; }
.pub-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pub-bars li { display: grid; grid-template-columns: minmax(120px, 280px) minmax(0, 1fr) 2.2em; gap: 12px; align-items: center; font-size: .9rem; }
.pub-bars .pb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-bars .pb-track { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pub-bars .pb-track i { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: inherit; background: var(--sand-500); }
.pub-bars .tier-1 .pb-track i { background: var(--oasis); }
.pub-bars .tier-2 .pb-track i { background: var(--gold); }
.pub-bars b { text-align: end; }
@media (max-width: 560px) { .pub-bars li { grid-template-columns: minmax(0, 1fr) 2.2em; } .pub-bars .pb-name { grid-column: 1 / -1; margin-bottom: -4px; white-space: normal; } }

/* ---------- figures explained: range strips ---------- */
.range-strip { margin: 14px 0 4px; padding-inline: 10px; }
.rs-track { position: relative; height: 26px; }
.rs-track::before { content: ""; position: absolute; inset-inline: -10px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); border-radius: 2px; }
.rs-span { position: absolute; top: 50%; height: 8px; margin-top: -4px; inset-inline-start: calc(var(--from) * 1%); width: calc(var(--w) * 1%); border-radius: 99px; background: color-mix(in srgb, var(--gold) 50%, transparent); }
.rs-dot { position: absolute; top: 50%; inset-inline-start: calc(var(--p) * 1%); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--terracotta); box-sizing: border-box; }
.rs-dot.primary { width: 16px; height: 16px; margin: -8px; background: var(--link); border-color: var(--link); z-index: 1; }
.rs-axis { display: flex; justify-content: space-between; gap: 12px; margin-inline: -10px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-axis span:last-child { text-align: end; }
.range-lg { margin-top: 26px; padding-inline: 16px; }
.range-lg .rs-track { height: 92px; }
.range-lg .rs-track::before, .range-lg .rs-span { top: 50%; }
.range-lg .rs-dot { width: 28px; height: 28px; margin: -14px; display: grid; place-items: center; font-style: normal; background: var(--surface); }
.range-lg .rs-dot b { font: 700 .8rem/1 var(--font-body); color: var(--terracotta-deep); }
.range-lg .rs-dot.primary { width: 34px; height: 34px; margin: -17px; background: var(--link); }
.range-lg .rs-dot.primary b { color: var(--surface); }
.range-lg .rs-dot:nth-child(3n+2) { top: 18%; }
.range-lg .rs-dot:nth-child(3n+1) { top: 82%; }
.range-lg .rs-dot::after { content: ""; position: absolute; inset-inline-start: 50%; width: 1px; background: var(--line); z-index: -1; }
.range-lg .rs-dot:nth-child(3n+2)::after { top: 100%; height: 18px; }
.range-lg .rs-dot:nth-child(3n+1)::after { bottom: 100%; height: 18px; }
.range-lg .rs-axis { margin-inline: -16px; font-size: .8rem; }
.range-key { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 28px; }
.range-key li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-block: 10px; border-block-start: 1px solid var(--line); }
.rk-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--terracotta); font: 700 .78rem/1 var(--font-body); color: var(--terracotta-deep); }
.range-key .primary .rk-n { background: var(--link); border-color: var(--link); color: var(--surface); }
.range-key strong { font: 700 1.1rem/1.25 var(--font-display); }
.range-key small { display: block; font-size: .8rem; color: var(--muted); margin-block: 2px 4px; }
.range-key .src-chips { margin-inline-start: 0; }
.rk-lead { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); white-space: nowrap; }
.range-note { margin: 16px 0 0; font-size: .85rem; }

/* ---------- builders: network ---------- */
.org-network-block { min-height: 1000px; }
.org-network-block.graphic-failed { min-height: 0; }
@media (max-width: 760px) { .org-network-block { min-height: 1400px; } }
.org-network-block > .g-fallback-note { margin: 0; padding: 24px; color: var(--muted); }
.kind-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kind-jump .chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--k, var(--sand-500)); }
.kind-jump .chip b { color: var(--muted); }
.kind-jump .chip:hover { border-color: var(--oasis); color: var(--ink); }
.kind-owner { --k: #c9a45c; } .kind-government { --k: #5b6aa8; } .kind-pmo { --k: #8d6bb3; } .kind-designer { --k: #c2603a; } .kind-engineer { --k: #2b7fff; }
.kind-contractor { --k: #d08a2e; } .kind-developer { --k: #3fa27a; } .kind-investor { --k: #1f8f8a; } .kind-operator { --k: #b5523a; } .kind-other { --k: #8a7f6c; }

/* ---------- asset page: location not yet mapped ---------- */
.unmapped-card { position: relative; overflow: hidden; border-style: dashed; }
.unmapped-card svg { width: 100%; height: auto; margin-bottom: 10px; border-radius: 12px; background: var(--surface-2); }
.unmapped-card .um-park { fill: color-mix(in srgb, var(--oasis) 16%, transparent); stroke: var(--oasis); stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linejoin: round; }
.unmapped-card .um-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .9; }
.unmapped-card .um-ring2 { opacity: .4; stroke-dasharray: 2 5; }
.unmapped-card text { font: 700 22px var(--font-display); fill: var(--gold); }
.unmapped-card p { font-size: .88rem; margin-bottom: .7em; }
.unmapped-card .um-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .86rem; }
.unmapped-card .um-tag { position: absolute; inset-inline-end: 28px; top: 28px; font-size: .64rem; padding: 2px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .unmapped-card .um-ring { transform-origin: 112px 62px; animation: um-ping 3.2s ease-out infinite; }
  .unmapped-card .um-ring2 { animation-delay: 1.1s; }
  @keyframes um-ping { 0% { transform: scale(.55); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
}

/* ---------- press kit ---------- */
.press-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .press-hero-grid { grid-template-columns: 1fr; } }
.press-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.glance-card { position: relative; padding: 22px 24px 18px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); color: #fff; }
.glance-card::before { content: ""; position: absolute; inset-inline: 24px; top: -7px; height: 14px; background: var(--najdi) repeat-x center/28px 14px; }
.glance-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 600 .72rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
:root[lang="ar"] .glance-head { letter-spacing: 0; font-size: .85rem; }
.glance-status { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-weight: 600; font-size: 1.05rem; }
.glance-nums { margin: 0; display: grid; }
.glance-nums > div { padding-block: 12px; border-block-start: 1px solid rgba(255, 255, 255, .16); }
.glance-nums dt { font-size: .8rem; color: var(--sand-300); }
.glance-nums dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.glance-nums dd small { font-size: .8rem; color: var(--sand-300); }
.glance-nums dd b { font: 700 2rem/1.1 var(--font-display); color: var(--gold-light); }
.glance-nums dd i { font-style: normal; font-weight: 600; }
.glance-foot { margin: 6px 0 0; padding-top: 12px; border-block-start: 1px solid rgba(255, 255, 255, .16); font-size: .78rem; color: var(--sand-300); }
.fact-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.fact-sheet table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.fact-sheet thead th { font: 600 .72rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
:root[lang="ar"] .fact-sheet thead th { letter-spacing: 0; font-size: .85rem; }
.fact-sheet th, .fact-sheet td { padding: 14px 18px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.fact-sheet tbody th { font-weight: 600; }
.fact-sheet tbody th a { font-weight: 500; font-size: .82rem; color: var(--terracotta); text-decoration: none; }
.fs-val { font: 700 1.25rem/1.2 var(--font-display); color: var(--link); min-width: 9ch; }
.fs-measure { color: var(--ink-2); font-size: .88rem; }
@media (min-width: 761px) { .fact-sheet table { table-layout: fixed; } .fact-sheet thead th:nth-child(1) { width: 21%; } .fact-sheet thead th:nth-child(2) { width: 17%; } .fact-sheet thead th:nth-child(3) { width: 36%; } }
.fact-sheet .src-chips { margin-inline-start: 0; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; background: var(--surface-2); }
@media (max-width: 760px) {
  .fact-sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fact-sheet table, .fact-sheet tbody, .fact-sheet tr, .fact-sheet th, .fact-sheet td { display: block; }
  .fact-sheet tr { padding: 14px 16px; border-block-end: 1px solid var(--line); }
  .fact-sheet th, .fact-sheet td { padding: 2px 0; border: 0; }
}
.embed-live { margin-bottom: clamp(24px, 4vw, 44px); }
.embed-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .88rem; }
.embed-live .heights-block { min-height: 560px; }
.embed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.embed-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.embed-thumb { position: relative; aspect-ratio: 16/8; background: var(--dusk); overflow: hidden; }
.embed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.embed-thumb .impression { position: absolute; inset-inline-start: 10px; bottom: 10px; font-size: .66rem; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.embed-thumb-compare { display: grid; place-items: center; color: var(--gold-light); background: radial-gradient(600px 300px at 80% -10%, var(--dusk-2), var(--dusk) 60%); }
.embed-thumb-compare svg { width: 62%; height: auto; }
.embed-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.embed-body h3 { margin: 0; font-size: 1.12rem; }
.embed-body p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1; }
.embed-body textarea { width: 100%; resize: none; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: .72rem/1.45 ui-monospace, Consolas, monospace; text-align: left; }
.embed-terms { margin: 18px 0 0; font-size: .85rem; }

/* ---------- focus + small polish ---------- */
.card:focus-visible, .five-things a:focus-visible, .btn:focus-visible, .chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.section-dark :focus-visible, .page-hero-dark :focus-visible, .hero :focus-visible, .runway-band :focus-visible { outline-color: var(--gold-light); }
html { scroll-padding-top: 110px; }

/* ---------- dark mode for the new pieces ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nd-lead { background: radial-gradient(900px 500px at 85% -20%, #1f5d45, #0b2a20 62%); }
  :root:not([data-theme="light"]) .rs-dot:not(.primary), :root:not([data-theme="light"]) .rk-n { border-color: #e07a52; }
  :root:not([data-theme="light"]) .range-lg .rs-dot b, :root:not([data-theme="light"]) .rk-n { color: #f0a283; }
  :root:not([data-theme="light"]) .range-key .primary .rk-n { color: var(--surface); border-color: var(--link); }
  :root:not([data-theme="light"]) .nd-kicker, :root:not([data-theme="light"]) .fact-sheet tbody th a { color: #e58a63; }
  :root:not([data-theme="light"]) .stat-value { color: var(--link); }
}
:root[data-theme="dark"] .nd-lead { background: radial-gradient(900px 500px at 85% -20%, #1f5d45, #0b2a20 62%); }
:root[data-theme="dark"] .rs-dot:not(.primary), :root[data-theme="dark"] .rk-n { border-color: #e07a52; }
:root[data-theme="dark"] .range-lg .rs-dot b, :root[data-theme="dark"] .rk-n { color: #f0a283; }
:root[data-theme="dark"] .range-key .primary .rk-n { color: var(--surface); border-color: var(--link); }
:root[data-theme="dark"] .nd-kicker, :root[data-theme="dark"] .fact-sheet tbody th a { color: #e58a63; }
:root[data-theme="dark"] .stat-value { color: var(--link); }

@media (prefers-reduced-motion: reduce) { .sb-seg, .nd-tile.reveal { transition: none; } }

/* the hidden attribute must win over display set by component classes (chips, buttons) */
[hidden] { display: none !important; }
.nd-src .src-chips { display: flex; }
.nd-src .src-chip { max-width: 100%; min-width: 0; }
.nd-src .src-pub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
