/**
 * MPISD - Default Module Block
 * blocks/default-module/style.css
 * Centred heading, body and CTA; --left left-aligns, --full drops the 1000px cap.
 */

.mpisd-default-module__head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.mpisd-default-module__title {
  color: var(--color-black);
  margin-bottom: 10px;
}

.mpisd-bg-dark .mpisd-default-module__title {
  color: var(--color-white);
}

.mpisd-default-module__body {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* A list in centred copy sits centred with left-aligned items. */
.mpisd-default-module .mpisd-default-module__body.mpisd-prose ul,
.mpisd-default-module .mpisd-default-module__body.mpisd-prose ol {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.mpisd-default-module__body > :last-child {
  margin-bottom: 0;
}

.mpisd-default-module__action {
  text-align: center;
  margin-top: var(--space-xl);
}

/* Left-aligned: heading, text and CTA start at the container edge */
.mpisd-default-module--left .mpisd-default-module__head,
.mpisd-default-module--left .mpisd-default-module__body,
.mpisd-default-module--left .mpisd-default-module__action {
  text-align: left;
}

.mpisd-default-module--left .mpisd-default-module__body {
  max-width: none;
}

/* Full width: the text runs the whole container instead of stopping at 1000px; it stays centred */
.mpisd-default-module--full .mpisd-default-module__body {
  max-width: none;
}

.mpisd-default-module--left .mpisd-default-module__body.mpisd-prose ul,
.mpisd-default-module--left .mpisd-default-module__body.mpisd-prose ol {
  margin-left: 0;
}

/* Heading only: flow-root keeps the heading gap inside the section. */
.mpisd-default-module.mpisd-default-module--title-only {
  display: flow-root;
  padding-bottom: 0;
}

@media (min-width: 1200px) {
  .mpisd-default-module__head {
    margin-bottom: var(--space-50);
  }

  .mpisd-default-module__action {
    margin-top: var(--space-50);
  }
}
