@import "settings.breakpoints";
@import "settings.colors";

@import "mixins/settings.fonts";
@import "mixins/tools.mixins";

@import "./components.static-headings";

// Lists
// -----

.c-static-page__ul {
  list-style: disc outside;
}
.c-static-page__ol {
  list-style: decimal outside;
}
.c-static-page__li {
  padding-bottom: rem(10);
}
.c-static-page__dt {
  @include font-pratt-bold;
}
.c-static-page__dd {
  margin-left: rem(0);
  padding-bottom: rem(10);
}

// Tables
// -----

.c-static-page__table {
  width: 100%;
  text-align: top;
}
.c-static-page__td {
  padding: rem(10);
  vertical-align: top;
  text-align: left;
}
.c-static-page__th {
  @include font-pratt-bold;
  color: $color-grey-900;
  padding: rem(10);
  vertical-align: top;
  text-align: left;
}

// Links
// -----

.c-static-page__link {
  color: $color-grey-900;
  text-decoration: none;
  border-bottom: 1px solid $color-grey-900;
  &:hover {
    color: $color-red-500;
    border-bottom: 1px solid $color-red-500;
  }
  &:focus {
    color: $color-red-bright;
    border-bottom: 1px solid $color-red-bright;
  }
}

// Floated icons
// Container
.c-static-page__text--icon {
  overflow: hidden;
}
// SVG icon
.c-static-page__text__icon {
  float: left;
  margin-right: rem(20);
  margin-bottom: rem(20);
}

.c-static-page__text__icon--online-tools {
  width: rem(41);
  height: rem(33);
  @include mq($from: mobileWide) {
    width: rem(80);
    height: rem(65);
  }
}



/**********
The following are new classes made by the UX team to acommodate elements on Static Pages
Reference: http://jira.theglobeandmail.com/browse/ARC-2802
**********/

// Headings
.c-static-page__microheading {
  @include font-gm-sans-bold;
  font-size: rem(12);
  line-height: rem(12);
  letter-spacing: rem(1);
  text-transform: uppercase;
  padding-top: rem(5);
  color: $color-grey-900;
}

.c-static-page__micromicroheading {
  @extend .c-static-page__microheading;
  text-transform: none;
}

// About Authors
.c-about-authors {
  padding: rem(15) 0;
  &.in-test {
    display: block;
  }
}

.c-about-authors__heading {
  @include font-gm-sans;
  font-weight: normal;
  font-style: normal;
}

.c-about-author__more-link {
  @include font-gm-sans;
  text-transform: uppercase;
  letter-spacing: rem(1);
  text-decoration: none;
  color: $color-grey-660;
  font-size: rem(12);
}

.c-about-author__more-link:hover {
  text-decoration: underline;
}

.c-about-author__image {
  width: rem(90);
  min-width: rem(90);
  margin-right: rem(10);
  margin-bottom: rem(10);
  text-align: center;
  @include mq($from: tabletMedium) {
    width: rem(200);
    min-width: rem(200);
  }
}


.c-about-author__image-link .c-image {
  width: auto;
  height: auto;
  max-width: rem(90);
  display: inline-block;
  @include mq($from: tabletMedium) {
    max-width: rem(200);
  }
}

.c-about-authors__item {
  padding: rem(15) 0;
  border-bottom: rem(1) solid $color-stone-200;
}

.c-about-authors-top-row {
  display: flex;
}

// TODO: The following CSS should be wrapped in some kind of selector because
// it's conflicting with the .c-byline rules defined in _components.byline.scss
.c-byline {
  font-family: $font-sans-stack;
  font-style: normal;
  font-weight: 700;
  font-size: rem(12);
  color: $color-grey-900;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: rem(1);
  display: inline-block;
}

.c-byline--link {
  text-decoration: none;
}

.c-about-author__meta-byline {
  line-height: rem(14);
}

.c-about-author__meta-byline .c-byline {
  font-size: rem(14);
  line-height: 1;
}

.c-about-author__meta-byline .c-byline .c-byline__icon {
  width: rem(9);
  height: rem(9);
  margin-left: rem(1.5);
}

.c-byline__icon {
  fill: $color-red-500;
  display: inline-block;
}


.c-about-author__meta {
  display: flex;
  flex-direction: column;
}

.c-about-author__meta-role {
  @include font-gm-sans-bold;
  font-weight: normal;
  font-style: normal;
  color: $color-grey-660;
  font-size: rem(12);
  line-height: line-height(12, 12);
  margin-top: rem(4);
  letter-spacing: rem(0.8);
  text-transform: uppercase;
  &.filled::after {
    content: " at the Globe and Mail";
  }
}


.c-about-author__meta-description p {
  @include font-gm-sans;
  font-weight: normal;
  font-style: normal;
  font-size: rem(14);
  line-height: line-height(14, 17);
  margin-top: rem(8);
  color: $color-grey-660;
}

.c-about-author__more-link .c-byline__icon {
  width: rem(8);
  height: rem(8);
  margin-left: 0;
}

.c-follow-authors {
  padding: 0;
  border: 0;
}

// TODO: The following CSS should be wrapped in some kind of selector because
// it's conflicting with the .c-follow-authors__message rules defined in
// _components.follow-authors.scss
.c-follow-authors__message {
  display: none;
}

.c-follow-authors__link {
  @include font-gm-sans-bold;
  font-weight: normal;
  font-style: normal;
  font-size: rem(12);
  letter-spacing: rem(1);
  line-height: line-height(12, 12);
  text-decoration: none;
  padding-right: rem(24);
  color: $color-grey-660;
}

.c-follow-authors__links {
  text-transform: uppercase;
  display: block;
}
