/* Keep the closing statement on the page centre, independent of side content. */
body .nx-footer .nx-footer-top.as-footer-centered,
body .se-footer .se-footer-top.as-footer-centered {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

body .nx-footer .nx-footer-top.as-footer-centered > .as-brand-word {
  justify-self: start;
  width: auto;
}

body .nx-footer .nx-footer-top.as-footer-centered > .as-footer-tagline,
body .se-footer .se-footer-top.as-footer-centered > .as-footer-tagline {
  grid-column: 2;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  text-align: center;
}

body .as-footer-centered > .as-footer-tagline > * {
  display: block;
}

body .nx-footer .nx-footer-top.as-footer-centered > .nx-link,
body .se-footer .se-footer-top.as-footer-centered > a {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 800px) {
  body .nx-footer .nx-footer-top.as-footer-centered,
  body .se-footer .se-footer-top.as-footer-centered {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  body .nx-footer .nx-footer-top.as-footer-centered > .as-brand-word,
  body .nx-footer .nx-footer-top.as-footer-centered > .as-footer-tagline,
  body .se-footer .se-footer-top.as-footer-centered > .as-footer-tagline,
  body .nx-footer .nx-footer-top.as-footer-centered > .nx-link,
  body .se-footer .se-footer-top.as-footer-centered > a {
    grid-column: 1;
    justify-self: center;
  }
}
