/*
 * @file
 * Provides the layout styles.
 */
.layout + .layout {
  margin-top: 40px;
}

.layout--bg-fill {
  padding: 40px 0;
}

.layout--bg-fill + .layout--bg-fill {
  margin-top: 0;
}

.layout__container {
  margin: 0 auto;
}

.layout--constrained > .layout__container {
  max-width: 1250px;
}

.layout--constrained-standard > .layout__container {
  max-width: var(--site-max-width);
}

.layout-builder__region {
  padding-block: var(--spacer-2);
}

.layout .layout__column {
  margin-bottom: 32px;
}

.layout--twocol-section .layout__column,
.layout--threecol-section .layout__column,
.layout--fourcol-section .layout__column {
  display: flex;
  flex-wrap: wrap;
}

/*
 Ensure child blocks in layout columns extend
 full width of column.
*/
.layout--onecol-section .layout__column > *,
.layout--twocol-section .layout__column > *,
.layout--threecol-section .layout__column > *,
.layout--fourcol-section .layout__column  > * {
  width: 100%;
}

/*
 Ensure multiple blocks in a single 1/2/3/4-column
 layout have adequate spacing between them, but only
 if preceeding block is not aria-hidden.
 */
.layout--onecol-section .layout__column > *:not([aria-hidden]) + *,
.layout--twocol-section .layout__column > *:not([aria-hidden]) + *,
.layout--threecol-section .layout__column > *:not([aria-hidden]) + *,
.layout--fourcol-section .layout__column  > *:not([aria-hidden]) + * {
  margin-top: 24px;
}

.layout .layout__column:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .layout--twocol-section .layout__column {
    margin-bottom: 0;
  }

  .layout--fourcol-section .layout__column:nth-child(-n+2) {
    margin-bottom: 32px;
  }

  .layout--fourcol-section .layout__column:nth-child(n+3) {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .layout--threecol-section .layout__column,
  .layout--fourcol-section .layout__column:nth-child(-n+2) {
    margin-bottom: 0;
  }
}

/*
 * Background colors applied to sections.
 */
.layout--light-blue {
  background-color: #E8F1FF;
}

.layout--faint-blue {
  background-color: #ECF4FA;
}

.layout--gray-lightest {
  background-color: var(--color-gray-lightest);
}

/* Section titles. */
.layout__section-title {
  align-items: center;
  display: flex;
  margin-bottom: var(--spacer-3);
}

.layout__section-title--center {
  justify-content: center;
}

.layout__section-title-heading {
  line-height: var(--font-line-height-heading);
  margin: 0;
}

.layout__section-title-icon {
  color: var(--color-secondary);
  font-size: var(--font-size-2xl);
  margin-right: var(--spacer-2);
}

/* Tabset tabs placeholder */
.layout__tabset-tabs-placeholder {
  flex: 1 0 100%;
}
