/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/2815083
 * @preserve
 */

/**
 * @file
 * Cards list.
 */

:root {
  /*
   * Color Palette.
   */
  /* Secondary. */
  /* Variations. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 10% darker than base. */ /* 20% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */ /* 5% darker than base. */ /* 10% darker than base. */
  /*
   * Base.
   */
  /*
   * Typography.
   */ /* 1rem = 16px if font root is 100% ands browser defaults are used. */ /* ~32px */ /* ~29px */ /* ~26px */ /* ~23px */ /* ~20px */ /* 18px */ /* ~14px */ /* ~13px */ /* ~11px */
  /**
   * Spaces.
   */ /* 3 * 16px = 48px */ /* 1.5 * 16px = 24px */ /* 1 * 16px = 16px */ /* 0.75 * 16px = 12px */ /* 0.5 * 16px = 8px */
  /*
   * Common.
   */
  /*
   * Inputs.
   */ /* Absolute zero with opacity. */ /* Davy's grey with 0.6 opacity. */ /* Light gray with 0.3 opacity on white bg. */ /* Old silver with 0.5 opacity on white bg. */ /* (1/8)em ~ 2px */ /* (1/16)em ~ 1px */ /* Font size is too big to use 1rem for extrasmall line-height */ /* 7px inside the form element label. */ /* 8px with the checkbox width of 19px */
  /*
   * Details.
   */
  /**
   * Buttons.
   */
  /**
   * jQuery.UI dropdown.
   */ /* Light gray with 0.8 opacity. */ /* Text color with 0.1 opacity. */
  /**
   * Progress bar.
   */
  /**
   * Tabledrag icon size.
   */ /* 17px */
  /**
   * Ajax progress.
   */
  /**
   * Breadcrumb.
   */
}

:root {
  /* Using 100% as base causes issues in IE11. */
}

.card-list {
  display: flex;
  flex-direction: column;
}

.card-list--two-cols,
.card-list--four-cols {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}

.card-list__item {
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.card-list--two-cols .card-list__item,
.card-list--four-cols .card-list__item {
  flex-basis: 100%;
}

/* 36.75rem theme screenshot width */

@media screen and (min-width: 36.75rem) {
  .card-list--four-cols .card-list__item {
    flex-basis: calc((99.9% + 1rem)/2 - 1rem);
    max-width: calc((99.9% + 1rem)/2 - 1rem);
  }

  .card-list--four-cols .card-list__item {
    margin-right: 1rem;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item {
    margin-right: 0;
    margin-left: 1rem;
  }

  .card-list--four-cols .card-list__item:nth-child(even) {
    margin-right: 0;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item:nth-child(even) {
    margin-right: 0;
    margin-left: 0;
  }
}

/* 53.75rem it is width of screenshot image + toolbar width(15rem) + 2rem of margins. */

@media screen and (max-width: 53.75rem) {
  .toolbar-tray-open.toolbar-vertical.toolbar-fixed .card-list--four-cols .card-list__item {
    flex-basis: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media screen and (min-width: 70rem) {
  .card-list--four-cols .card-list__item {
    flex-basis: calc((99.9% + 1rem)/3 - 1rem);
    max-width: calc((99.9% + 1rem)/3 - 1rem);
  }

  .card-list--four-cols .card-list__item:nth-child(even) {
    margin-right: 1rem;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item:nth-child(even) {
    margin-right: 0;
    margin-left: 1rem;
  }

  .card-list--four-cols .card-list__item:nth-child(3n) {
    margin-right: 0;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item:nth-child(3n) {
    margin-right: 0;
    margin-left: 0;
  }
}

@media screen and (min-width: 85.375rem) {
  .card-list--two-cols .card-list__item {
    flex-basis: calc((99.9% + 1rem)/2 - 1rem);
    max-width: calc((99.9% + 1rem)/2 - 1rem);
    margin-right: 1rem;
  }
  [dir="rtl"] .card-list--two-cols .card-list__item {
    margin-right: 0;
    margin-left: 1rem;
  }

  .card-list--two-cols .card-list__item:nth-child(even) {
    margin-right: 0;
  }
  [dir="rtl"] .card-list--two-cols .card-list__item:nth-child(even) {
    margin-right: 0;
    margin-left: 0;
  }

  .card-list--four-cols .card-list__item {
    flex-basis: calc((99.9% + 1rem)/4 - 1rem);
    max-width: calc((99.9% + 1rem)/4 - 1rem);
  }

  .card-list--four-cols .card-list__item:nth-child(even) {
    margin-right: 1rem;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item:nth-child(even) {
    margin-right: 0;
    margin-left: 1rem;
  }

  .card-list--four-cols .card-list__item:nth-child(3n) {
    margin-right: 1rem;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item:nth-child(3n) {
    margin-right: 0;
    margin-left: 1rem;
  }

  .card-list--four-cols .card-list__item:nth-child(4n) {
    margin-right: 0;
  }
  [dir="rtl"] .card-list--four-cols .card-list__item:nth-child(4n) {
    margin-right: 0;
    margin-left: 0;
  }
}
