@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* Shared navigation uses the homepage logo and visual treatment. */
.site-header {
  position: relative;
  height: 105px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #f7f8f6;
  color: #142a3b;
  border-bottom: 1px solid #dde2e2;
  font-family: 'DM Sans', Arial, sans-serif;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: #142a3b;
  flex-shrink: 0;
}
.site-header .brand img { width: 49px; height: 49px; object-fit: contain; }
.site-header .brand-sub { display: block; font-size: 9px; letter-spacing: 2px; margin-top: 8px; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-header nav > a { display: inline-block; text-decoration: none; color: #142a3b; white-space: nowrap; }
.site-header nav > a[aria-current='page'] { font-weight: 700; }
.site-header nav > .contact { border: 1px solid #aab6bc; padding: 13px 20px; border-radius: 30px; }
.site-header .contact span { margin-left: 20px; }
.site-header a:hover { color: #7097b0; }
.site-header a:focus-visible { outline: 2px solid #7097b0; outline-offset: 5px; }
.footer-brand .brand-mark { background: #f7f8f6; border-radius: 50%; }
@media (max-width: 700px) {
  .site-header { height: auto; min-height: 85px; padding: 20px 6%; flex-wrap: wrap; gap: 20px; }
  .site-header .brand { font-size: 25px; }
  .site-header .brand img { width: 42px; height: 42px; }
  .site-header nav { width: 100%; gap: 12px 20px; flex-wrap: wrap; font-size: 12px; }
  .site-header nav > a:not(.contact) { display: inline-block; }
  .site-header nav > .contact { padding: 10px 14px; }
  .site-header .contact span { margin-left: 8px; }
}

/* Real language links work on static hosting and keep the current page. */
.site-header { height: auto; min-height: 105px; padding-block: 20px; gap: 24px; flex-wrap: wrap; }
.site-header > nav { margin-left: auto; gap: clamp(16px, 2vw, 30px); }
.language-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 4px;
  border: 1px solid #c5ced2;
  border-radius: 24px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
}
.language-switcher > a {
  display: block;
  min-width: 31px;
  padding: 6px 7px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  color: #142a3b;
}
.language-switcher > a[aria-current='true'] { background: #142a3b; color: #fff; font-weight: 700; }
.language-switcher > a:hover { background: #e1e9ed; color: #142a3b; }
.language-switcher > a[aria-current='true']:hover { background: #294a60; color: #fff; }
html:not([lang='en']) .intro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 6%; }
html:not([lang='en']) .intro h1 { font-size: clamp(36px, 4.2vw, 66px); overflow-wrap: break-word; }
html:not([lang='en']) .stage h2 { overflow-wrap: anywhere; hyphens: auto; }
html:not([lang='en']) .geneva-main > div { right: 30px; }
html:not([lang='en']) .geneva-main h2 { font-size: clamp(36px, 4vw, 55px); }
html:not([lang='en']) .closing h2 { max-width: 75%; font-size: clamp(34px, 4.1vw, 58px); }
html[lang='zh-Hans'] body { line-height: 1.7; }
html[lang='zh-Hans'] :is(h1, h2, h3, .eyebrow, .step, .kicker, .group-label, figcaption) { letter-spacing: .02em; }
html[lang='zh-Hans'] :is(h1, h2, h3) { line-height: 1.35; }

@media (max-width: 1050px) {
  .site-header .brand { order: 0; }
  .site-header .language-switcher { order: 1; margin-left: auto; }
  .site-header > nav { order: 2; width: 100%; margin-left: 0; gap: 12px 24px; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .site-header { min-height: 85px; gap: 18px 12px; }
  .site-header > nav { gap: 12px 18px; }
  html:not([lang='en']) .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  html:not([lang='en']) .intro h1 { font-size: clamp(32px, 8.5vw, 48px); }
  html:not([lang='en']) .geneva-main h2 { font-size: clamp(32px, 9vw, 47px); }
  html:not([lang='en']) .closing h2 { max-width: 100%; font-size: clamp(30px, 8vw, 43px); }
  html:not([lang='en']) .journey-foot { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .site-header .brand { font-size: 24px; gap: 9px; }
  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .brand-sub { font-size: 7px; letter-spacing: 1.1px; }
  .language-switcher { gap: 0; padding: 3px; }
  .language-switcher > a { min-width: 27px; padding: 6px; }
}
@media print {
  .language-switcher { display: none; }
}
