/* MPS V2 – Bold & Confident. Single stylesheet; no V1 variables. */
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #0f172a;
  background: #fff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #0284c7;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  padding: calc(1rem + env(safe-area-inset-top)) calc(1.5rem + env(safe-area-inset-right)) 1rem calc(1.5rem + env(safe-area-inset-left));
  background: #fff;
  border-bottom: 5px solid #0284c7;
  z-index: 50;
}
.site-header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}
.site-header .logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.site-header .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .site-header .logo img {
    height: 56px;
  }
}
@media (min-width: 1024px) {
  .site-header .logo img {
    height: 64px;
  }
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger, .hamburger::before, .hamburger::after {
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 1px;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }
.main-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  min-height: 36px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover {
  color: #0284c7;
  border-bottom-color: #0284c7;
}
.main-nav a.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown .dropdown-menu a { border-bottom: none; padding: 0.5rem 0.75rem; white-space: nowrap; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
}
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
    overflow-y: auto;
  }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; }
  .main-nav.is-open { transform: translateX(0); }
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
  }
  .main-nav .nav-dropdown.is-open .dropdown-menu { display: block; }
  .nav-overlay.is-visible { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 5rem calc(1.5rem + env(safe-area-inset-right)) calc(5rem + env(safe-area-inset-bottom)) calc(1.5rem + env(safe-area-inset-left));
  text-align: left;
}
.hero .container { max-width: 1000px; }
.hero__logo {
  display: block;
  margin: 0 0 1.5rem;
}
.hero__logo img {
  height: auto;
  width: 100%;
  max-width: 320px;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .hero__logo img { max-width: 420px; }
}
@media (min-width: 1024px) {
  .hero__logo img { max-width: 520px; }
}
.hero__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #38bdf8;
  margin: 0 0 0.75rem;
}
.hero__display {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__tagline {
  font-size: 1.2rem;
  color: #94a3b8;
  margin: 0 0 1.5rem;
  max-width: 32rem;
  white-space: nowrap;
}
.hero__tagline-line { display: inline; margin-top: 0; }
.hero__cta { margin: 0; }

/* ========== DESKTOP (wide viewport + hover) — single-line headings ========== */
@media (min-width: 768px) and (hover: hover) {
  #main-content h1,
  #main-content h2,
  #main-content h3 { white-space: nowrap; }
  .hero__display { white-space: nowrap; }
  .hero__tagline { white-space: nowrap; }
  .section__label,
  .section__title,
  .section__title-large { white-space: nowrap; }
  .section--dark h2 { white-space: nowrap; }
  .pillar-card h3,
  .event-card__title,
  .card h3,
  .benefit-card h3 { white-space: nowrap; }
}

/* ========== MOBILE (narrow viewport OR touch / no hover — includes iOS) — wrapped, no truncation ========== */
@media (max-width: 767px), (hover: none), (pointer: coarse) {
  #main-content h1,
  #main-content h2,
  #main-content h3 { white-space: normal; }
  .hero__display {
    white-space: normal;
    font-size: clamp(2rem, 7vw, 2.75rem);
  }
  .hero__tagline { white-space: normal; }
  .section__label,
  .section__title,
  .section__title-large { white-space: normal; }
  .section--dark h2 { white-space: normal; }
  .pillar-card h3,
  .event-card__title,
  .card h3,
  .benefit-card h3 { white-space: normal; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  background: #0284c7;
  color: #fff;
  cursor: pointer;
}
.btn:hover { background: #0369a1; }
.btn--outline { background: transparent; color: #fff; border: 3px solid #fff; }
.btn--outline:hover { background: #fff; color: #0f172a; }
.btn--white { background: #fff; color: #0f172a; }
.btn--white:hover { background: #e2e8f0; }
.btn-tertiary {
  display: inline-block;
  padding: 0.5rem 0;
  color: #bae6fd;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-tertiary:hover { color: #fff; text-decoration: underline; }

/* Sections */
.section { padding: 3rem 0; }
.section--blue {
  background: #0284c7;
  color: #fff;
  padding: 4rem 1.5rem;
}
.section--blue .section__label { color: #bae6fd; }
.section--blue .section__title { color: #fff; }
.section--blue .manifesto { color: #e0f2fe; font-size: 1.1rem; }
.section--blue .btn--outline { color: #fff; border-color: #fff; }
.section--blue p { color: #e0f2fe; }
.section--blue .key-details dt { color: #bae6fd; }
.section--blue .key-details dd { color: #fff; }
/* Cards on blue section: dark text and readable button (card has light bg) */
.section--blue .card { color: #0f172a; }
.section--blue .card h3 { color: #0f172a; }
.section--blue .card .btn--outline { color: #0284c7; border-color: #0284c7; background: transparent; }
.section--blue .card .btn--outline:hover { background: #0284c7; color: #fff; }
.section__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin: 0 0 0.5rem;
  white-space: nowrap;
}
.section__title,
.section__title-large {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.manifesto { margin: 0 0 1rem; }
.section--dark {
  background: #0f172a;
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.section--dark .section__label { color: #94a3b8; }
.section--dark h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.section--dark__sub { color: #94a3b8; margin: 0 0 1.5rem; font-size: 1.05rem; }
.cta-triple { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Pillar / cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.pillar-card {
  background: #f8fafc;
  border-left: 5px solid #0284c7;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}
.pillar-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  color: #0f172a;
  white-space: nowrap;
}
.pillar-card p { font-size: 0.95rem; color: #475569; margin: 0; }

/* Section header (standalone) */
.section-header { margin-bottom: 1.5rem; }
.section-header--center { text-align: center; }
.section-header .section__label--center { text-align: center; }

/* Event cards */
.events-list { list-style: none; padding: 0; margin: 0; margin-top: 1.5rem; }
.event-card {
  background: #f8fafc;
  border-left: 5px solid #0284c7;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.event-card__header { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.event-card__date { font-weight: 600; color: #0f172a; }
.event-card__badge { background: #0284c7; color: #fff; padding: 0.25rem 0.5rem; font-size: 0.75rem; text-transform: uppercase; }
.event-card__title { font-family: 'Oswald', sans-serif; font-size: 1.25rem; margin: 0 0 0.25rem; white-space: nowrap; }
.event-card__location { color: #64748b; margin: 0 0 0.5rem; font-size: 0.9rem; }
.event-card__body p { margin: 0 0 0.75rem; color: #475569; }
.event-card__description { max-width: 52ch; line-height: 1.55; }
.event-card__cta { margin-top: 1rem; }
.events-past { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.section--events-intro { padding: 2rem 0; }

/* Grid / cards (framework, news) */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: #f8fafc;
  border-left: 5px solid #0284c7;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; margin: 0 0 0.5rem; text-transform: uppercase; white-space: nowrap; }
.card p { margin: 0 0 0.5rem; font-size: 0.95rem; color: #475569; }
.card a.card { transition: background 0.2s; }
.card a.card:hover { background: #e2e8f0; }

/* Lists */
ul.mandate-aims, ul.about-definitions { margin: 1rem 0; padding-left: 1.5rem; }
ul.list-disc { list-style: disc; padding-left: 1.5rem; margin: 1rem 0; }
.key-details { margin: 1rem 0; }
.key-details dt { font-weight: 600; color: #0f172a; margin-top: 0.75rem; }
.key-details dd { margin: 0.25rem 0 0; color: #475569; }
.resource-list { list-style: none; padding: 0; margin: 1rem 0; }
.resource-list li { padding: 0.5rem 0; border-bottom: 1px solid #e2e8f0; }

/* Benefits grid (host) */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.benefit-card {
  background: #f8fafc;
  border-left: 5px solid #0284c7;
  padding: 1.25rem 1.5rem;
}
.benefit-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; margin: 0 0 0.5rem; text-transform: uppercase; white-space: nowrap; }
.benefit-card p { margin: 0; font-size: 0.95rem; color: #475569; }

/* Stats bar (impact) */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.5rem;
  background: #0c4a6e;
  color: #fff;
  text-align: center;
}
.stats-bar__value { display: block; font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; }
.stats-bar__label { font-size: 0.85rem; color: #bae6fd; }

/* Form */
.form-wrapper { margin: 1.5rem 0; }
.form-wrapper iframe { border: 0; display: block; }

/* Press / articles */
.press-release-full { margin: 2rem 0; padding-bottom: 2rem; border-bottom: 1px solid #e2e8f0; }
.press-release-full h2 { font-family: 'Oswald', sans-serif; font-size: 1.5rem; margin: 0 0 0.5rem; }
.press-release-full p { margin: 0.5rem 0; }
blockquote.diplomatic-script { border-left: 4px solid #0284c7; padding-left: 1rem; margin: 1rem 0; color: #475569; }
blockquote.diplomatic-script p { margin: 0.25rem 0; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem calc(1.5rem + env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) calc(1.5rem + env(safe-area-inset-left));
  margin-top: 3rem;
  border-top: 3px solid #0284c7;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  align-items: start;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand__logo { display: block; margin-bottom: 0.5rem; }
.footer-brand__logo img { height: 44px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.footer-tagline { font-size: 0.8125rem; margin: 0; max-width: 200px; line-height: 1.4; color: #94a3b8; }
.footer-heading {
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}
.footer-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.5rem;
}
.footer-links__list li { margin: 0; }
.footer-links__list a {
  display: block;
  padding: 0.125rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links__list a:hover { color: #fff; }
.footer-contact ul { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin: 0; }
.footer-contact a {
  display: block;
  padding: 0.125rem 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  word-break: break-all;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.6875rem;
  color: #64748b;
}
.footer-bottom p { margin: 0; }

/* Modal (events EOI) */
.modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open,
.modal[aria-hidden="false"] { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal__dialog { position: relative; background: #fff; max-width: 600px; width: 100%; max-height: 90vh; overflow: auto; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.modal__header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.modal__title { margin: 0; font-family: 'Oswald', sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.modal__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0 0.25rem; line-height: 1; color: #64748b; }
.modal__close:hover { color: #0f172a; }
.modal__body { padding: 1rem 1.5rem; }
.modal__body iframe { width: 100%; min-height: 500px; border: 0; }

/* ========== MOBILE (iOS) LAYOUT & SPACING — max-width: 767px ========== */
@media (max-width: 767px) {
  .container { padding: 0 1rem; }

  .section { padding: 2rem 0; }
  .section--blue { padding: 2.5rem 1rem; }
  .section--dark { padding: 2.5rem 1rem; }
  .section--events-intro { padding: 1.5rem 0; }

  .section__label { margin-bottom: 0.65rem; }

  /* Stats bar (Impact) — 2×2 grid, consistent values */
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  .stats-bar__value { font-size: 1.35rem; }
  .stats-bar__label { font-size: 0.85rem; }

  /* Key details (Events, etc.) — stacked dt/dd, no default dd indent */
  .key-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 1.25rem 0;
  }
  .key-details dt {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
  }
  .key-details dt:first-child { margin-top: 0; }
  .key-details dd {
    margin-left: 0;
    margin-bottom: 0.75rem;
  }
  .key-details dd:last-child { margin-bottom: 0; }

  /* Lists — breathing room and line-height */
  ul.mandate-aims li,
  ul.about-definitions li,
  ul.list-disc li {
    margin-bottom: 0.75rem;
    line-height: 1.55;
  }
  ul.mandate-aims li:last-child,
  ul.about-definitions li:last-child,
  ul.list-disc li:last-child { margin-bottom: 0; }

  /* Card grids — slightly more gap and padding */
  .pillar-grid,
  .benefits-grid,
  .grid-2 { gap: 1.5rem; }
  .pillar-card,
  .benefit-card,
  .card { padding: 1.5rem; }
  .event-card { padding: 1.5rem; }

  /* Resource list */
  .resource-list li { padding: 0.75rem 0; }

  /* Form iframes — avoid overly tall page on iOS */
  .form-wrapper iframe {
    min-height: 60vh;
    height: 700px;
  }

  /* Modal — safe-area and iOS-friendly height */
  .modal__dialog {
    max-height: min(90vh, 85dvh);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  /* Footer — separation before copyright */
  .footer-bottom { margin-top: 1.25rem; }
}

/* ========== TOUCH TARGETS — 44px minimum (pointer: coarse / hover: none) ========== */
@media (pointer: coarse), (hover: none) {
  .main-nav a {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }

  .footer-links__list a,
  .footer-contact a {
    min-height: 44px;
    padding: 0.5rem 0;
  }

  .modal__close {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    min-height: 44px;
    box-sizing: border-box;
  }
}
