.article__tags {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.article__tabs, .article__tablink {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}

.article__body {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.article__tablink:hover::after, .article__tablink:active::after, .article__tablink:focus::after, .article__tablink.focused::after, .article__tablink.is-active::after {
  display: none;
}

.article__header {
  border-radius: 0 0 6px 6px;
}

.article__tablist::-webkit-scrollbar-thumb {
  border-radius: 6px;
}

.article__tablist {
  display: flex;
  display: grid;
  margin: 0 -1.6rem;
  grid-column-gap: .4rem;
  grid-auto-columns: minmax(30rem, 30rem);
  grid-auto-rows: minmax(12rem, 20rem);
  overflow-x: auto;
}

.article__tablist::-webkit-scrollbar-track {
  border: 0;
  background-color: transparent;
}

.article__tablist::-webkit-scrollbar {
  height: 1.5rem;
  background-color: #383ff5;
}

.article__tablist::-webkit-scrollbar-thumb {
  background-color: #d0d1dc;
}

.article__tabitem {
  min-width: 29rem;
  min-height: 11rem;
  margin: 0 .4rem;
  cursor: pointer;
  grid-row: 1;
  -ms-grid-row: 1;
}

.article__tablink {
  height: 100%;
  margin: 0;
  padding: 1rem;
  transition: all .25s;
  border-radius: .3rem .3rem 0 0;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  font-weight: 500;
  line-height: 4.4rem;
  text-align: center;
}

.article__tablink:hover, .article__tablink:active, .article__tablink:focus, .article__tablink.focused, .article__tablink.is-active {
  background-color: white;
  color: #383ff5;
}

.article__tablink[aria-selected='true'] {
  background-color: white;
  color: #383ff5;
}

.article--complex .article__header {
  padding-bottom: 0;
}

.article--complex .article__tags {
  justify-content: center;
  margin-top: 7.6rem;
  margin-bottom: 2.7rem;
}

.article--complex .article__tag {
  background-color: transparent;
  color: white;
  opacity: .6;
}

.article--complex .article__content {
  padding-bottom: 27rem;
}

.article__body {
  width: 100%;
}

.article__left {
  width: 25%;
}

.article__left .js-tablist__link {
  display: inline-block;
  margin-bottom: 2rem;
  transition: all .25s ease-in-out;
  background-color: transparent;
  color: #34353d;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.9rem;
  box-shadow: .5rem 0 transparent, -.5rem 0 transparent;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  cursor: pointer;
}

.article__left .js-tablist__link:hover, .article__left .js-tablist__link:active, .article__left .js-tablist__link:focus, .article__left .js-tablist__link.focused, .article__left .js-tablist__link.is-active {
  background-color: #383ff5;
  color: white;
  box-shadow: 0.5rem 0 #383ff5, -0.5rem 0 #383ff5;
}

.article__left .js-tablist__link[aria-selected='true'] {
  background-color: #383ff5;
  color: white;
  box-shadow: 0.5rem 0 #383ff5, -0.5rem 0 #383ff5;
}

.article__right {
  width: 70%;
}

.sub-article__title {
  width: 100%;
  margin-bottom: 6.6rem;
  padding-bottom: 2.7rem;
  border-bottom: 1px solid #d0d1dc;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 4.4rem;
}

.sub-article__next {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  display: inline-block;
  position: absolute;
  padding: 12rem 0;
  border-top: 1px solid #d0d1dc;
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
}

.sub-article__next:hover, .sub-article__next:active, .sub-article__next:focus, .sub-article__next.focused, .sub-article__next.is-active {
  background-color: rgba(208, 209, 220, 0.2);
  color: #383ff5;
}

.sub-article__next::before {
  display: inline-block;
  width: 5.3rem;
  height: 3rem;
  margin-right: 2rem;
  background: transparent url("../assets/img/arrow-right.svg") no-repeat;
  content: '';
}

@media only screen and (max-width: 768px) {
  .article__right {
    width: 100%;
  }
  .article__left {
    width: 100%;
    margin-bottom: 8.6rem;
  }
  .sub-article__title {
    display: none;
  }
}

@media only screen and (max-width: 425px) {
  .article__tablist {
    grid-column-gap: .9rem;
    grid-auto-columns: minmax(22rem, 22rem);
    grid-auto-rows: minmax(6.7rem, 6.7rem);
  }
  .article__tablink {
    font-size: 1.8rem;
    line-height: 1.8rem;
  }
  .article__header .article__tag {
    font-size: 1.4rem;
  }
  .sub-article__next {
    padding: 5rem 0;
  }
  .sub-article__next::before {
    margin-right: 1rem;
    background-position: center;
    background-size: contain;
  }
  .article__tabitem {
    min-width: 22rem;
    min-height: 6.7rem;
  }
  .article--complex .article__content {
    padding-bottom: 14rem;
  }
}

.article__full {
  background-color: white;
}

.article__header {
  margin-bottom: 5.9rem;
  padding: 7.7rem 2rem 3.3rem;
  background-color: #383ff5;
  color: white;
  text-align: center;
}

.article__title {
  margin-bottom: 3.5rem;
}

.article__subtitle {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 3.4rem;
}

.article__content {
  margin-left: 1rem;
}

.article__tags {
  margin-bottom: 1rem;
}

.article__tag {
  margin-right: 2rem;
  margin-bottom: 1rem;
  padding: 0 1.7rem;
  transition: all .5s ease-in;
  border-radius: 5px;
  background-color: rgba(208, 209, 220, 0.4);
  color: #6e7187;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 3.2rem;
}

.article__cap {
  margin-bottom: 3.9rem;
  border-bottom: 1px solid #d0d1dc;
  font-size: 2.4rem;
  line-height: 3.6rem;
}

.article__cap > img {
  width: calc(100% - 36rem);
  display: block;
  margin: 0 18rem 4rem;
}

.article__cap .text-formatted,
.article__cap .media {
  margin-bottom: 4.58rem;
}

.article .paragraph {
  margin-bottom: 5rem;
}

@media only screen and (max-width: 980px) {
  .article__content {
    margin: 0 5rem;
  }
  .article__cap > img {
    margin: 0 auto 4rem;
    width: 100%;
  }
}

@media only screen and (max-width: 425px) {
  .article__title {
    font-size: 3.2rem;
  }
  .article__subtitle {
    font-size: 1.8rem;
  }
  .article__tag {
    width: 100%;
    margin-right: 0;
    text-align: center;
  }
  .article__cap {
    font-size: 2rem;
    line-height: 3rem;
  }
  .article__content {
    margin: 0 auto;
  }
}
