/**
 * Typography
 * --------------------------------------------------
 */


// Headings

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: $headings-font-family;
  font-weight: $headings-font-weight;
  line-height: $headings-line-height;
  color: $headings-color;

  small,
  .small {
    font-weight: normal;
    line-height: 1;
    color: $headings-small-color;
  }
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  margin-top: rem($line-height-computed);
  margin-bottom: rem($line-height-computed / 2);

  small,
  .small {
    font-size: 65%;
  }
}
h4,
h5,
h6,
.h4,
.h5,
.h6 {
  margin-top: rem($line-height-computed / 2);
  margin-bottom: rem($line-height-computed / 2);

  small,
  .small {
    font-size: 75%;
  }
}

h1,
.h1 {
  font-size: rem($font-size-h1);
}

h2,
.h2 {
  font-size: rem($font-size-h2);
}

h3,
.h3 {
  font-size: rem($font-size-h3);
}

h4,
.h4 {
  font-size: rem($font-size-h4);
}

h5,
.h5 {
  font-size: rem($font-size-h5);
}

h6,
.h6 {
  font-size: rem($font-size-h6);
}

// Titles and title helper classes
.page-header {
  margin-top: rem(32px);
  margin-bottom: rem(32px);
  height: rem(36px);
  // border:1px solid red;
}
.page-title, .subpage-title, .title-light {
  font-weight: 300;
  font-size: rem(24);
  margin-top: 0;
  margin-bottom: 0;
  padding: rem($padding-base-vertical 0);

  .fa-angle-left {
    border: 1px solid $gray-light;
    border-radius: 50%;
    color: $gray-dark;
    font-size: 1rem;
    margin-top: -0.5rem; // remove space on top of icon
    margin-right: rem(8px);
    padding: rem(6px 12px 6px 10px);
    vertical-align: middle; // override font-awesome style to align to baseline
  }
}
.page-title {
  font-weight: normal;
}

// Paragraphs

p {
  margin: 0 0 rem($line-height-computed / 1.5);
}

    // .lead {
    //   margin-bottom: rem($line-height-computed;
    //   font-size: floor(($font-size-base * 1.15));
    //   font-weight: 300;
    //   line-height: 1.4;

    //   @include mq($screen-sm) {
    //     font-size: ($font-size-base * 1.5);
    //   }
    // }


// Emphasis & misc

small,
.small {
  font-size: floor((100% * $font-size-small / $font-size-base));
}

// Undo browser default styling
cite {
  font-style: italic;
}

mark,
.mark {
  background-color: $mark-bgcolor;
  border-radius: rem($border-radius-base);
  padding: rem(1 4 2);
  // padding: .2em;
}

// Alignment
.text-left           { text-align: left; }
.text-right          { text-align: right; }
.text-center         { text-align: center; }
.text-justify        { text-align: justify; }
// .text-nowrap         { white-space: nowrap; }

// Transformation
.text-lowercase      { text-transform: lowercase; }
.text-uppercase      { text-transform: uppercase; }
.text-capitalize     { text-transform: capitalize; }


// Contextual colors

.text-muted {
  color: $text-muted;
}

@include text-emphasis-variant('.text-primary', $brand);
@include text-emphasis-variant('.text-secondary', $brand-light);
@include text-emphasis-variant('.text-success', $brand-success);
@include text-emphasis-variant('.text-info', $brand-info);
@include text-emphasis-variant('.text-warning', $brand-warning);
@include text-emphasis-variant('.text-danger', $brand-danger);


// Contextual backgrounds
// For now we'll leave these alongside the text classes until v4 when we can
// safely shift things around (per SemVer rules).
    // .bg-primary {
    //   // Given the contrast here, this is the only class to have its color inverted
    //   // automatically.
    //   color: #fff;
    // }
    // @include bg-variant('.bg-primary', $brand-primary);

    // @include bg-variant('.bg-success', $state-success-bg);

    // @include bg-variant('.bg-info', $state-info-bg);

    // @include bg-variant('.bg-warning', $state-warning-bg);

    // @include bg-variant('.bg-danger', $state-danger-bg);


// Page header
// -------------------------

    // .page-header {
    //   padding-bottom: (rem($line-height-computed / 2) - 1);
    //   margin: rem(($line-height-computed * 2) 0 $line-height-computed);
    //   border-bottom: 1px solid $page-header-border-color;
    // }


// Lists
// -------------------------

// Unordered and Ordered lists
ul,
ol {
  margin-bottom: rem($line-height-computed / 2);
  margin-top: 0;
}

// List options

// Unstyled keeps list items block level, just removes default browser padding and list-style
.list-unstyled {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

// Inline turns list items into inline-block
.list-inline {
  @extend .list-unstyled;
  margin-left: rem(-6);

  > li {
    display: inline-block;
    padding-left: rem(6);
    padding-right: rem(6);
  }
}

// Description Lists
//
dl {
  margin-bottom: rem($line-height-computed);
  margin-top: 0; // Remove browser default
}

dt,
dd {
  line-height: $line-height-base;
}
dt {
  font-weight: bold;
}
dd {
  margin-left: 0; // Undo browser default
}

// Horizontal description lists
//
// Defaults to being stacked without any of the below styles applied, until the
// grid breakpoint is reached (default of ~768px).
.dl-horizontal {
  dd {
    @include clearfix(); // Clear the floated `dt` if an empty `dd` is present
  }

  @include mq($grid-float-breakpoint) {
    dt {
      clear: left;
      float: left;
      text-align: right;
      @include text-overflow();
      width: ($dl-horizontal-offset - 20);
    }
    dd {
      margin-left: $dl-horizontal-offset;
    }
  }
}


// Misc
// -------------------------

// Abbreviations and acronyms
    // abbr[title],
    // // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
    // abbr[data-original-title] {
    //   cursor: help;
    //   border-bottom: 1px dotted $abbr-border-color;
    // }
    // .initialism {
    //   font-size: 90%;
    //   text-transform: uppercase;
    // }

// Blockquotes
blockquote {
  border-left: rem(5) solid $blockquote-border-color;
  font-size: $blockquote-font-size;
  padding: rem($line-height-computed / 2) rem($line-height-computed);
  margin: 0 0 rem($line-height-computed);

  p,
  ul,
  ol {
    &:last-child {
      margin-bottom: 0;
    }
  }

  // Note: Deprecated small and .small as of v3.1.0
  // Context: https://github.com/twbs/bootstrap/issues/11660
  footer {
    color: $blockquote-footer-color;
    display: block;
    font-size: 80%; // back to default font-size
    line-height: $line-height-base;

    &:before {
      content: '\2014 \00A0'; // em dash, nbsp
    }
  }
}

// Opposite alignment of blockquote
//
// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
.blockquote-reverse {
  border-left: 0;
  border-right: rem(5) solid $blockquote-border-color;
  padding-right: rem(15);
  padding-left: 0;
  text-align: right;

  // Account for citation
  footer {
    &:before { content: ''; }
    &:after {
      content: '\00A0 \2014'; // nbsp, em dash
    }
  }
}

// Quotes
blockquote:before,
blockquote:after {
  content: "";
}

// Addresses
address {
  margin-bottom: rem($line-height-computed);
  font-style: normal;
  line-height: $line-height-base;
}
