/* ==========================================================================
   SSCB – Design system (based on the SSCB Brand Guidelines v1.0)
   Colours: Forest #0B3D2E · Leaf #00BF63 · Sprout #7ED957 · Harvest Orange #FE8D00
            Ink #1C1C1C · Slate #5A6B63 · Mist #EEF4F0 · Euphrates Blue #1F6F8B
   Type:    Geom (Latin) · Alyamama (Arabic) – self-hosted, no external requests
   All layout uses logical properties so RTL (Arabic) and LTR mirror automatically.
   ========================================================================== */

@font-face { font-family: "Geom"; src: url("../fonts/Geom-VF.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Alyamama"; src: url("../fonts/Alyamama-VF.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --forest: #0B3D2E; --forest-90: #124B39; --forest-80: #1A5A45;
  --leaf: #00BF63; --sprout: #7ED957; --orange: #FE8D00;
  --ink: #1C1C1C; --slate: #5A6B63; --mist: #EEF4F0; --mist-2: #E3ECE7; --line: #D5E0DA; --white: #fff;
  --blue: #1F6F8B;
  --orange-ink: #8A4B00; --orange-tint: #FFF2E0; --blue-tint: #E4F0F4; --leaf-tint: #E0F6EA; --leaf-ink: #00703A;
  --font: "Geom", "Alyamama", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px; --radius-sm: 8px; --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11,61,46,.06), 0 8px 24px rgba(11,61,46,.08);
  --shadow-lg: 0 2px 4px rgba(11,61,46,.06), 0 18px 48px rgba(11,61,46,.14);
  --container: 1240px; --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
html[lang="ar"] { font-size: 106.25%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf-ink); }
h1, h2, h3, h4 { color: var(--forest); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] :is(h1,h2,h3,h4) { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sprout); color: var(--forest); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ico-dir { transform: scaleX(-1); }

.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000; background: var(--forest); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Draft banner ---------- */
.draft-banner { background: var(--orange-tint); color: var(--orange-ink); font-size: .85rem; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid #F6D9B0; }
.draft-banner strong { font-weight: 700; }
.draft-banner .ico { display: inline-block; vertical-align: -3px; margin-inline-end: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(11,61,46,.06); }
.utility { background: var(--forest); color: #fff; font-size: .82rem; }
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-name { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.utility a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
.utility a:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-switch { font-weight: 700; border: 1px solid rgba(255,255,255,.35); }
.mainbar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 32px; width: auto; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.main-nav a:hover, .main-nav .nav-btn:hover, .main-nav .nav-btn[aria-expanded="true"] { background: var(--mist); color: var(--forest); }
.main-nav a[aria-current="page"], .main-nav .is-active > .nav-btn { color: var(--forest); font-weight: 700; box-shadow: inset 0 -2px 0 var(--leaf); border-radius: 8px 8px 0 0; }
.has-sub { position: relative; }
.nav-btn .ico { width: .9em; height: .9em; transition: transform .2s; }
.nav-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.subnav { position: absolute; inset-inline-start: 50%; transform: translateX(-50%); top: calc(100% + 8px); width: 640px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; list-style: none; margin: 0; }
[dir="rtl"] .subnav { transform: translateX(50%); }
.subnav.is-open { display: grid; }
.subnav a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; white-space: normal; font-size: .92rem; line-height: 1.35; border-radius: 10px; }
.subnav a .sub-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--mist); color: var(--forest); display: grid; place-items: center; }
.subnav a:hover .sub-ico { background: var(--forest); color: var(--sprout); }
.subnav .sub-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.subnav .sub-all a { font-weight: 700; color: var(--forest); }
.header-cta { flex: none; }
.menu-toggle { display: none; margin-inline-start: auto; align-items: center; gap: 8px; background: var(--mist); color: var(--forest); border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11,61,46,.5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); background: #fff; overflow-y: auto; padding: 18px 22px 40px; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 14px; }
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head img { height: 30px; width: auto; }
.icon-btn { background: var(--mist); border: 0; border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--forest); cursor: pointer; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.drawer nav a[aria-current="page"] { color: var(--forest); font-weight: 700; }
.drawer .drawer-sub a { padding-inline-start: 18px; font-size: .92rem; color: var(--slate); }
.drawer-secondary a { font-size: .9rem; color: var(--slate) !important; }
.drawer-lang { display: flex; gap: 10px; }

@media (max-width: 1180px) {
  .main-nav, .mainbar .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand img { height: 28px; }
  .draft-banner { font-size: .78rem; padding-block: 6px; }
  .utility-name { display: none; }
  .utility .container { justify-content: flex-end; }
  .utility-links .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn { --b: var(--forest); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; border: 2px solid var(--b); background: var(--b); color: #fff; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; line-height: 1.2; }
.btn:hover { background: var(--forest-80); border-color: var(--forest-80); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-sprout { background: var(--sprout); border-color: var(--sprout); color: var(--forest); }
.btn-sprout:hover { background: #95E274; border-color: #95E274; color: var(--forest); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--forest); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--forest); }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
html[lang="en"] .badge { letter-spacing: .02em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-proposed { background: var(--orange-tint); color: var(--orange-ink); }
.badge-exploratory { background: var(--blue-tint); color: #17566C; }
.badge-ongoing { background: var(--leaf-tint); color: var(--leaf-ink); }
.badge-completed { background: var(--mist-2); color: var(--slate); }
.badge-placeholder { background: #fff; color: var(--orange-ink); border: 1.5px dashed var(--orange); }
.badge-placeholder::before { display: none; }
.badge-draft { background: var(--orange-tint); color: var(--orange-ink); }
.badge-fact { background: var(--leaf-tint); color: var(--leaf-ink); }
.badge-neutral { background: var(--mist); color: var(--forest); }
.badge-neutral::before { display: none; }
.tag { display: inline-block; font-size: .78rem; color: var(--forest); background: var(--mist); padding: 3px 10px; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-mist { background: var(--mist); }
.section-forest { background: var(--forest); color: #fff; }
.section-forest :is(h2,h3) { color: #fff; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; color: var(--forest); margin-bottom: 14px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--leaf) 0 33%, var(--sprout) 33% 66%, var(--orange) 66%); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(-90deg, var(--leaf) 0 33%, var(--sprout) 33% 66%, var(--orange) 66%); }
.section-forest .eyebrow, .hero .eyebrow { color: var(--sprout); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.section-head > div { max-width: 760px; }
.section-head p { color: var(--slate); font-size: 1.08rem; margin: 0; }
.section-forest .section-head p { color: rgba(255,255,255,.82); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--slate); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--forest); color: #fff; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
[dir="rtl"] .hero-art img { transform: scaleX(-1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,61,46,.97) 0%, rgba(11,61,46,.92) 38%, rgba(11,61,46,.55) 70%, rgba(11,61,46,.25) 100%); }
[dir="rtl"] .hero::before { background: linear-gradient(-90deg, rgba(11,61,46,.97) 0%, rgba(11,61,46,.92) 38%, rgba(11,61,46,.55) 70%, rgba(11,61,46,.25) 100%); }
.hero .container { padding-block: clamp(72px, 11vw, 140px); }
.hero-content { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.7rem); margin-bottom: 22px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.hero-actions .text-link { color: #fff; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; padding: 10px 6px; }
.hero-name { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-name img { height: 46px; width: auto; }
@media (max-width: 760px) { .hero::before { background: rgba(11,61,46,.88) !important; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--mist); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -70px; width: 320px; height: 380px; background: url("../img/sscb-leaves.png") no-repeat center / contain; opacity: .09; filter: grayscale(1) brightness(.4); pointer-events: none; }
[dir="rtl"] .page-hero::after { transform: scaleX(-1); }
.page-hero .container { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 84px); position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { max-width: 760px; margin: 0; }
.page-hero .meta-row { margin-top: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .86rem; color: var(--slate); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; color: #9AABA2; }
.breadcrumb a { color: var(--slate); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--mist); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.section-mist .card { background: #fff; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; color: var(--slate); font-size: .96rem; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link a.stretched { text-decoration: none; color: inherit; }
.card-link a.stretched:focus-visible { outline: none; }
.card-link:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.ico-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--forest); color: var(--sprout); display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 6px; flex: none; }
.ico-tile.light { background: #fff; color: var(--forest); }
.section-mist .ico-tile.light { background: var(--mist); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--forest); display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.card-dark { background: var(--forest); color: #fff; }
.card-dark h3 { color: #fff; } .card-dark p { color: rgba(255,255,255,.8); }

/* Focus cards */
.focus-card { min-height: 100%; padding-top: 28px; }
.focus-card .num { position: absolute; inset-inline-end: 24px; top: 22px; font-size: .85rem; font-weight: 700; color: var(--slate); }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.why-box { background: var(--forest); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden; }
.why-box::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -40px; width: 180px; height: 220px; background: url("../img/sscb-leaves.png") no-repeat center / contain; opacity: .14; filter: brightness(3) grayscale(1); }
.why-box h3 { color: var(--sprout); }
.why-box p { color: rgba(255,255,255,.88); margin: 0; position: relative; z-index: 1; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.flags span { background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .85rem; color: var(--forest); font-weight: 500; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, rgba(126,217,87,.55) 0 8px, transparent 8px 14px); }
.process li { position: relative; text-align: center; padding: 0 6px; }
.process .p-ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--forest-90); border: 2px solid var(--sprout); color: var(--sprout); display: grid; place-items: center; font-size: 1.6rem; position: relative; z-index: 1; }
.process li:last-child .p-ico { background: var(--orange); border-color: var(--orange); color: var(--forest); }
.process .p-num { font-size: .78rem; color: var(--sprout); font-weight: 700; display: block; margin-bottom: 4px; }
.process h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process p { font-size: .9rem; color: rgba(255,255,255,.78); margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 0; bottom: 0; inset-inline: 33px auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(126,217,87,.55) 0 8px, transparent 8px 14px); }
  .process li { display: grid; grid-template-columns: 68px 1fr; gap: 18px; text-align: start; padding: 0 0 26px; }
  .process .p-ico { margin: 0; }
}

/* ---------- Project / publication / news cards ---------- */
.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.section-mist .item-card { border-color: transparent; }
.item-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.item-card h3 { font-size: 1.1rem; margin: 0; line-height: 1.35; }
.item-card h3 a { text-decoration: none; color: var(--forest); }
.item-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.item-card:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.item-card h3 a:focus-visible { outline: none; }
.item-card p { color: var(--slate); margin: 0; font-size: .95rem; }
.item-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.item-meta { display: grid; gap: 6px; font-size: .86rem; color: var(--slate); margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.item-meta div { display: flex; gap: 8px; }
.item-meta dt { font-weight: 700; color: var(--forest); min-width: 0; }
.item-meta dd { margin: 0; }
.item-card.is-placeholder { border-style: dashed; border-color: #F2C78F; }

/* ---------- Developing initiatives / notices ---------- */
.notice { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--blue-tint); color: #11475A; margin: 0 0 1.5em; }
.notice .ico { width: 1.5em; height: 1.5em; margin-top: 2px; }
.notice p { margin: 0; }
.notice strong.n-title { display: block; margin-bottom: 4px; color: inherit; }
.notice a { color: inherit; font-weight: 700; }
.notice-draft { background: var(--orange-tint); color: #6E3C00; }
.notice-fact { background: var(--leaf-tint); color: #00502A; }
.dev-box { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.dev-box .ico-tile { width: 64px; height: 64px; font-size: 1.8rem; background: var(--orange-tint); color: var(--orange-ink); }
.dev-box h3 { font-size: 1.35rem; }
.dev-box p { margin: 0; color: var(--slate); }
@media (max-width: 760px) { .dev-box { grid-template-columns: 1fr; } }

/* ---------- Experts teaser ---------- */
.person-card { display: grid; grid-template-columns: 148px 1fr; gap: 26px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); position: relative; }
.person-card img { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--leaf); }
.person-card h3 { margin: 0 0 2px; font-size: 1.3rem; }
.person-card .role { color: var(--orange-ink); font-weight: 700; font-size: .92rem; margin-bottom: 8px; display: block; }
.person-card p { color: var(--slate); margin: 0 0 10px; font-size: .95rem; }
.section-mist .person-card, .prose .person-card { box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 560px) { .person-card { grid-template-columns: 1fr; text-align: center; } .person-card img { margin: 0 auto; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { display: inline-flex; gap: 10px; align-items: center; background: #fff; border-radius: 999px; padding: 10px 16px 10px 12px; font-size: .92rem; color: var(--forest); font-weight: 500; }
[dir="rtl"] .pill-list li { padding: 10px 12px 10px 16px; }
.pill-list .ico { color: var(--leaf-ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--forest); padding: 28px 24px; }
.stat strong { display: block; font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1; color: var(--sprout); font-weight: 700; margin-bottom: 10px; }
.stat span { color: rgba(255,255,255,.82); font-size: .95rem; }
.source-note { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.section-forest .card { background: var(--forest-90); }
.section-forest .card h3 { color: #fff; } .section-forest .card p { color: rgba(255,255,255,.78); }
.section-forest .card .more { color: var(--sprout); }
.section-forest .ico-tile { background: rgba(126,217,87,.14); }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; background: var(--forest); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -40px; top: -60px; width: 300px; height: 360px; background: url("../img/sscb-leaves.png") no-repeat center / contain; opacity: .1; }
[dir="rtl"] .cta-band::after { transform: scaleX(-1); }
.cta-band h2 { color: #fff; max-width: 760px; }
.cta-band > p { color: rgba(255,255,255,.82); }
.routes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.route { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px; text-decoration: none; color: #fff; transition: background .2s, transform .2s var(--ease); }
.route:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-2px); }
.route .ico { width: 1.6em; height: 1.6em; color: var(--sprout); margin-bottom: 6px; }
.route small { color: rgba(255,255,255,.7); font-size: .85rem; }
.route strong { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { .routes { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .routes { grid-template-columns: 1fr; } }

/* ---------- Content layout (prose + toc) ---------- */
.content-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 60px); font-size: .9rem; }
.toc h2 { font-size: .8rem; color: var(--slate); margin-bottom: 12px; }
html[lang="en"] .toc h2 { text-transform: uppercase; letter-spacing: .12em; }
.toc ol { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 7px 16px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--slate); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--forest); border-inline-start-color: var(--leaf); font-weight: 700; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } .toc { position: static; background: var(--mist); padding: 18px; border-radius: var(--radius); } }
.prose { max-width: 820px; }
.prose > h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.2em; padding-top: .2em; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prose > h2:first-child { margin-top: 0; }
.prose > p, .prose > ul { font-size: 1.04rem; }
.prose ul.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose ul.checks li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul.checks .ico { color: var(--leaf-ink); margin-top: .3em; }
.prose .grid { margin: 1.4em 0 1.8em; }
.numbered { list-style: none; padding: 0; margin: 1.2em 0 1.8em; display: grid; gap: 14px; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 52px 1fr; gap: 18px; background: var(--mist); border-radius: var(--radius); padding: 20px 22px; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-size: 1.6rem; font-weight: 700; color: var(--leaf-ink); line-height: 1.2; }
.numbered strong { display: block; color: var(--forest); font-size: 1.05rem; margin-bottom: 4px; }
.numbered span { color: var(--slate); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.8em; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--forest); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--mist); }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 1.6em 0; }
.inline-cta h3 { color: #fff; margin: 0 0 4px; } .inline-cta p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- Focus area detail ---------- */
.fa-hero-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--forest); color: var(--sprout); display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 18px; }
.challenge-list { list-style: none; padding: 0; display: grid; gap: 10px; margin: 1em 0 1.6em; }
.challenge-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.challenge-list .ico { color: var(--orange-ink); margin-top: .3em; }
.fields-box { background: var(--mist); border-radius: var(--radius); padding: 22px 24px; margin: 1em 0 1.6em; }
.fields-box h3 { font-size: 1rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fields-box ol { margin: 0; padding-inline-start: 1.2em; color: var(--ink); }
.fields-box li { margin-bottom: 6px; }

/* ---------- Filters & directory ---------- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 2fr repeat(4, minmax(0,1fr)) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.filters.f-3 { grid-template-columns: 2fr repeat(3, minmax(0,1fr)) auto; }
.filters.f-2 { grid-template-columns: 2fr repeat(2, minmax(0,1fr)) auto; }
.filters.f-1 { grid-template-columns: 2fr minmax(0,1fr) auto; }
.filters.f-5 { grid-template-columns: 1.6fr repeat(5, minmax(0,1fr)) auto; }
.filters label { display: block; font-size: .8rem; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
@media (max-width: 1000px) { .filters, .filters.f-3, .filters.f-2, .filters.f-1, .filters.f-5 { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters, .filters.f-3, .filters.f-2, .filters.f-1, .filters.f-5 { grid-template-columns: 1fr; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--slate); font-size: .92rem; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 48px 24px; background: var(--mist); border-radius: var(--radius); color: var(--slate); }
.empty-state .ico { width: 2.4em; height: 2.4em; margin: 0 auto 12px; color: var(--forest); opacity: .6; }
.legend { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--slate); }
.legend li { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.facts { background: var(--mist); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 60px); }
.facts h2 { font-size: 1rem; margin-bottom: 14px; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: .78rem; font-weight: 700; color: var(--slate); margin-bottom: 2px; }
html[lang="en"] .facts dt { text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts .btn { width: 100%; margin-top: 20px; }
.facts p .ico, .item-meta .ico { display: inline-block; vertical-align: -3px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .85rem; background: #fff; color: var(--forest); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--forest); }
.cite { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--slate); }
.profile-head { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.profile-head img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--leaf); }
@media (max-width: 640px) { .profile-head { grid-template-columns: 1fr; } .profile-head img { width: 150px; height: 150px; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.section-mist .form-card { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .92rem; color: var(--forest); margin-bottom: 6px; padding: 0; }
.field .req { color: #B3261E; font-weight: 700; }
.field .opt { color: var(--slate); font-weight: 400; font-size: .85rem; }
.field .hint { font-size: .85rem; color: var(--slate); margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="search"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #B9C9C0; border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230B3D2E' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px; background-position: right 14px center; padding-inline-end: 40px; }
[dir="rtl"] select { background-position: left 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(126,217,87,.45); }
[aria-invalid="true"] { border-color: #B3261E !important; background: #FFF8F7; }
.field-error { display: none; align-items: center; gap: 6px; color: #B3261E; font-size: .86rem; font-weight: 500; margin-top: 6px; }
.field-error.is-visible { display: flex; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--forest); flex: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label.check, .check-group label { font-weight: 400; color: var(--ink); font-size: .94rem; }
.check-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; border: 0; padding: 0; margin: 0; }
@media (max-width: 640px) { .check-group { grid-template-columns: 1fr; } }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; gap: 12px; padding: 16px 18px; border-radius: 12px; margin-top: 18px; }
.form-status.is-visible { display: flex; }
.form-status.ok { background: var(--leaf-tint); color: #00502A; }
.form-status.info { background: var(--orange-tint); color: #6E3C00; }
.form-status.err { background: #FDECEA; color: #8C1D18; }
.error-summary { display: none; background: #FDECEA; color: #8C1D18; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.error-summary.is-visible { display: block; }
.error-summary ul { margin: 8px 0 0; }
.error-summary a { color: inherit; font-weight: 700; }
.form-privacy { font-size: .86rem; color: var(--slate); }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 26px; }
.cat-cards a { display: flex; align-items: center; gap: 10px; background: var(--mist); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--forest); font-weight: 500; font-size: .92rem; }
.cat-cards a:hover { background: var(--forest); color: #fff; }

/* ---------- Search page ---------- */
.search-box { display: flex; gap: 10px; max-width: 720px; }
.search-box input { flex: 1; }
.search-results { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; max-width: 820px; }
.search-results li a { display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.search-results li a:hover { border-color: var(--forest); box-shadow: var(--shadow); }
.search-results strong { display: block; color: var(--forest); font-size: 1.05rem; }
.search-results small { color: var(--slate); }
.search-results mark { background: rgba(126,217,87,.5); color: inherit; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,.82); position: relative; margin-top: 0; font-size: .93rem; }
.brand-rule { display: grid; grid-template-columns: 1fr 70px 70px 70px; gap: 4px; height: 5px; }
.brand-rule span:nth-child(1) { background: var(--forest-80); } .brand-rule span:nth-child(2) { background: var(--leaf); } .brand-rule span:nth-child(3) { background: var(--sprout); } .brand-rule span:nth-child(4) { background: var(--orange); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0,1fr)); gap: 36px; padding-block: 64px 44px; }
.footer-brand img { width: 230px; height: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 12px; max-width: 360px; }
.footer-brand .fnote { font-size: .82rem; color: rgba(255,255,255,.6); }
.site-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--sprout); text-decoration: underline; }
.footer-contact { font-size: .88rem; color: rgba(255,255,255,.75); }
.footer-contact a { text-decoration: underline; color: #fff; }
.footer-bottom { position: relative; padding-block: 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom button { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.82); cursor: pointer; }
.footer-bottom button:hover { color: var(--sprout); text-decoration: underline; }
@media (max-width: 1000px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Cookie dialog ---------- */
dialog.cookie-dialog { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(11,61,46,.5); }
.cookie-inner { padding: 28px; }
.cookie-inner h2 { font-size: 1.3rem; }
.cookie-opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-opt p { margin: 2px 0 0; font-size: .88rem; color: var(--slate); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

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

/* ---------- 404 ---------- */
.err-page { text-align: center; padding-block: 120px; }
.err-page .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: var(--leaf-ink); line-height: 1; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .draft-banner, .toc, .share, .filters, .drawer, .hero-art { display: none !important; }
  .hero, .page-hero, .section-forest { background: #fff !important; color: #000 !important; }
  .hero h1, .hero p { color: #000 !important; }
  a { color: #000; }
}

/* ---------- Justified body text ---------- */
.prose > p, .prose .lead, .split .lead, .why-box p, .dev-box p, .section-head p, .page-hero .lead, .numbered span, .person-card p, .notice p, .join-panel p, .member-card p {
  text-align: justify; text-justify: inter-word;
}
html[lang="en"] .prose > p, html[lang="en"] .lead, html[lang="en"] .section-head p, html[lang="en"] .notice p { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 560px) { .section-head p, .page-hero .lead, .person-card p { text-align: start; } }

/* ---------- Organisational structure ---------- */
.org-chart { display: grid; gap: 18px; margin: 1.4em 0 1.8em; }
.org-chart .org-top { display: flex; justify-content: center; }
.org-chart .org-node { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.org-chart .org-top .org-node { background: var(--forest); color: #fff; border-color: var(--forest); min-width: min(100%, 340px); justify-content: center; }
.org-chart .org-top .org-node small { color: rgba(255,255,255,.75); }
.org-chart .org-node .ico-tile { margin: 0; width: 44px; height: 44px; flex: none; }
.org-chart .org-node strong { display: block; font-size: 1rem; line-height: 1.35; }
.org-chart .org-node small { display: block; color: var(--slate); font-size: .85rem; }
.org-chart .org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

/* ---------- Join panel ---------- */
.join-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--forest); color: #fff; border-radius: var(--radius-lg, 18px); padding: clamp(26px, 4vw, 44px); }
.join-panel h2, .join-panel h3 { color: #fff; margin-top: 0; }
.join-panel p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.join-panel ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255,255,255,.9); font-size: .95rem; }
.join-panel ul li { display: flex; gap: 8px; align-items: center; }
.join-panel ul .ico { color: var(--sprout); }
.join-panel .note { font-size: .85rem; opacity: .8; margin-top: 12px; }
@media (max-width: 760px) { .join-panel { grid-template-columns: 1fr; } }

/* ---------- Members ---------- */
.member-card { text-align: center; align-items: center; }
.member-card img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.member-card .role { color: var(--leaf-ink); font-weight: 700; font-size: .92rem; }
.member-card p { margin: 0; }
.doc-link { display: inline-flex; gap: 10px; align-items: center; }
.member-card { gap: 10px; }
.member-card h3 { margin: 6px 0 0; font-size: 1.12rem; }
.member-card .role { display: block; line-height: 1.45; }
.member-card .spec { display: flex; gap: 8px; justify-content: center; align-items: flex-start; background: var(--mist); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .88rem; color: var(--forest); margin: 4px 0; text-align: center; }
.member-card .spec .ico { flex: none; margin-top: .2em; color: var(--leaf-ink); }
.member-card .bio { text-align: justify; text-justify: inter-word; font-size: .93rem; color: var(--slate); margin: 0; }
html[lang="en"] .member-card .bio { hyphens: auto; }
