@import "settings.colors";
@import "settings.fonts";

@import "mixins/components.adv.scss";
@import "mixins/tools.mixins";

.c-adv-banner {
  @include adv-font;
  background-color: $color-blue-steel;
  text-align: center;
  display: block;
  padding: rem(10) 0;
  @include full-width-relative;
}

.c-adv-banner--btyb {
  background-color: $color-white;
  text-transform: none;
  line-height: rem(15);
  letter-spacing: rem(.5);
  border-bottom: 1px solid $color-stone-200;
  padding: rem(5) 0;
  margin-bottom: rem(15);
}

.c-adv-banner__img {
  display: inline-block;
  vertical-align: middle;
}

// ADV article meta
.c-article-meta--adv {
  padding-top: rem(10);
  padding-bottom: 0;
  .c-article-meta__timestamps {
    display: block;
    padding: rem(10) 0;
  }
  .c-article-meta__creditlines {
    display: block;
    padding: 0 0 rem(10) 0;
    font-family: $font-sans-stack;
    border-bottom: 1px solid $color-stone-200;
  }
  .c-creditline,
  .c-byline,
  .c-beat,
  .c-placeline {
    font-family: $font-sans-stack;
  }
  .c-timestamp {
    font-family: $font-sans-stack;
    display: inline-block;
    margin-right: rem(15);
  }
}

// ADV article list
.c-article-list--adv {
  margin-top: rem(34);
  .c-article-list__link {
    display: flex;
    align-items: flex-start;
    font-family: $font-sans-stack;
  }

  .c-label--card .c-label--card__content {
    margin-bottom: rem(6);
  }

  .c-article-list__link-text {
    display: block;
    font-weight: 600;
  }

  .c-article-list__img-wrapper {
    width: rem(70);
    margin-left: rem(10);
  }

  @include mq($from: tablet) {
    .c-article-list__img-wrapper {
      width: rem(120);
    }
  }

  .c-article-list__img {
    width: 100%;
    height: auto;
    display: block;
  }
}

// ADV article body
.c-article-body--adv {
  .c-article-body__text {
    em, i {
      font-family: $font-sans-stack;
      font-style: italic;
      strong, b {
        font-style: italic;
        font-weight: bold;
      }
    }
    strong, b {
      font-family: $font-sans-stack;
      font-weight: bold;
      em, i {
        font-weight: bold;
        font-style: italic;
      }
    }
  }
  .c-article-body__subheading {
    font-weight: bold;
  }

  .c-article-body__text,
  .c-article-body__link,
  .c-article-body__dt,
  .c-article-body__dd,
  .c-article-body__ul,
  .c-article-body__ol,
  .c-article-body__li,
  .c-article-body__subheading,
  .c-article-media__info--adv,
  .c-article-media__label,
  .c-label,
  &.c-article-body p,
  .gi-caption {
    font-family: $font-sans-stack;
  }
}

.o-primary-header--native {
  .c-label,
  .c-read-time {
    font-family: $font-sans-stack;
  }
  .c-label {
    font-weight: bold;
  }
}

.c-article-media__info--adv {
  .c-article-media__caption,
  .c-article-media__credit {
    font-family: $font-sans-stack;
    margin-top: 0;
  }

  .c-article-media__label {
    font-family: $font-sans-stack;
  }
}

.c-adv-subtitle {
  @include font-gm-sans-bold;
  margin-bottom: rem(18);
  color: $color-grey-660;
  font-size: rem(12);
  line-height: line-height(12, 12);
  letter-spacing: rem(1);
  text-transform: uppercase;
}
