/* HKO Capital Partners — site styles
   Palette drawn from the firm brochure: deep navy, gold headline accent,
   orange logo wordmark, teal data-wave accent. */

:root {
  --navy-950: #060d1c;
  --navy-900: #081428;
  --navy-800: #0b1c38;
  --navy-700: #12294d;
  --navy-line: #1c3a66;
  --gold: #e9a83c;
  --gold-bright: #f2bc55;
  --orange: #e8823c;
  --teal: #46b8c9;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --ink: #16222f;
  --ink-soft: #52627a;
  --white: #ffffff;
  --nav-h: 96px;
  --radius: 10px;
  --shadow: 0 18px 45px rgba(6, 13, 28, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  /* fluid body size — rem-based so the accessibility text-size control still scales it */
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.2rem);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

/* Fluid container: fills the viewport with proportional gutters rather than
   snapping to one fixed column width, and only caps out on very large screens. */
.wrap {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 76px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; line-height: 1.35; }

.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.on-light .kicker { color: #b57713; }

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: min(100%, 105ch); }
/* Any lede on a dark ground must be light — .hero and .briefing-band are dark
   but are not .dark, so they need to be named explicitly. */
.dark .lede, .hero .lede, .briefing-inner .lede, .ind-cta .lede { color: #d3dded; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: transparent; /* <button class="btn"> would otherwise get the UA buttonface grey */
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
/* Solid-bordered light button for use on dark grounds where a ghost reads as empty */
.btn-outline { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-outline:hover { background: rgba(233, 168, 60, 0.14); color: #fff; }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }


/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 13, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 168, 60, 0.18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 700; font-size: 1.42rem;
  letter-spacing: 0.26em; color: var(--orange);
}
.brand-tag {
  display: block; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; color: #a3b3c9; margin-top: 2px;
  white-space: nowrap;
}
.brand-name { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  color: #cfd9e8; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); border-color: var(--gold); }
/* The generic hover above would turn the gold button's label gold-on-gold. */
.nav-links a.btn { padding: 10px 20px; border-bottom: 0; }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: var(--navy-950); border-color: transparent; }
.nav-links a.btn-gold:hover { background: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #0a2038 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; pointer-events: none; }
.hero-inner { position: relative; padding: clamp(64px, 8vw, 128px) 0 clamp(52px, 6.5vw, 100px); max-width: min(100%, 1180px); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
/* The gap between the two headline spans is styling, not content — CJK must not
   inherit a Latin word space. */
.hero h1 em { font-style: normal; color: var(--gold); margin-inline-start: 0.28em; }
html.script-zh .hero h1 em { margin-inline-start: 0; }
.hero .lede { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.stat-strip {
  position: relative;
  border-top: 1px solid rgba(233, 168, 60, 0.22);
  background: rgba(6, 13, 28, 0.55);
}
.stat-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 26px 18px;
  border-left: 1px solid rgba(233, 168, 60, 0.14);
}
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); font-weight: 600; }
.stat span { font-size: 0.82rem; color: #c2cfe1; line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: clamp(54px, 6.2vw, 108px) 0; }
.section-head { max-width: min(100%, 1150px); margin-bottom: clamp(34px, 3.4vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.dark { background: var(--navy-900); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.alt { background: var(--paper-2); }

/* ---------- capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 1.6vw, 28px); }
.card {
  background: var(--white);
  border: 1px solid #e3ddd0;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 8px 24px rgba(6, 13, 28, 0.05);
}
.card .icon { width: 40px; height: 40px; color: var(--navy-800); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- stats band ---------- */
.bignums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.2vw, 40px); margin: 48px 0; }
.bignum {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
}
.bignum b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--gold); font-weight: 600; display: block; line-height: 1; }
.bignum span { color: #ccd8e8; font-size: 0.92rem; display: block; margin-top: 10px; max-width: min(100%, 42ch); }
.sources { font-size: 0.8rem; color: #a8b7cd; margin-top: 26px; }

.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 1.6vw, 26px); margin-top: 40px; }
.sector {
  background: var(--navy-800);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 22px;
}
.sector h3 { font-size: 1rem; color: var(--gold-bright); margin-bottom: 8px; }
.sector p { font-size: 0.88rem; color: #ccd8e8; }

/* ---------- risk table ---------- */
.risk-list { border-top: 1px solid #ddd5c4; }
.risk-row {
  display: grid; grid-template-columns: minmax(200px, 0.6fr) 1.2fr 1.2fr; gap: clamp(20px, 3vw, 52px);
  padding: 22px 0; border-bottom: 1px solid #ddd5c4;
}
.risk-row .r-name { font-weight: 700; color: var(--navy-900); font-size: 0.98rem; }
.risk-row .r-name small { display: block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #b57713; margin-bottom: 4px; }
.risk-row p { font-size: 0.92rem; color: var(--ink-soft); }
.risk-row .r-mit { position: relative; padding-left: 18px; }
.risk-row .r-mit::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.nda-note {
  margin-top: 34px; padding: 20px 24px;
  background: var(--navy-900); color: #cfd9e8;
  border-left: 3px solid var(--gold);
  border-radius: 6px; font-size: 0.93rem;
}

/* ---------- countries ---------- */
.countries-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 5vw, 90px); align-items: center; }
.tier { margin-bottom: 34px; }
.tier h3 { color: var(--gold-bright); font-size: 1rem; letter-spacing: 0.04em; margin-bottom: 14px; }
.tier h3 small { color: #b3c1d6; font-weight: 400; letter-spacing: 0; margin-left: 8px; font-size: 0.82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  background: var(--navy-800); border: 1px solid var(--navy-line);
  color: #e4ebf5; font-size: 0.88rem; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
}
.chips.primary li { border-color: rgba(233, 168, 60, 0.55); color: var(--gold-bright); }
.chips.growth li { border-color: rgba(70, 184, 201, 0.5); color: #8fd8e2; }
.map-legend { display: flex; gap: 22px; margin-top: 18px; font-size: 0.82rem; color: #c2cfe1; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }

/* ---------- developments ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 1.6vw, 28px); }
.post {
  background: var(--white); border: 1px solid #e3ddd0; border-radius: var(--radius);
  padding: 28px 26px; box-shadow: 0 8px 24px rgba(6, 13, 28, 0.05);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.76rem; }
.tag {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #b57713; background: rgba(233, 168, 60, 0.14);
  padding: 4px 10px; border-radius: 4px;
}
.post-meta time { color: #97a2b0; }
.post h3 { margin-bottom: 10px; }
.post p { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }
.post .more { margin-top: 18px; font-weight: 600; font-size: 0.88rem; color: var(--navy-800); }

.post-full { max-width: min(100%, 1150px); }
.post-full article { background: var(--white); border: 1px solid #e3ddd0; border-radius: var(--radius); padding: 40px; margin-bottom: 26px; }
.post-full article h3 { font-size: 1.4rem; margin-bottom: 6px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 7px; color: #e4ebf5; }
input, select, textarea {
  width: 100%; padding: 13px 15px;
  background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 6px;
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { resize: vertical; min-height: 130px; }
::placeholder { color: #9fb0c8; opacity: 1; }
.form-note { font-size: 0.82rem; color: #b3c1d6; margin-top: 14px; }
/* honeypot — must be reachable by bots but invisible and skipped by humans */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.opt { font-weight: 400; opacity: 0.65; }

.form-error {
  display: none; margin-top: 20px; padding: 18px 22px;
  background: rgba(226, 106, 90, 0.12); border: 1px solid rgba(226, 106, 90, 0.45);
  border-radius: 6px; color: #f3b8ae; font-size: 0.95rem;
}
.form-error a { color: #fff; }
.form-success {
  display: none; margin-top: 20px; padding: 18px 22px;
  background: rgba(70, 184, 201, 0.12); border: 1px solid rgba(70, 184, 201, 0.4);
  border-radius: 6px; color: #9fdfe8; font-size: 0.95rem;
}

.briefing-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-top: 1px solid rgba(233, 168, 60, 0.22); border-bottom: 1px solid rgba(233, 168, 60, 0.22); }
.briefing-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 5vw, 90px); align-items: center; padding: clamp(52px, 5.5vw, 86px) clamp(20px, 4.5vw, 76px); }
.briefing-inner h2 { color: var(--white); margin-bottom: 14px; }
.briefing-inner .lede { font-size: 1rem; }
.briefing-form { display: grid; gap: 14px; }

.partner-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 90px); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; color: #d3dded; font-size: 0.95rem; }
.contact-line svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--gold); }

.lg-note {
  margin: 14px 0 4px; padding: 11px 16px; font-size: 0.85rem;
  color: var(--ink-soft); background: var(--paper-2);
  border-left: 3px solid var(--gold); border-radius: 4px;
}

/* ---------- footer ---------- */
footer { background: var(--navy-950); color: #b3c1d6; padding: 60px 0 36px; font-size: 0.86rem; }
.foot-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px 48px; flex-wrap: wrap; margin-bottom: 36px;
}
.foot-links { display: flex; gap: 14px 26px; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { color: #cfdbeb; text-decoration: none; white-space: nowrap; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-bottom { border-top: 1px solid var(--navy-line); padding-top: 24px; }
.disclaimer { font-size: 0.78rem; line-height: 1.8; color: #9aa9c0; max-width: none; margin: 0; }
.foot-copy {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 32px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(28, 58, 102, 0.5);
  font-size: 0.78rem; color: #9aa9c0;
}
.foot-copy a { color: #c2cfe1; text-decoration: none; }
.foot-copy a:hover { color: var(--gold-bright); }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 1.6vw, 26px); }
.ind-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid #e3ddd0; border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ind-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ind-card p { font-size: 0.88rem; color: var(--ink-soft); }
.ind-card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.84rem; color: #b57713; }
.dark .ind-card { background: var(--navy-800); border-color: var(--navy-line); border-left-color: var(--gold); }
.dark .ind-card p { color: #ccd8e8; }
.dark 
.sdg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.4vw, 24px); margin-top: 40px; }
.sdg {
  background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 20px;
}
.sdg b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 6px; }
.sdg h3 { font-size: 0.95rem; color: #fff; margin-bottom: 8px; }
.sdg p { font-size: 0.8rem; color: #c2cfe1; }

.on-light .bignum span { color: var(--ink-soft); }
.dotlist { list-style: none; }
.dotlist li { position: relative; padding: 8px 0 8px 24px; font-size: 0.96rem; color: var(--ink-soft); }
.dotlist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.dotlist li b { color: var(--navy-900); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ind-cta { text-align: center; padding: 80px 24px; }
.ind-cta h2 { color: #fff; margin-bottom: 14px; }
.ind-cta .lede { margin: 0 auto 32px; }
.crumb { font-size: 0.8rem; margin-bottom: 18px; }
.crumb a { color: var(--gold); text-decoration: none; }

/* ---------- script-specific font stacks ----------
   Fraunces and Inter carry no Arabic, CJK or Ethiopic glyphs, so those scripts
   fall back to the platform fonts that do. */
html.script-ar, html.script-ar body, html.script-ar h1, html.script-ar h2, html.script-ar h3 {
  font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}
html.script-zh, html.script-zh body, html.script-zh h1, html.script-zh h2, html.script-zh h3 {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html.script-am, html.script-am body, html.script-am h1, html.script-am h2, html.script-am h3 {
  font-family: "Noto Sans Ethiopic", "Kefa", "Abyssinica SIL", sans-serif;
}
/* those scripts have no small-caps/tracking convention — undo the Latin styling */
html.script-ar .kicker, html.script-zh .kicker, html.script-am .kicker,
html.script-ar .brand-tag, html.script-zh .brand-tag, html.script-am .brand-tag {
  letter-spacing: normal; text-transform: none;
}
html.script-ar h1, html.script-zh h1, html.script-am h1,
html.script-ar h2, html.script-zh h2, html.script-am h2 { letter-spacing: normal; line-height: 1.3; }

/* ---------- right-to-left (Arabic) ---------- */
html.is-rtl .risk-row .r-mit { padding-left: 0; padding-right: 18px; }
html.is-rtl .risk-row .r-mit::before { left: auto; right: 0; }
html.is-rtl .dotlist li { padding-left: 0; padding-right: 24px; }
html.is-rtl .dotlist li::before { left: auto; right: 0; }
html.is-rtl .bignum { border-left: 0; border-right: 3px solid var(--gold); padding: 6px 22px 6px 0; }
html.is-rtl .nda-note, html.is-rtl html.is-rtl .ind-card { border-left-width: 1px; border-right: 3px solid var(--gold); }
html.is-rtl .stat { border-left: 0; border-right: 1px solid rgba(233, 168, 60, 0.14); }
html.is-rtl .stat:first-child { border-right: 0; }
html.is-rtl .a11y-widget { right: auto; left: 20px; }
html.is-rtl .a11y-panel { right: auto; left: 0; }
html.is-rtl .cookie-inner { padding-right: 0; padding-left: 44px; }
html.is-rtl .cookie-close { right: auto; left: 0; }
html.is-rtl .skip-link { border-radius: 0 0 0 6px; }
html.is-rtl .a11y-toggle, html.is-rtl .a11y-stmt { text-align: right; }
html.is-rtl .map-legend i { margin-right: 0; margin-left: 7px; }
/* keep the language buttons themselves in their own reading order */
.lang-switch button[dir="rtl"] { direction: rtl; }

/* ---------- language switcher (lives in the accessibility panel + footer) ---------- */
.lang-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }

/* searchable variant, used in the accessibility panel */
.lang-switch[data-mode="search"] { display: block; }
.lang-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.lang-switch[data-mode="search"] .lang-results:has(button:nth-child(5)) {
  grid-template-columns: 1fr; max-height: 190px; overflow-y: auto; padding-right: 2px;
}
.lang-switch button .l-native { display: block; }
.lang-switch button .l-name {
  display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.7; margin-top: 1px;
}
.lang-q {
  width: 100%; margin-top: 7px; padding: 8px 11px;
  font-family: var(--font-body); font-size: 0.82rem;
  background: var(--white); color: var(--ink);
  border: 1px solid #ddd6c7; border-radius: 6px;
}
.lang-q::placeholder { color: #8b93a0; opacity: 1; }
.lang-q:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.lang-empty {
  margin-top: 8px; font-size: 0.74rem; line-height: 1.5; color: var(--ink-soft);
  background: var(--paper); border: 1px dashed #cdc6b7; border-radius: 6px; padding: 9px 11px;
}
.lang-switch button {
  cursor: pointer;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0;
  padding: 9px 8px; border-radius: 6px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid #ddd6c7; background: var(--paper); color: var(--ink);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.lang-switch button:hover { border-color: var(--gold); }
.lang-switch button.on { color: var(--navy-950); background: var(--gold); border-color: var(--gold); }
.lang-switch button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.a11y-lang { display: grid; gap: 7px; padding: 4px 0 8px; border-bottom: 1px solid #e6e0d2; margin-bottom: 4px; }
.a11y-label { font-size: 0.85rem; color: var(--ink); }

/* footer copy of the switcher, on the dark ground */
.foot-lang { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-lang .a11y-label { color: #cfdbeb; font-size: 0.82rem; }
.foot-lang .lang-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-lang .lang-switch button {
  background: transparent; border-color: var(--navy-line); color: #cfdbeb; padding: 7px 12px;
}
.foot-lang .lang-switch button:hover { border-color: var(--gold); color: var(--gold-bright); }
.foot-lang .lang-switch button.on { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }

.dark 
/* ---------- cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy-950); border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  padding: 18px 24px;
}
.cookie-inner {
  max-width: 1760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cookie-inner { position: relative; padding-right: 44px; }
.cookie-inner p { color: #dbe4f0; font-size: 0.88rem; max-width: 78ch; margin: 0; }
.cookie-inner b { color: #fff; }
.cookie-inner a { color: var(--gold-bright); }
.cookie-btns { display: flex; gap: 12px; flex: none; }
.cookie-btns .btn { padding: 11px 22px; font-size: 0.88rem; }
.cookie-close {
  position: absolute; top: -4px; right: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #dbe4f0; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.cookie-close:hover { background: rgba(233, 168, 60, 0.2); border-color: var(--gold); color: #fff; }

/* ---------- accessibility widget ---------- */
.a11y-widget { position: fixed; right: 20px; bottom: 20px; z-index: 190; }
.a11y-fab {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold); border: 2px solid var(--gold);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(6, 13, 28, 0.35);
  transition: transform 0.15s ease;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab svg { width: 25px; height: 25px; }
.a11y-fab:focus-visible, .a11y-panel button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.a11y-panel {
  position: absolute; right: 0; bottom: 62px; width: 272px;
  max-height: min(78vh, 620px); overflow-y: auto;
  background: var(--white); border: 1px solid #d8d1c2; border-radius: 10px;
  box-shadow: var(--shadow); padding: 16px; display: grid; gap: 8px;
}
/* class display:grid would otherwise beat the [hidden] attribute */
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.a11y-head b { font-family: var(--font-display); font-size: 1rem; color: var(--navy-900); }
.a11y-close {
  background: var(--paper-2); border: 1px solid #cdc6b7; border-radius: 50%;
  width: 30px; height: 30px; font-size: 1.25rem; line-height: 1; cursor: pointer;
  color: var(--navy-900); display: grid; place-items: center; flex: none;
}
.a11y-close:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.a11y-hide {
  text-align: center; padding: 8px 12px; border-radius: 6px; cursor: pointer;
  border: 1px dashed #cdc6b7; background: transparent; color: var(--ink-soft);
  font-family: var(--font-body); font-size: 0.8rem;
}
.a11y-hide:hover { border-color: var(--gold); color: var(--navy-900); }
.a11y-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--ink); padding: 4px 0; }
.fs-ctl { display: flex; align-items: center; gap: 6px; }
.fs-ctl button {
  width: 30px; height: 28px; border: 1px solid #cdc6b7; background: var(--paper);
  border-radius: 5px; cursor: pointer; font-weight: 700; font-size: 0.8rem; color: var(--navy-900);
}
.fs-val { font-size: 0.76rem; color: var(--ink-soft); min-width: 38px; text-align: center; }
.a11y-toggle, .a11y-reset {
  text-align: left; padding: 9px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid #ddd6c7; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 0.85rem;
}
.a11y-toggle:hover, .a11y-reset:hover { border-color: var(--gold); }
.a11y-toggle.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.a11y-toggle.on::after { content: " ✓"; color: var(--gold); }
.a11y-reset { text-align: center; color: var(--ink-soft); }
.a11y-stmt { font-size: 0.76rem; color: var(--ink-soft); text-align: center; margin-top: 2px; }

/* accessibility modes */
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .section, html.a11y-contrast .alt, html.a11y-contrast .dark,
html.a11y-contrast .hero, html.a11y-contrast .briefing-band, html.a11y-contrast footer { background: #000 !important; }
html.a11y-contrast .card, html.a11y-contrast .post, html.a11y-contrast .sector,
html.a11y-contrast .ind-card, html.a11y-contrast .sdg, html.a11y-contrast article,
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea {
  background: #000 !important; border-color: #fff !important; color: #fff !important;
}
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast b { color: #fff !important; }
html.a11y-contrast p, html.a11y-contrast span, html.a11y-contrast li, html.a11y-contrast label { color: #fff !important; }
html.a11y-contrast .kicker, html.a11y-contrast .hero h1 em, html.a11y-contrast .bignum b,
html.a11y-contrast .stat b, html.a11y-contrast a { color: #ffff00 !important; }
html.a11y-contrast .btn { background: #ffff00 !important; color: #000 !important; border-color: #ffff00 !important; }
html.a11y-contrast .hero-waves { display: none; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 600; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing .lede {
  line-height: 2 !important; letter-spacing: 0.06em; word-spacing: 0.14em;
}
html.a11y-dyslexic, html.a11y-dyslexic body,
html.a11y-dyslexic h1, html.a11y-dyslexic h2, html.a11y-dyslexic h3 {
  font-family: Verdana, "Trebuchet MS", Tahoma, sans-serif !important;
  letter-spacing: 0.02em;
}
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* keyboard-visible focus + skip link (WCAG 2.4.1 / 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--navy-950); padding: 12px 20px;
  font-weight: 700; text-decoration: none; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .countries-grid, .briefing-inner, .partner-grid, .two-col { grid-template-columns: 1fr; gap: 44px; }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .bignums { grid-template-columns: 1fr; }
  .risk-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .risk-row .r-mit { padding-left: 18px; }
}
@media (max-width: 900px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-links { justify-content: flex-start; }
  .foot-copy { flex-direction: column; align-items: flex-start; }
  .a11y-widget { right: 14px; bottom: 14px; }
  .a11y-panel { width: 252px; }
}
/* The nav never wraps, so the mobile menu has to take over before the links
   would overflow the viewport (they need ~1170px laid out in a single row). */
@media (max-width: 1200px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-950); border-bottom: 1px solid var(--navy-line);
    display: none; padding: 10px 32px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: -7px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 82px; }
  .brand { gap: 11px; padding-right: 12px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.04rem; letter-spacing: 0.16em; }
  .brand-tag { font-size: 0.46rem; letter-spacing: 0.08em; }
  .hero-inner { padding: 80px 0 70px; }
  .section { padding: 68px 0; }
  .form-grid { grid-template-columns: 1fr; }
}
