:root {
  --navy: #0d2240;
  --navy-deep: #08162b;
  --navy-soft: #1b355c;
  --gold: #b48a3c;
  --gold-soft: #d8b878;
  --red: #b0182b;
  --red-soft: #fbecee;
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --ink: #1d232c;
  --muted: #5d6673;
  --line: #d9d2c2;
  --white: #ffffff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}
:root[lang="ar"] {
  --serif: 'Noto Naskh Arabic', 'Source Serif 4', Georgia, serif;
  --sans: 'Noto Sans Arabic', 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
:root[lang="ar"] body { font-size: 1.1rem; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
:root[lang="ar"] :is(h1, h2, h3) { line-height: 1.45; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { color: var(--navy-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); border-bottom: 1px solid rgba(216, 184, 120, .35); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand:hover { color: var(--white); }
.brand img { flex: none; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand strong { color: var(--white); font-family: var(--serif); font-size: 1.02rem; letter-spacing: .01em; }
.brand small { color: var(--gold-soft); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
:root[lang="ar"] .brand small { letter-spacing: 0; font-size: .8rem; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { color: #d6dbe4; text-decoration: none; font-size: .9rem; font-weight: 600; padding: 6px 9px; border-radius: var(--radius); }
.lang-switch a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.lang-switch a[aria-current] { color: var(--gold-soft); }
.lang-switch a[lang="ar"] { font-family: 'Noto Sans Arabic', var(--sans); }
.header-cta { padding: 8px 14px; font-size: .9rem; }
@media (max-width: 860px) {
  .brand small, .site-header .header-cta { display: none; }
  .brand strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
  .brand strong { display: none; }
  .lang-switch a { padding: 6px 7px; }
}

/* Hero */
.hero { background: radial-gradient(ellipse at 70% 30%, #13305a 0%, var(--navy-deep) 70%); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 12px; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.hero .kicker { color: var(--gold-soft); font-size: 1.02rem; margin-bottom: 10px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lede { font-family: var(--serif); font-size: clamp(1.08rem, 2vw, 1.3rem); color: #e8e2d4; max-width: 640px; margin-bottom: 22px; border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; }
.hero .issuer { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #c7cfdb; }
:root[lang="ar"] .hero .issuer { letter-spacing: 0; font-size: .95rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cover { display: block; transform: rotate(1.5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); border: 1px solid rgba(216, 184, 120, .4); transition: transform .2s; }
:root[dir="rtl"] .hero-cover { transform: rotate(-1.5deg); }
.hero-cover:hover { transform: rotate(0); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 52px; }
  .hero-cover { max-width: 220px; margin: 0 auto; }
}

.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; font-size: .98rem; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section h2 { padding-bottom: 12px; border-bottom: 2px solid var(--gold); margin-bottom: 22px; }
.section h3 { margin-top: 1.6em; }
.lead-para { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-inline-start: 4px solid var(--gold); }
.stat { background: var(--white); padding: 22px 16px; text-align: center; }
.section:not(.section-alt) .stat { background: var(--paper); }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--navy); line-height: 1; }
.stat .num.red { color: var(--red); }
.stat .lbl { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.stat .src { font-size: .78rem; color: var(--muted); opacity: .85; margin-top: 4px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Findings list */
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: f; }
.findings li { display: grid; grid-template-columns: 56px 1fr; background: var(--paper); counter-increment: f; }
.section-alt .findings li { background: var(--white); }
.findings li::before { content: counter(f); display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font: 700 1.5rem var(--serif); }
.findings li > div { padding: 14px 18px; }

/* Recommendations */
.recs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.recs li { background: var(--white); border-inline-start: 4px solid var(--navy); padding: 16px 20px; }
.recs .when { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: 2px 8px; border-radius: 3px; margin-inline-end: 8px; }
:root[lang="ar"] .recs .when { letter-spacing: 0; font-size: .85rem; }
.recs h3 { display: inline; font-size: 1.12rem; margin: 0; }
.recs p { margin: 8px 0 0; }

/* Callouts */
.callout { background: var(--paper); border-inline-start: 6px solid var(--navy); padding: 20px 24px; margin: 28px 0; }
.callout .label { font-size: .85rem; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
:root[lang="ar"] .callout .label { letter-spacing: 0; font-size: .95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-dark { background: var(--navy); border-inline-start-color: var(--gold); color: #e7ebf1; }
.callout-dark .label { color: var(--gold-soft); }
.callout-dark strong { color: var(--white); }
.callout-dark h3 { color: var(--white); margin-top: 0; }

ul.bullets { padding-inline-start: 1.2em; }
ul.bullets li { margin-bottom: .5em; }
ul.bullets li::marker { color: var(--gold); }

/* Figures */
figure { margin: 26px 0; }
figure img { border: 1px solid var(--line); background: var(--white); width: 100%; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
figcaption b { color: var(--navy); }
.zoomable { cursor: zoom-in; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 24, .94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; cursor: zoom-out; overflow: auto; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 94vh; max-width: 100%; border: 0; }
@media (max-width: 760px) {
  /* On phones the figures are wider than the screen: show them at full width and let the reader scroll */
  .lightbox { align-items: flex-start; justify-content: flex-start; }
  .lightbox img { max-width: none; max-height: none; width: 1400px; }
}

/* Contents */
.toc { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 36px; }
.toc li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.toc .part { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 0; padding-top: 16px; }
:root[lang="ar"] .toc .part { letter-spacing: 0; font-size: .9rem; }
.toc .n { color: var(--gold); font-family: var(--serif); font-weight: 700; min-width: 1.6em; }
@media (max-width: 700px) { .toc { columns: 1; } }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0 26px; }
.download { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.download:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 34, 64, .12); color: var(--ink); }
.download img { border: 1px solid var(--line); }
.download b { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.08rem; }
.download span { font-size: .88rem; color: var(--muted); }
.download[lang="ar"] b, .download[lang="ar"] span { font-family: 'Noto Sans Arabic', var(--sans); }
@media (max-width: 820px) { .downloads { grid-template-columns: 1fr; } }
.cite { font-size: .95rem; background: var(--paper); padding: 14px 18px; border-inline-start: 4px solid var(--gold); }

ol.sources { font-size: .9rem; color: var(--muted); padding-inline-start: 1.6em; overflow-wrap: anywhere; }
ol.sources li { margin-bottom: .5em; }
sup.fn a { color: var(--gold); text-decoration: none; font-weight: 700; font-size: .8em; padding: 0 1px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c2cf; padding: 44px 0 30px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.footer-title { color: var(--gold-soft); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
:root[lang="ar"] .footer-title { letter-spacing: 0; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #dde3ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* 404 */
.notfound { padding: 90px 0; text-align: center; }

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
}
