/* stylelint-disable scss/operator-no-unspaced */
/* stylelint-enable scss/operator-no-unspaced */
/**
 * Fact and figures
 * @define fact-figures
 */
/* Breakpoint viewport sizes and media queries.

Breakpoints are defined as a map of (name: minimum width), order from small to large:
   (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)

 The map defined in the `$breakpoint` global variable is used as the `$breakpoints` argument by default.

 Name of the next breakpoint, or null for the last breakpoint.

  >> breakpoint-next(sm)
   md
  >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
   md
  >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
   md
*/
/* Minimum breakpoint width. Null for the smallest (first) breakpoint.
    >> ecl-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
    576px
*/
/* Maximum breakpoint width. Null for the largest (last) breakpoint.
   The maximum value is calculated as the minimum of the next one less 0.1.

   >> ecl-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
   767px
*/
/* Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
    Useful for making responsive utilities.

    >> infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
    ""  (Returns a blank string)
    >> infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
    "-sm"
*/
.ecl-fact-figures {
  background-color: #f2f5f9;
  border: 1px solid #bfd0e4;
  border-radius: 0;
  margin: 0;
  padding: 1rem;
}

.ecl-fact-figures__item {
  color: #404040;
  font: normal normal 400 1rem/1.25rem arial, sans-serif;
  margin-top: 2rem;
}
.ecl-fact-figures__item:first-of-type {
  margin-top: 0;
}

.ecl-fact-figures__icon {
  color: #004494;
  margin-bottom: 0.5rem;
}

.ecl-fact-figures__value {
  font: normal normal 400 1.75rem/2rem arial, sans-serif;
  font-weight: 700;
}

.ecl-fact-figures__title {
  font: normal normal 400 1.125rem/1.75rem arial, sans-serif;
  font-weight: 700;
  margin-top: 0.5rem;
}

.ecl-fact-figures__description {
  font: normal normal 400 1rem/1.5rem arial, sans-serif;
  margin-top: 0.5rem;
}

.ecl-fact-figures__view-all {
  border-top: 1px solid #bfd0e4;
  font: normal normal 400 1rem/1.5rem arial, sans-serif;
  margin-top: 2rem;
  padding-top: 1rem;
}

/* stylelint-disable-next-line order/order */
@media (min-width: 996px) {
  .ecl-fact-figures {
    padding: 2rem;
  }
  .ecl-fact-figures__items {
    display: grid;
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
  }
  .ecl-fact-figures--col-2 .ecl-fact-figures__items {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecl-fact-figures--col-3 .ecl-fact-figures__items {
    grid-template-columns: repeat(3, 1fr);
  }
  .ecl-fact-figures--col-4 .ecl-fact-figures__items {
    grid-template-columns: repeat(4, 1fr);
  }
  .ecl-fact-figures__item {
    margin-top: 0;
    max-width: 80ch;
  }
  .ecl-fact-figures__value {
    font: normal normal 400 2rem/2.5rem arial, sans-serif;
    font-weight: 700;
  }
  .ecl-fact-figures__view-all {
    padding-top: 2rem;
  }
}