/* Shared footer master.  This is the last footer layer on every public
 * route, including the homepage, so page-specific experiments cannot create
 * a second footer layout.  Content, links, settings and translation hooks
 * remain in the existing PHP markup. */

html body .site-footer {
  position: relative !important;
  width: 100% !important;
  min-height: 300px !important;
  margin: 0 !important;
  padding: 22px 0 64px !important;
  border-top: 1px solid #dbe4f1 !important;
  background: #fff !important;
  color: #53647e !important;
}

html body .site-footer .footer-grid {
  display: grid !important;
  width: min(1180px, calc(100% - 64px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  align-items: start !important;
  gap: 28px !important;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr)) !important;
}

html body .site-footer .footer-grid.footer-grid--with-contact {
  grid-template-columns: minmax(250px, 1.28fr) repeat(3, minmax(120px, .76fr)) minmax(220px, 1fr) !important;
}

html body .site-footer .footer-grid > div,
html body .site-footer .footer-contact { min-width: 0 !important; }

html body .site-footer .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #0b2148 !important;
  text-decoration: none !important;
}

html body .site-footer .brand-mark {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border: 0 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

html body .site-footer .brand-name,
html body .site-footer h3,
html body .site-footer .footer-contact strong { color: #0b2148 !important; }

html body .site-footer .brand-name {
  font-size: 14px !important;
  font-weight: 700 !important;
}

html body .site-footer .footer-custom-copy,
html body .site-footer p,
html body .site-footer .footer-links a {
  color: #53647e !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

html body .site-footer .footer-grid > div:first-child > .footer-custom-copy {
  max-width: 210px !important;
  margin: 9px 0 0 !important;
}

html body .site-footer h3 {
  margin: 0 0 9px !important;
  font: 800 10px/1.3 Manrope, Arial, sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body .site-footer .footer-links {
  display: grid !important;
  gap: 5px !important;
}

html body .site-footer .footer-links a,
html body .site-footer .footer-contact a { text-decoration: none !important; }

html body .site-footer .footer-links a:hover,
html body .site-footer .footer-links a:focus-visible,
html body .site-footer .footer-contact a:hover,
html body .site-footer .footer-contact a:focus-visible {
  color: #145cf2 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html body .site-footer .footer-contact {
  display: grid !important;
  grid-column: auto !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #53647e !important;
  font-style: normal !important;
}

html body .site-footer .footer-contact h3 { margin-bottom: 0 !important; }
html body .site-footer .footer-contact strong,
html body .site-footer .footer-contact span,
html body .site-footer .footer-contact a {
  color: #53647e !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

/* One full-width navy legal strip, matching the approved homepage master. */
html body .site-footer .site-research-notice {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  height: 64px !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 43px !important;
  align-items: center !important;
  gap: 0 !important;
  grid-template-columns: 150px minmax(0, 1fr) 150px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #061633 !important;
  box-shadow: none !important;
  clip-path: none !important;
  color: #fff !important;
}

html body .site-footer .site-research-notice strong {
  grid-column: 1 !important;
  color: #fff !important;
  font: 800 9px/1.35 Manrope, Arial, sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body .site-footer .site-research-notice .footer-custom-copy {
  grid-column: 2 !important;
  margin: 0 !important;
  color: rgba(255,255,255,.76) !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

html body .site-footer .footer-bottom {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: 64px !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 43px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  border: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

html body .site-footer .footer-bottom > span:first-child {
  order: 2 !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}

/* Retain the configured copy in the DOM but match the homepage, where the
 * legal strip carries only the research notice and copyright. */
html body .site-footer .footer-bottom > span:last-child { display: none !important; }

@media (max-width: 980px) and (min-width: 760px) {
  html body .site-footer .footer-grid.footer-grid--with-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html body .site-footer .footer-grid--with-contact > div:first-child { grid-column: 1 / -1 !important; }
  html body .site-footer .footer-grid--with-contact .footer-contact { grid-column: span 2 !important; }
}

@media (max-width: 759px) {
  html body .site-footer {
    min-height: 400px !important;
    padding: 40px 0 72px !important;
  }

  html body .site-footer .footer-grid,
  html body .site-footer .footer-grid.footer-grid--with-contact {
    width: calc(100% - 32px) !important;
    max-width: 560px !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  html body .site-footer .footer-grid > div:first-child,
  html body .site-footer .footer-grid--with-contact .footer-contact { grid-column: 1 / -1 !important; }

  html body .site-footer .site-research-notice {
    height: 72px !important;
    min-height: 72px !important;
    padding: 8px 16px !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  html body .site-footer .site-research-notice strong,
  html body .site-footer .site-research-notice .footer-custom-copy { grid-column: 1 !important; }

  html body .site-footer .footer-bottom {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 16px !important;
    align-items: flex-end !important;
    padding-bottom: 9px !important;
  }

  html body .site-footer .footer-bottom > span:first-child { font-size: 9px !important; }
}
