/*
* Typographic Styles
*
* Material Design Typographic Styles
*/

body {
  font-family: $brand-font;
  font-size: 14px;
  color: #1a2326;
  &.ng-cloak {
    display: none;
  }
}

// NOTE: (ericjim) the new api docs use material design blue 600 links in this fashion.
a {
  color: #1E88E5;
  text-decoration: none;

  &:hover {
    text-decoration-color: #1E88E5;
    text-decoration: underline;
  }
}

code {
  background: $lightgrey;
  border-radius: 2px;
  font-family: $mono-font;
  color: $darkgrey;
  padding: 0px 4px;
  font-size: 90%;
}

.location-badge {
  position: absolute;
  bottom: 0;
  right: $unit * 3;
  padding: $unit;
  z-index: $layer-1;
  font-size: 12px !important;
}


.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}


.text-display-4 {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 112px;
  font-weight: 300;
  opacity: .54;
  line-height: 118px;
}

.text-display-3 {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 56px;
  font-weight: 400;
  opacity: .54;
  line-height: 118px;
}

.text-display-2,
.docs-content h1 {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 45px;
  font-weight: 400;
  opacity: .54;
  line-height: 48px;
}

.text-display-1,
.docs-content h2 {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 34px;
  font-weight: 400;
  opacity: .87;
  line-height: 40px;
}

.text-headline,
.docs-content h3 {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 24px;
  font-weight: 450;
  opacity: .87;
  line-height: 32px;
}

.text-title,
.docs-content h4 {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 20px;
  font-weight: 500;
  opacity: .87;
  line-height: 32px;
}

.docs-content {
  h1 {
    font-size: 24px;
    opacity: 0.87;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }
  h4 {
    font-size: 16px;
  }
}

table th,
.text-subhead,
.text-body,
.docs-content p,
.docs-content ul,
.docs-content ol {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 16px;
  font-weight: 400;
  opacity: .87;
  line-height: 28px;
  padding: 0;

  &.is-plain {
    list-style-type: none;
    padding: 0px;
  }
}

.docs-content ul,
.docs-content ol {
  padding-left: ($unit * 4);
}

.l-sub-section p,
table td {
  font-size: 14px;
  font-weight: 400;
  opacity: .87;
  line-height: 24px;
}

.text-caption {
  margin: 0px 0px ($unit * 2) 0px;
  font-size: 12px;
  font-weight: 400;
  opacity: .54;
  line-height: 20px;
}

.text-aside,
.docs-content aside {
  @extend .text-caption;
  box-shadow: 0px 2px 5px rgba($coal, 0.3);
  font-weight: 400;
  font-size: 13px;
  opacity: .54;
  line-height: 24px;
  background: $mist;
  border-radius: 2px;
  padding: $unit * 3;
  margin-bottom: $unit * 2;
  width: $unit * 30;

  .l-sub-section & {
    background: $fog;
  }

  &.is-right {
    float: right;
    margin-left: $unit * 2;
  }

  &.is-left {
    float: left;
    margin-right: $unit * 2;
  }
}

.l-sub-section .text-aside,
.docs-content .l-sub-section  aside {
  background: $snow;
}

.docs-content .l-sub-section {
  padding: ($unit * 2) ($unit * 3);
  h3 {
    line-height: 1em;
  }
  pre:last-child {
    margin-bottom: 0;
  }
}
.docs-content .card-row {
  max-width: 1000px;
  > div > .card {
    margin: $unit ($unit * 3);
  }
  > div:first-child > .card {
    margin-left: 0;
  }
  > div:last-child > .card {
    margin-right: 0;
  }
}
@media handheld and (max-width: 480px), screen and (max-device-width: 480px), screen and (max-width: 600px) {
  .docs-content .card-row {
    &[layout="row"] {
      -webkit-flex-direction: column;
      -ms-flex-direction: column;
      flex-direction: column;
      & > div {
        & > .card {
          margin-left: 0;
          margin-right: 0;
        }
      }
    }
  }
}