/*
  @file
  CSS for controlling page shape and size

  @see https://smacss.com/book/type-layout/
 */

.grid-container {
  width: 100%;
  max-width: 1388px;
  margin-left: auto;
  margin-right: auto;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

.region-header {
  display: flex;
  flex-flow: row nowrap;
}

/**
 Display Suite Regions
 */
.ds-region-abovecontent {
  padding-bottom: 0.5rem;
}

.ds-region-highlight {
  font-family: "Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--body-text-color);
  margin: 2.5rem 0;
  background-image: linear-gradient(to right,white,#f7f7f3,white);
  padding: 0.75rem;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: #e6e6e6;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}

.ds-region-content {
  padding: 3rem 0 1.5rem 0;
  display: flex;
  flex-flow: row nowrap;
  line-height: 1.5rem;
}

/* We need some components to expand full width */
/* Replaces overflow: hidden with min-width: 0 */
.ds-region-middle {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  /* Offset to allow for focus outline visibility; prevent clipping from overflow properties */
  .paragraph--type--text {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .field--name-field-cards > .field__item {
    margin-left: -0.25rem;
    padding-left: 0.25rem;
  }
}

.ds-region-left {
  padding-right: 1.5rem;
  flex: 0 0 25%;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  line-height: 1.5rem;

  /* Offset to allow for focus outline visibility; prevent clipping from overflow properties */
  + main {
    .field--name-body,
    .paragraph--type--text,
    .paragraph--type--card-group,
    .views-element-container {
      padding-left: 0.5rem;
    }

    .text-align-right a[href="#top"] {
      margin-right: 0.25rem;
    }
  }
}

.ds-region-right {
  padding-left: 2rem;
  flex: 0 0 25%;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  line-height: 1.5rem;
}
/* end ds regions */

/***
  Mobile styles
***/
@media all and (max-width: 64em) {
  /* Display Suite Regions */
  .ds-region-content {
      flex-flow: column nowrap;
      padding-left: 1rem;
      padding-right: 1rem;
  }

  .ds-region-highlight {
      margin-left: 0;
      margin-right: 0;
  }

  .ds-region-left {
      padding-right: 0;
  }

  .ds-region-right {
      padding-left: 0;
  }
  /* end ds regions */
}
/* end desktop styles*/
