/* ==========================================================================
   Water & Planet — design system
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* colour: one teal family + lime accent. Text pairs listed meet WCAG AA. */
  --navy-950: #061f2a;
  --navy-900: #082b38;
  --navy-800: #0b3d48;
  --teal-700: #14666d;      /* text/links on light surfaces (6.4:1 on white) */
  --teal-600: #1c8894;      /* graphics, focus rings, borders only */
  --teal-200: #b7ddd6;
  --teal-100: #e3f1ee;
  --teal-50:  #f2f8f6;
  --lime-300: #b9e8ac;      /* accent on dark surfaces */
  --lime-400: #a2da92;
  --ink:      #0f2f3b;      /* primary text (14:1) */
  --ink-2:    #3d5961;      /* secondary text (7:1) */
  --ink-3:    #506b72;      /* tertiary text (5.4:1) */
  --on-dark:  #eaf4f2;
  --on-dark-2:#bcd3d4;      /* secondary on navy (9:1) */
  --line:     #d6e3df;
  --surface:  #ffffff;
  --focus:    #1c8894;

  /* type */
  --font-display: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-label: .75rem;                                   /* 12px uppercase labels */
  --fs-small: .875rem;                                  /* 14px */
  --fs-body: 1.0625rem;                                 /* 17px */
  --fs-lead: clamp(1.1875rem, .35vw + 1.1rem, 1.375rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(2rem, 2.2vw + 1.3rem, 3.125rem);
  --fs-display: clamp(2.5rem, 3.6vw + 1.2rem, 4.25rem);
  --lh-body: 1.65;
  --track-label: .14em;

  /* space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7rem);

  /* shape & depth */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(8 43 56 / .06), 0 2px 8px rgb(8 43 56 / .05);
  --shadow-2: 0 10px 30px rgb(8 43 56 / .14);

  /* layout */
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
  --tap: 44px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--surface);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.03em; margin-bottom: var(--s-5); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0 0 var(--s-4); overflow-wrap: break-word; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.hero :focus-visible, .dark :focus-visible { outline-color: var(--lime-300); }
.skip-link { position: absolute; inset-inline-start: var(--s-4); top: -64px; z-index: 100; background: var(--lime-300); color: var(--navy-900); padding: var(--s-3) var(--s-4); font-weight: 700; border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container, .hero-inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); scroll-margin-top: var(--header-h); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.muted { background: var(--teal-50); }
.dark { background: var(--navy-900); color: var(--on-dark); }

/* 4. COMPONENTS ------------------------------------------------------------ */
/* labels */
.kicker, .overline, .eyebrow {
  font: 700 var(--fs-label)/1.4 var(--font-body); letter-spacing: var(--track-label); text-transform: uppercase;
}
.kicker { color: var(--teal-700); margin: 0 0 var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--teal-600); flex: none; }
.dark .kicker { color: var(--lime-300); }
.dark .kicker::before { background: var(--lime-300); }
h2 em { color: var(--teal-700); }
.dark h2 em { color: var(--lime-300); }

/* buttons */
.primary-button, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: var(--tap); padding: .75rem 1.375rem; border-radius: var(--r-sm);
  font: 700 var(--fs-small)/1.2 var(--font-body); transition: background-color .15s, transform .15s, box-shadow .15s;
}
.primary-button { background: var(--lime-300); color: var(--navy-900); }
.primary-button:hover { background: var(--lime-400); transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.nav-cta { background: var(--teal-100); color: var(--navy-900); }
.nav-cta:hover { background: var(--teal-200); }
.nav-cta[hidden] { display: none; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--s-3); font: 800 1.0625rem/1.2 var(--font-display); letter-spacing: .08em; white-space: nowrap; }
.brand b { color: var(--teal-700); }
.brand small { display: block; margin-top: 2px; font: 700 .6875rem/1 var(--font-body); letter-spacing: .24em; color: var(--ink-3); }
.brand-mark { color: var(--teal-600); font-size: 2rem; line-height: 1; }
.topbar nav { display: flex; align-items: center; gap: var(--s-5); margin-inline-start: auto; font-size: var(--fs-small); font-weight: 600; }
.nav-items { display: flex; align-items: center; gap: var(--s-1); }
.nav-items a { padding: .5rem .75rem; border-radius: var(--r-sm); color: var(--ink-2); transition: color .15s, background-color .15s; }
.nav-items a:hover { color: var(--teal-700); background: var(--teal-50); }
#menuButton { display: none; min-width: var(--tap); min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 1.25rem; cursor: pointer; }

/* cards */
.flag-card, .feature-grid article, .speaker-card, .schedule {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
}
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.tags span { border: 1px solid var(--teal-200); background: var(--teal-50); border-radius: var(--r-pill); padding: .25rem .875rem; font-size: var(--fs-small); font-weight: 600; color: var(--teal-700); }
.notice { color: var(--ink-3); font-size: var(--fs-small); margin: var(--s-5) 0 0; max-width: 62ch; }

/* 5. SECTIONS -------------------------------------------------------------- */
/* hero */
.hero {
  color: var(--on-dark); overflow: hidden;
  background: radial-gradient(ellipse at 80% 35%, #185e67 0%, transparent 48%), linear-gradient(115deg, var(--navy-950), var(--navy-800));
}
.hero-inner { padding-top: clamp(3rem, 7vw, 5.5rem); }
.eyebrow { color: var(--lime-300); display: flex; align-items: center; gap: var(--s-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-300); flex: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: var(--s-6); min-height: 420px; }
.hero h1 { font-size: var(--fs-display); line-height: 1.07; letter-spacing: -.035em; margin: var(--s-5) 0 var(--s-4); max-width: 16ch; color: #fff; }
.hero h1 em { color: var(--lime-300); }
.subtitle { font: 700 clamp(1.125rem, .6vw + 1rem, 1.375rem)/1.35 var(--font-display); color: #b9e2e6; margin: 0; }
.intro { color: var(--on-dark-2); font-size: var(--fs-lead); max-width: 46ch; margin: var(--s-4) 0 var(--s-6); }
.globe { height: 360px; position: relative; display: flex; align-items: center; justify-content: center; }
.globe-core { width: 270px; height: 270px; border-radius: 50%; position: relative; overflow: hidden; background: radial-gradient(circle at 28% 26%, #a2ded0, #357f84 40%, #164e5a 75%, #092e3e); box-shadow: inset -25px -20px 55px #082e3c, 0 0 100px #78cfc133; }
.globe-core::before { content: ''; position: absolute; inset: 12%; border: 1px solid #d0f4dd55; border-radius: 50%; transform: rotate(-25deg) scaleX(.55); }
.globe-core::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 33px, #c2f5d21a 34px 35px); border-radius: 50%; transform: rotate(-18deg); }
.orbit { position: absolute; width: 350px; height: 145px; border: 1px solid #9cd6ca70; border-radius: 50%; transform: rotate(-32deg); }
.orbit.two { width: 390px; height: 150px; transform: rotate(47deg); }
.orbit-point { position: absolute; width: 12px; height: 12px; background: var(--lime-300); border-radius: 50%; }
.orbit-point.a { top: 55px; right: 90px; } .orbit-point.b { bottom: 55px; left: 85px; } .orbit-point.c { top: 155px; left: 10px; }
.event-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); padding: var(--s-6) 0 var(--s-7); border-top: 1px solid rgb(255 255 255 / .22); }
.event-facts > div { border-inline-start: 3px solid var(--lime-300); padding-inline-start: var(--s-4); }
.event-facts span { display: block; color: var(--on-dark-2); font: 700 var(--fs-label)/1.4 var(--font-body); letter-spacing: var(--track-label); }
.event-facts strong { display: block; font: 700 1.1875rem/1.35 var(--font-display); margin-top: var(--s-1); color: #fff; }
.event-facts small { font: 400 var(--fs-small)/1.4 var(--font-body); color: var(--on-dark-2); }

/* co-chairs */
.leadership { background: var(--teal-100); padding-block: var(--s-7); }
.overline { text-align: center; color: var(--ink-2); margin: 0 0 var(--s-5); }
.flags { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-4); }
.flag-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); min-width: min(340px, 100%); }
.flag-card img { width: 58px; height: 39px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; flex: none; }
.flag-card strong { display: block; font-size: 1rem; line-height: 1.3; }
.flag-card span { display: block; font-size: var(--fs-small); color: var(--ink-3); }

/* about */
.body-lead { font-size: var(--fs-lead); line-height: 1.55; font-weight: 600; margin-top: 0; max-width: 52ch; }
.two-col p:not(.kicker):not(.body-lead), .partner-intro { color: var(--ink-2); max-width: 62ch; }

/* priorities */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.feature-grid article { padding: var(--s-6); position: relative; overflow: hidden; }
.feature-grid article::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal-600), var(--lime-300)); }
.feature-number { color: var(--teal-700); font: 800 var(--fs-small)/1 var(--font-display); letter-spacing: .08em; }
.feature-grid h3 { margin: var(--s-6) 0 var(--s-2); }
.feature-grid p { color: var(--ink-2); font-size: 1rem; margin: 0; }

/* programme */
.soft { color: var(--ink-2); }
.schedule { overflow: hidden; }
.schedule-head { background: var(--navy-900); color: #fff; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding: var(--s-4) var(--s-5); font-size: var(--fs-small); }
.schedule-head span { color: var(--on-dark-2); }
.schedule-item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-5); padding: var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); }
.schedule-item > span { font: 800 var(--fs-small)/1.5 var(--font-display); color: var(--teal-700); }
.schedule-item strong { display: block; font: 700 1.125rem/1.35 var(--font-display); margin-bottom: var(--s-1); }
.schedule-item p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.schedule-foot { background: var(--teal-50); padding: var(--s-3) var(--s-5); color: var(--ink-3); font-size: var(--fs-small); }

/* speakers */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 40ch; color: var(--ink-2); margin: 0; }
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.speakers-empty { grid-column: 1 / -1; text-align: center; padding: var(--s-7) var(--s-5); background: var(--surface); border: 2px dashed var(--teal-200); border-radius: var(--r-md); }
.speakers-empty span { font-size: 2rem; color: var(--teal-600); line-height: 1; }
.speakers-empty h3 { margin: var(--s-2) 0 var(--s-1); }
.speakers-empty p { color: var(--ink-2); margin: 0 auto; max-width: 44ch; }
.speaker-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.speaker-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 20%; background: var(--teal-100); }
.speaker-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.speaker-card h3 { margin-bottom: var(--s-1); }
.speaker-card p { color: var(--ink-2); font-size: 1rem; margin: 0 0 var(--s-1); }
.speaker-card small { color: var(--ink-3); font-size: var(--fs-small); }

/* partners */
.partner-label { font: 700 var(--fs-label)/1.4 var(--font-body); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--teal-700); margin: var(--s-7) 0 var(--s-4); }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.partner-chip, .governments span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: var(--s-3) var(--s-4);
  background: var(--teal-50); border: 1px solid var(--line); border-radius: var(--r-md); font: 700 var(--fs-small)/1.35 var(--font-display);
}
.governments span { background: var(--teal-100); border-color: var(--teal-200); font-size: 1rem; }

/* documents */
.dark p { color: var(--on-dark-2); }
.resource-list { border-top: 1px solid rgb(255 255 255 / .22); }
.resource { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-3); min-height: 72px; border-bottom: 1px solid rgb(255 255 255 / .22); transition: background-color .15s; }
.resource > span { font-size: 1.5rem; color: var(--lime-300); }
.resource strong { display: block; font: 700 1.125rem/1.3 var(--font-display); color: #fff; }
.resource small { display: block; color: var(--on-dark-2); font-size: var(--fs-small); }
a.resource:hover { background: rgb(255 255 255 / .08); }
.resource.is-pending { cursor: default; }
.resource.is-pending > span { color: var(--on-dark-2); opacity: .6; }

/* footer */
footer { background: var(--navy-950); color: var(--on-dark); padding-block: var(--s-7); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.footer-inner strong { font: 800 1rem/1.3 var(--font-display); letter-spacing: .06em; }
.footer-inner p { font-size: var(--fs-small); margin: var(--s-1) 0 0; color: var(--on-dark-2); }
.footer-inner .disclaimer { font-size: var(--fs-small); }

/* 6. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .brand small { display: none; }
  #menuButton { display: inline-flex; align-items: center; justify-content: center; }
  .topbar nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: var(--s-2); padding: var(--s-4) var(--gutter) var(--s-5); background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .topbar nav.open { display: flex; }
  .nav-items { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-items a { padding: var(--s-3) var(--s-2); min-height: var(--tap); display: flex; align-items: center; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin-top: var(--s-3); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .globe { display: none; }
  .hero h1 { max-width: 18ch; }
  .event-facts { grid-template-columns: 1fr; gap: var(--s-4); }
  .two-col { grid-template-columns: 1fr; gap: var(--s-4); }
  .feature-grid { grid-template-columns: 1fr; margin-top: var(--s-6); }
  .section-heading { flex-direction: column; align-items: start; gap: var(--s-4); margin-bottom: var(--s-2); }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; gap: var(--s-4); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .speaker-body { padding: var(--s-3) var(--s-3) var(--s-4); }
  .speaker-card h3 { font-size: 1.0625rem; }
  .brand { font-size: .8125rem; letter-spacing: .04em; white-space: normal; min-width: 0; line-height: 1.2; }
  .brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  #menuButton { flex: none; }
  .brand-mark { font-size: 1.625rem; }
  .eyebrow { font-size: .6875rem; align-items: flex-start; }
  .eyebrow .dot { margin-top: .4em; }
  .primary-button { width: 100%; justify-content: space-between; }
  .flag-card { padding: var(--s-4); }
  .schedule-item { grid-template-columns: 1fr; gap: var(--s-1); padding: var(--s-5) var(--s-4); }
  .schedule-head, .schedule-foot { padding-inline: var(--s-4); }
  .partner-grid { gap: var(--s-2); }
  .partner-chip, .governments span { min-height: 60px; padding: var(--s-2) var(--s-3); }
  .feature-grid article { padding: var(--s-5); }
}

/* story hero: first screen. The photo is stretched edge to edge (left, right) and to the full height under the
   header, with nothing darkened or removed from it; only a small translucent tag holds the heading in the corner.
   On narrow portrait screens it keeps its true proportions (full width) with the heading above it. */
.story {
  --story-ratio: 1.5; --story-h: calc(100vh - var(--header-h));
  --story-h: calc(100svh - var(--header-h));
  position: relative; overflow: hidden; background: var(--navy-950); color: #fff; scroll-margin-top: var(--header-h);
  height: var(--story-h);
}
.story-fig { position: absolute; inset: 0; margin: 0; }
.story-media, .story-photo { width: 100%; height: 100%; }
.story-photo { line-height: 0; }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: fill; }
.story-text { position: relative; z-index: 2; padding-block: clamp(12px, 3svh, 32px); pointer-events: none; }
.story-tag { display: inline-block; max-width: min(100%, 30rem); padding: var(--s-3) var(--s-5) var(--s-4); border-radius: var(--r-md); background: rgb(6 31 42 / .52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.story .kicker { color: var(--lime-300); margin: 0 0 var(--s-2); }
.story .kicker::before { background: var(--lime-300); }
.story h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, .8rem + 1.6svh + 1.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; text-shadow: 0 1px 12px rgb(6 31 42 / .5); }
.story h2 em { color: var(--lime-300); display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 820px) and (orientation: portrait) {   /* narrow portrait: true proportions, heading above the photo */
  .story { height: auto; min-height: var(--story-h); display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); padding-block: var(--s-5); }
  .story-fig { position: static; order: 2; }
  .story-media, .story-photo { height: auto; }
  .story-photo img { height: auto; aspect-ratio: var(--story-ratio); }
  .story-text { order: 1; padding-block: 0; pointer-events: auto; }
  .story-tag { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: none; }
  .story h2 { font-size: clamp(1.9rem, 9vw, 2.75rem); }
  .story h2 em { display: inline; }
}

/* 7. LANGUAGE SELECTOR ----------------------------------------------------- */
.lang { position: relative; flex: none; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: .625rem; min-height: var(--tap);
  padding: .3125rem .875rem .3125rem .375rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); cursor: pointer; user-select: none;
  font: 700 var(--fs-small)/1.2 var(--font-body); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.lang-menu summary::-webkit-details-marker, .lang-menu summary::marker { display: none; content: ''; }
.lang-menu summary:hover { border-color: var(--teal-600); background: var(--teal-50); }
.lang-menu[open] summary { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgb(28 136 148 / .18); }
.lang-flag { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgb(8 43 56 / .15); background: var(--teal-50); }
.lang-caret { width: 8px; height: 8px; margin-inline-start: .125rem; border-inline-end: 2px solid var(--ink-3); border-block-end: 2px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .2s; font-size: 0; }
.lang-menu[open] .lang-caret { transform: translateY(2px) rotate(-135deg); }
.lang-list {
  list-style: none; margin: 0; padding: var(--s-2); position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 30;
  width: 300px; max-width: calc(100vw - 2 * var(--gutter)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: 0 18px 40px rgb(8 43 56 / .18); animation: lang-in .16s ease-out;
}
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-list li + li { margin-top: 2px; }
.lang-list a { display: flex; align-items: center; gap: var(--s-3); padding: .625rem .75rem; min-height: 56px; border-radius: 10px; transition: background-color .12s; }
.lang-list a:hover { background: var(--teal-50); }
.lang-list a[aria-current] { background: var(--teal-100); }
.lang-list a[aria-current]::after { content: '✓'; margin-inline-start: auto; color: var(--teal-700); font-weight: 800; }
.lang-list .lang-flag { width: 36px; height: 36px; }
.lang-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lang-list strong { font: 700 1rem/1.3 var(--font-body); color: var(--ink); }
.lang-list span { font-size: .8125rem; color: var(--ink-3); line-height: 1.3; }
@media (max-width: 1180px) {
  .lang { width: 100%; }
  .lang-menu summary { width: 100%; justify-content: flex-start; border-radius: var(--r-md); padding-inline-end: var(--s-4); }
  .lang-menu summary .lang-caret { margin-inline-start: auto; }
  .lang-list { position: static; width: 100%; max-width: none; margin-top: var(--s-2); box-shadow: none; animation: none; }
}

/* 8. LOCALE ADAPTATIONS ---------------------------------------------------- */
/* Arabic: right-to-left, connected script (no tracking), Arabic-capable face. */
:root[lang="ar"] { --font-display: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; --font-body: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; --lh-body: 1.85; --track-label: 0; }
:root[lang="ar"] body { font-size: 1.125rem; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] .brand { letter-spacing: 0; }
:root[lang="ar"] .hero h1 { line-height: 1.3; max-width: 20ch; }
:root[lang="ar"] h2 { line-height: 1.35; }
:root[lang="ar"] .kicker, :root[lang="ar"] .overline, :root[lang="ar"] .eyebrow, :root[lang="ar"] .partner-label, :root[lang="ar"] .brand small, :root[lang="ar"] .event-facts span { text-transform: none; letter-spacing: 0; font-size: .875rem; }
:root[dir="rtl"] .resource-arrow { transform: scaleX(-1); }
:root[dir="rtl"] .primary-button:hover { transform: translateY(-1px); }
/* Japanese: no tracking, phrase-aware wrapping, looser leading. */
:root[lang="ja"] { --font-display: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif; --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif; --lh-body: 1.85; --track-label: .05em; }
:root[lang="ja"] body { line-break: strict; word-break: auto-phrase; }
:root[lang="ja"] h1, :root[lang="ja"] h2, :root[lang="ja"] h3, :root[lang="ja"] .brand { letter-spacing: 0; font-weight: 700; word-break: auto-phrase; }
:root[lang="ja"] .hero h1 { line-height: 1.3; max-width: 14em; font-size: clamp(2.125rem, 3vw + 1rem, 3.5rem); }
:root[lang="ja"] h2 { line-height: 1.35; }
:root[lang="ja"] .kicker, :root[lang="ja"] .overline, :root[lang="ja"] .eyebrow, :root[lang="ja"] .partner-label { text-transform: none; }
/* German & Dutch: longer words — hyphenate body copy and keep headings inside their boxes. */
:root[lang="de"] body, :root[lang="nl"] body { hyphens: auto; }
:root[lang="de"] h1, :root[lang="de"] h2, :root[lang="de"] h3, :root[lang="nl"] h1, :root[lang="nl"] h2, :root[lang="nl"] h3 { hyphens: auto; }
:root[lang="de"] .hero h1 { max-width: 15ch; font-size: clamp(2.25rem, 3.2vw + 1rem, 3.75rem); }
:root[lang="de"] .nav-items a { padding-inline: .5rem; }
:root[lang="de"] .event-facts strong, :root[lang="nl"] .event-facts strong { font-size: 1.125rem; }
