:root {
  --brand-blue: #00a0e3;
  --brand-indigo: #50519d;
  --brand-teal: #32b5ac;
  --ink: #141527;
  --muted: #4c4d5f;
  --paper: #ffffff;
  --soft: #eefbfd;
  --soft-2: #f4f4ff;
  --border: #b8c2d6;
  --focus: #111111;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--paper);
}

body { margin: 0; }

img { max-width: 100%; height: auto; }

a { color: #003a8c; text-underline-offset: 0.18em; }
a:hover { color: #001f5c; }

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-180%);
  background: #fff;
  color: #000;
  padding: 0.7rem 1rem;
  border: 3px solid #000;
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.header-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand img {
  width: 188px;
  display: block;
  margin-bottom: 0.75rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 0.75rem;
  border-bottom: 4px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--brand-teal);
  color: #1b1c78;
}

.menu-toggle { display: none; }

.language-switcher { position: relative; justify-self: end; }

.language-switcher button,
.menu-toggle {
  min-height: 48px;
  border: 2px solid var(--brand-indigo);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.language-switcher img {
  width: 24px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.language-switcher ul {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 210px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 2px solid var(--brand-indigo);
  box-shadow: 0 14px 34px rgba(20, 21, 39, 0.18);
}

.language-switcher.is-open ul { display: block; }

.language-switcher a {
  display: block;
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}

.language-switcher a:hover { background: var(--soft); }

.hero {
  background: linear-gradient(135deg, var(--soft) 0%, #fff 55%, var(--soft-2) 100%);
  padding: clamp(2rem, 5vw, 4rem) 0 0.75rem;
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-grid.text-only {
  grid-template-columns: minmax(0, 920px);
}

.two-column.text-only {
  grid-template-columns: minmax(0, 920px);
}

.eyebrow {
  color: #1e5b93;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  color: #22236f;
}

.home-title {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
}

.page-title-small {
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
}

h2 {
  margin: 1.8rem 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: #22236f;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #063b56;
}

.subsection-heading {
  margin-top: 2.5rem;
}

.spaced-heading {
  margin-top: 2rem;
}

.lead {
  color: #303246;
  font-size: 1.25rem;
  max-width: 62ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 3px solid var(--brand-indigo);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--brand-indigo);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: #17185f;
}

.hero-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.75rem;
}

.hero-card img,
.page-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.hero-card figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.65rem 0.25rem 0.15rem;
}

.image-slogan {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--brand-teal);
  color: #fff;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.band { background: var(--soft); }

.hero + .band {
  padding-top: 0.75rem;
  padding-bottom: 0;
}

.hero + .band + .section {
  padding-top: 0.75rem;
}

.prose {
  max-width: var(--max);
}

.prose p,
.prose li {
  color: #292b3d;
  max-width: 920px;
}

.page-hero {
  background: linear-gradient(135deg, var(--soft) 0%, #fff 70%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 0.75rem;
}

.page-hero + .section {
  padding-top: 0.75rem;
}

.card-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card-grid.two,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-top: 6px solid var(--brand-teal);
  background: #fff;
  padding: 1.25rem;
}

.number {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--brand-indigo);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.accent-card {
  border-top-color: var(--brand-blue);
  background: var(--soft);
}

.full-row {
  grid-column: 1 / -1;
}

.card a[aria-disabled="true"] {
  color: #555555;
  cursor: not-allowed;
  pointer-events: none;
}

.partner-list article {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.partner-logo {
  width: 200px;
  height: 118px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.6rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
}

.logo-grid img {
  max-height: 110px;
  margin: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.75rem;
}

.site-footer {
  background: var(--brand-indigo);
  color: #fff;
  padding: 2.5rem 0;
  border-top: 6px solid var(--brand-teal);
}

.site-footer a { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  padding: 1rem;
}

.footer-logos img {
  max-height: 95px;
  width: auto;
  background: #fff;
  padding: 0.45rem;
}

.footer-project-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0;
}

.footer-brand-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 2px solid currentColor;
  font-weight: 400;
  text-decoration: none;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-indigo);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.social-links-dark .social-icon {
  background: #003a8c;
  color: #fff;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.follow-box {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--soft);
  border-left: 6px solid var(--brand-teal);
}

.follow-box h2 {
  margin-top: 0;
}

.social-links-dark a {
  color: #003a8c;
}

.social-links-dark a:hover {
  background: #fff;
}

.text-link[aria-disabled="true"],
.button[aria-disabled="true"] {
  color: #4b4b4b;
  border-color: #767676;
  pointer-events: none;
}

@media (max-width: 920px) {
  .header-row {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-bottom: 1rem;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav a {
    border: 2px solid var(--border);
    padding: 0.85rem;
  }

  .hero-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-social {
    justify-content: center;
    text-align: center;
  }

  .card-grid.two,
  .card-grid.three,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .partner-list article {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    width: min(100%, 220px);
    height: 118px;
  }
}

@media (max-width: 520px) {
  html { font-size: 17px; }
  .container { width: min(100% - 1rem, var(--max)); }
  .brand img {
    width: 150px;
    margin-bottom: 0.5rem;
  }
  .header-row { gap: 0.5rem; }
  .language-switcher ul { right: -0.5rem; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
