a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 $at-vertspace;
}

h1 {
  font-size: 38px;
  line-height: 1.2;
}

h2 {
  font-size: 34px;
  line-height: 1.2;
  padding: $at-vertspace 0 0;
}

h3 {
  font-size: 28px;
  line-height: 1.3;
  padding-top: $at-vertspace;
}

h4 {
  font-size: 24px;
  line-height: 1.3;
  padding-top: $at-vertspace;
}

h5 {
  font-size: 20px;
  line-height: 1.3;
  padding-top: $at-vertspace;
}

h6 {
  font-size: 18px;
  line-height: 1.25;
  padding-top: $at-vertspace;
}

p {
  word-break: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  margin: 0 0 $at-vertspace;
}

ul {
  list-style-type: circle;
  margin: 0 0 $at-vertspace;
  padding: 0 0 0 40px;

  li {
    margin: 0 0 10px;

    &:last-of-type {
      margin: 0;
    }
  }
}

ol {
  margin: 0 0 $at-vertspace;
  padding: 0 0 0 40px;

  li {
    margin: 0 0 10px;

    &:last-of-type {
      margin: 0;
    }
  }
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #eaeaea;
  margin: ($at-vertspace * 2) 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;

  &.alignleft {
    margin: 0 auto ($at-vertspace / 2);
    @media screen and (min-width: 580px) {
      float: left;
      margin: 0 ($at-vertspace * 1.5) $at-vertspace 0;
    }
  }

  &.alignright {
    margin: 0 auto ($at-vertspace / 2);
    @media screen and (min-width: 580px) {
      float: right;
      margin: 0 0 $at-vertspace ($at-vertspace * 1.5);
    }
  }

  &.aligncenter {
    margin: 0 auto ($at-vertspace / 2);
  }
}

figure {
  margin: 0 0 $at-vertspace * 2;
  max-width: 100%;

  &.alignleft {
    margin: 0 auto ($at-vertspace / 2);
    text-align: center;
    @media screen and (min-width: 580px) {
      text-align: left;
      float: left;
      margin: 0 $at-vertspace $at-vertspace 0;
    }
  }

  &.alignright {
    margin: 0 auto ($at-vertspace / 2);
    text-align: center;
    @media screen and (min-width: 580px) {
      text-align: right;
      float: right;
      margin: 0 0 $at-vertspace $at-vertspace;
    }
  }

  &.aligncenter {
    text-align: center;
    margin: 0 auto $at-vertspace;
  }

  > a {
    display: block;
    line-height: 0;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  figcaption {
    margin: ($at-vertspace / 2) 0 0;
    text-align: center;
    font-style: italic;
    font-size: 15px;
    line-height: 1.3;
    color: #808080;
  }
}

blockquote {
  padding: 0 0 0 $at-vertspace;
  margin: ($at-vertspace * 2) 0;
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1.45;
  border-left: 5px solid #e3e4e5;
  @media screen and (min-width: 768px) {
    padding: 0 0 0 ($at-vertspace * 2);
    font-size: 20px;
    line-height: 1.45;
  }

  p {
    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

code,
kbd,
pre,
samp {
    font-family: Consolas, Liberation Mono, Courier, monospace;
}

code {
  background-color: #f7f7f7;
  font-size: 95%;
  padding: 2px 4px;  
}

pre {
  background: #f5f5f5;
  display: block;
  padding: 25px;
  margin: 0 0 $at-vertspace;
  font-size: 95%;
  line-height: 1.4;
  color: #222;
  overflow-x: auto;
  word-wrap: normal;
    
}

kbd {
  padding: 2px 4px;
  font-size: 90%;
  color: #fff;
  background-color: #333;  
}

mark {
  padding: .2em;
  background-color: #fcf8e3;
}

abbr[data-original-title], abbr[title] {
  cursor: help;
  border-bottom: 1px dotted #777;
}

iframe,
object,
embed {
  max-width: 100%;
}

table {
  border: 1px solid #eaeaea;
  margin: 0 0 $at-vertspace;

  th {
    font-weight: 600;
  }

  tr {
    border-bottom: 1px solid #eaeaea;
  }

  th,
  td {
    background: #fafafa;
  }

  thead {
    th {
      background: #f3f3f3;
    }
  }

  tbody tr:nth-child(odd) {
    th,
    td {
      background: #fff;
    }
  }
}
