body.docs .content {
  margin: 0 auto 0 auto;
  max-width: 100%;
}

body.docs .header-block {
  @include span(4);
  background-size: cover;
  position: relative;
  background-color: $dark-gray;


  h2 {
    font-weight: 300;
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-left: gutter();
    margin-right: gutter();
    padding-top: 150px;
    padding-bottom: 3rem;

    @include breakpoint($break-tablet) {
      font-size: 2.369rem;
    }

    em {
      font-weight: 400;
    }
  }
}

body.docs .overview-section {
  @include container;
  @include break;

  padding-top: 0.5em;

  .docs-header-navigation-container > h2 {
    text-align: center;
  }

  @include breakpoint($break-tablet) {
    @include container(14 of 16);
    margin: 0 span(1 of 16);
    max-width: $max-width;
  }

  @include breakpoint($max-width) {
    margin: 0 auto;
  }

  .docs-header-navigation {
    border-bottom: none;
  }
}

.docs-content {
  @include container;
  padding-top: 4 * $base-line-height;

  @include breakpoint($break-tablet) {
    @include container(14 of 16);
    margin: 0 span(1 of 16);
    max-width: $max-width;
  }

  @include breakpoint($max-width) {
    margin-left: auto;
    margin-right: auto;
  }
}

.search-results {
  @include container;
  @include break;
  margin: gutter();

  @include breakpoint($break-tablet) {
    @include container(12 of 16);
    margin: 0 span(2 of 16);
  }

  h4 a {
    color: $dark-gray;
    transition: color 0.2s ease-in-out;

    &:hover {
      color: $blue;
    }
  }

  em {
    border: 1px solid $lighter-gray;
    border-radius: 2px;
    padding: 0 .3em;
    background: $very-light-blue;
    font-weight: 400
  }

  .st-page {
    .st-prev {

    }
    .st-next {
      float: right;
    }
  }
}

.docs-body {
  @include span(4);
  overflow-wrap: break-word;

  @include breakpoint($break-tablet) {
    @include span(8 of 16);
    margin-left: span(5 of 16);
  }

  img {
    float: right;
    margin: $base-line-height 0;

    background-image: url('/img/assets/docs-image-frame.png');
    padding: 96px 0 0 76px;
    border-radius: 2px;
    max-height: 700px;
    width: span(8 of 8);
    object-fit: cover;
    object-position: top;

    @include breakpoint($break-tablet) {
      margin-top: 2 * $base-line-height;
      margin-bottom: 2 * $base-line-height;
      margin-right: - span(3 of 8);
      width: span(11 of 8);
      max-width: none;
    }

    &.simple {
      background: none;
      padding: 0;
      width: auto;
      margin: 1.5rem auto;
      float: none;
      text-align: center;
      display: inherit;
      border: 1px solid $light-gray;
      @include breakpoint($break-tablet) {
        max-width: 137.5%;
      }
    }
  }

  ul, ol {
    list-style: disc outside none;
    padding-left: 20px;
    margin-bottom: $base-line-height;
  }

  hr {
    position: relative;
    margin: 1rem 0;
    border-color: $medium-gray;
  }

  h2 {
    font-size: 1.777rem;
  }

  h3 {
    font-size: 1.333rem;
  }

  h4 {
    font-size: 1rem;
  }

  a {
    @include linkUnderlines(white, $base-font-color);
  }
}

body.docs .index-header-block {
  @include span(4);
  position: relative;

  h2 {
    font-weight: 300;
    font-size: 2rem;
    text-align: center;
    margin-left: gutter();
    margin-right: gutter();
    padding-top: 58px;
    padding-bottom: 1rem;

    @include breakpoint($break-tablet) {
      font-size: 2.369rem;
    }

    em {
      font-weight: 400;
    }
  }
}

body.docs .page-header-block {
  @include span(4);
  position: relative;
  .search-container {
    padding: 6rem 0 0 0;;
  }
}

.search-container {
  @include container;
  @include break;

  padding: 0 0 0rem 0;

  .st-search-input {
    width: span(14 of 16);
    margin: 0 span(1 of 16);

    height: 2rem;
    font-size: $base-font-size;
    line-height: $base-line-height;
    border-radius: 25px;
    border: 1px solid $light-gray;
    padding-left: 70px;
    box-shadow: none;
    color: $dark-gray;
    font-family: $base-font-family;
    background: url('/img/assets/docs-navigation/search.svg') no-repeat left center;
    background-color: white;
    background-size: 24px;
    background-position: 25px;
    font-weight: 400;

    @include breakpoint($break-tablet) {
      width: span(8 of 16);
      margin: 0 span(4 of 16);
    }

    &::placeholder {
      font-family: $base-font-family;
      color: $light-gray;
      font-weight: 300;
    }
  }
}

body.docs .section {
  @include container;
  @include break;

  width: span(12 of 16);
  margin: 0 span(2 of 16);
  float: inherit;
  max-width: $max-width;

  @include breakpoint($max-width) {
    margin-left: auto;
    margin-right: auto;
  }
}

body.docs .section-block-row-three {
  @include container;
  @include break;

  .section-block {
    @include container;
    margin-top: 0;
    margin-bottom: 18px;
    text-overflow: clip;
    margin-right: span(1 of 50);
    font-size: 16px;

    h3 {
      font-size: 18px;
    }

    ul {
      list-style: inherit;
      a:hover {
        color: $light-blue;
      }
    }

    li {
      margin-left: 7px;
      margin-bottom: 6px;
      padding-left: 23px;
      line-height: 19px;
      list-style-type: none;
      background: url('/img/docs/dot-icon-16x16.png') no-repeat left center;
    }

    @include breakpoint($break-tablet) {
      width: span(16 of 50);
      float: left;
    }

    &:last-of-type {
      @include breakpoint($break-tablet) {
        margin-right: 0;
      }
    }

    .link-collapse {
      margin-left: -25px;
      margin-right: 0px;
      font-size: 22px;
      color: $light-blue;
      background: none;
    }

    .link-collapse.collapsed:before {
      content: "\25B8";
    }

    .link-collapse:before {
      content: "\25BE";
    }

    .bullet-collapse {
      li.item-collapse {
        list-style: none;
        margin-left: 0;
        padding-left: 32px;
        background: none;
      }
    }

    ul.items-list {
      margin-left: -16px;
      margin-top: 10px;

      li {
        margin-left: 8px;
      }
    }

    li.ob, ul.items-list li.ob {
      list-style: none;
      margin-left: 0;
      background: none;

      .video-icon {
        display: inline-block;
        width: 19px;
        height: 16px;
        background: url('/img/docs/video-icon-16x16.png') no-repeat left center;
        vertical-align: middle;
        margin-left: -25px;
        margin-right: 2px;
      }
    }

    ul.items-list li.ob {
      padding-left: 32px;
    }

    li.ob {
      padding-left: 30px;
    }
  }
}

body.docs .section.buttons .section-block-row-three {
  @include container;
  @include break;
  border-bottom: 1px solid black;

  @include breakpoint($break-tablet) {
    margin-bottom: 32px;
  }

  .section-block {
    @include container;
    margin-top: 0;
    margin-bottom: 1rem;

    @include breakpoint($break-tablet) {
      width: span(12 of 50);
      text-align: center;
      margin-bottom: -1px;
      border-left: 1px solid #a8b2c4;
      border-top: 1px solid #a8b2c4;
      border-right: 1px solid #a8b2c4;
      border-bottom: 1px solid black;

      &:first-of-type {
        margin-left: span(6 of 50);
        margin-right: span(1 of 50);
      }

      &:last-of-type {
        margin-left: span(1 of 50);
      }
    }

    a {
      display: block;
      padding: 9px 0;
    }
  }

  .section-block.selected {
    @include breakpoint($break-tablet) {
      border: 1px solid black;
      border-bottom: 1px solid #FFF;
    }
  }
}

body.docs .docs-content .section.buttons .section-block-row-three {
  margin-bottom: 18px;
}

body.docs .review {
  background-color: red;
}

body.docs .crumbs {
  margin: 0 gutter();
  font-size: 90%;

  @include breakpoint($max-width) {
    margin: 0 0 2rem 0;
  }
}
