/**
 * MPISD - Section Title Block
 * blocks/section-title/style.css
 * Heading, underline and subtitle; --left left-aligns, --top-* / --bottom-* set spacing.
 */

/* flow-root keeps the heading's margin inside the section, on its background */
.mpisd-section-title {
  display: flow-root;
}

.mpisd-section-title__head {
  text-align: center;
}

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

.mpisd-bg-dark .mpisd-section-title__title {
  color: var(--color-white);
}

.mpisd-section-title__subtitle {
  max-width: 1000px;
  margin-top: var(--space-lg);
  margin-right: auto;
  margin-left: auto;
}

.mpisd-section-title__subtitle > :last-child {
  margin-bottom: 0;
}

/* Left-aligned: heading and subtitle start at the container edge */
.mpisd-section-title--left .mpisd-section-title__head {
  text-align: left;
}

.mpisd-section-title--left .mpisd-section-title__subtitle {
  max-width: none;
}

/* Space above and below: Standard and Tight match .mpisd-section-spacing and -half */
.mpisd-section-title--top-standard {
  padding-top: var(--space-40);
}

.mpisd-section-title--top-tight {
  padding-top: var(--space-30);
}

.mpisd-section-title--bottom-standard {
  padding-bottom: var(--space-40);
}

.mpisd-section-title--bottom-tight {
  padding-bottom: var(--space-30);
}

@media (min-width: 768px) {
  .mpisd-section-title--top-standard {
    padding-top: var(--space-4xl);
  }

  .mpisd-section-title--top-tight {
    padding-top: var(--space-40);
  }

  .mpisd-section-title--bottom-standard {
    padding-bottom: var(--space-4xl);
  }

  .mpisd-section-title--bottom-tight {
    padding-bottom: var(--space-40);
  }
}
