/* Basics */

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: #444;
  background-color: #fff;
}

.task-list-item {
  list-style: none;
}

/* Guide listings */

.guide-listings {
  width: 990px;
  margin-top: 20px;
}

.guide-listing {
  float: left;
  width: 440px;
  margin-right: 50px;
  margin-bottom: 30px;
}

.guide-listing:nth-child(odd) {
  clear: both;
}

.guide-cover-guilloche {
  position: absolute;
  z-index: 1;
  width: 440px;
  height: 225px;
}

.guide-cover {
  position: relative;
  z-index: 2;
  height: 225px;
  color: #fff;
  text-align: center;
  background-color: #aaa;
}

.guide-cover a {
  display: block;
  width: 440px;
  height: 225px;
  padding: 30px 40px;
  color: #fff;
}

.icon-container {
  width: 68px;
  height: 68px;
  text-align: center;
  background-color: rgba(0, 0, 0, .5);
  border-radius: 34px;
}

.guide-cover .icon-container {
  margin: 0 auto;
}

.icon-container .mega-octicon {
  line-height: 68px;
}

.guide-cover-title {
  margin-top: 20px;
  font-size: 32px;
  font-weight: normal;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.guide-summary {
  font-size: 16px;
  line-height: 1.3;
}

.guide-read-time {
  font-size: 14px;
  color: #888;
}

/* Columns & Layout */

.wrap {
  max-width: 960px;
  padding: 0 15px;
  margin: 0 auto;
}

article.full .content-body {
  width: 650px;
  padding-bottom: 30px;
  font-size: 18px;
}

article.full .content-body.full-width {
  width: 100%;
}

.toc-wrapper {
  float: right;
  width: 200px;
}
ol.toc {
  width: 200px;
  margin: 0;
}
ol.toc.sticky {
  position: fixed;
  top: 20px;
}

@media (max-width: 900px) {
  .wrap {
    max-width: auto;
  }

  article.full .content-body {
    width: auto;
  }

  ol.toc {
    float: none;
    width: auto;
    margin: -10px 0 20px;
  }
}

.article-heading {
  position: relative;
  margin-top: 10px;
  margin-bottom: 40px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
  background-color: #aaa;
}

.article-header-pattern {
  position: absolute;
  z-index: 1;
  display: none;
}

.article-heading .wrap {
  position: relative;
  z-index: 2;
  padding: 50px 0;
  color: #fff;
}

.article-heading .icon-container {
  position: absolute;
  left: 15px;
  display: inline-block;
  float: left;
  margin-top: 30px;
  margin-right: 20px;
}

.article-read-time {
  margin-left: 108px;
  clear: left;
}

.article-pdf {
  margin-left: 20px;
}

.article-meta {
  color: rgba(255, 255, 255, .7);
}

.article-meta .octicon {
  position: relative;
  top: -1px;
}

.article-meta {

}

.markdown-example {
  margin: 20px 0;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.075);
}
.markdown-example .source {
  padding: 20px;
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  white-space: pre-wrap;
  background: #F8F8F8;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
}
.markdown-example .rendered {
  padding: 20px;
}

.markdown-body ul.example-nav {
  padding: 0;
  margin: 20px 0;
}
.example-nav li {
  display: inline-block;
  padding: 0;
  margin: 0 15px 0 0;
  list-style-type: none;
}

.example-nav li a {
  font-size: 16px;
  font-weight: bold;
}
.example-nav li a.selected {
  padding: 2px 12px 4px 12px;
  color: #fff;
  background: #4183C4;
  border-radius: 20px;
}

.alert {
  position:relative;
  padding:15px;
  margin:0 auto;
  color:#264c72;
  background-color: #d8ebf8;
  border: 1px solid #97c1da;
  border-radius: 3px;
}

.alert *:first-child { margin-top: 0; }
.alert *:last-child { margin-bottom: 0; }

/* Main site styles */

a {
  color: #4183c4;
  text-decoration: none;
}

header {
  padding: 35px 0 20px;
}
header img {
  opacity: .3;
}
header ul.links {
  float: right;
  padding: 0;
  margin: 2px 0 0;
}
header ul.links>li {
  display: inline-block;
  margin-left: 20px;
  font-size: 13px;
  font-weight: bold;
  list-style-type: none;
}
header ul.links>li a {
  color: #999;
}


article {
  line-height: 1.5;
}
article h1 {
  margin-bottom: 10px;
  margin-left: 105px;
  font-size: 48px;
  font-weight: normal;
  line-height: 1;
  letter-spacing: -1px;
}
article h2 {
  color: #000;
}

article img {
  max-width: 100%;
  padding: 2px;
  margin-top: 8px;
  background: #fafafa;
  border: 1px solid #eee;
}
article img.emoji {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

footer {
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.3;
  color: #999;
  text-align: center;
}
footer .mega-octicon {
  color: #ddd;
}

/* Table of Contents */
ol.toc {
  padding: 0;
}
ol.toc>li {
  padding: 5px 0;
  margin: 0;
  font-size: 16px;
  list-style-type: none;
}
ol.toc>li a.active {
  font-weight: bold;
  color: #444;
}

.last-updated {
  padding-top: 30px;
  font-size: 14px;
  color: #999;
}

.cf:before,
.cf:after {
  display: table;
  content: " ";
}

.cf:after {
  clear: both;
}

.pd-embedded {
  margin: 20px 0;
}

.nav-rss a .octicon-rss {
  color: #ff6600;
}

/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {
  .guide-listing {
    width: 400px;
    margin-right: 20px;
  }
}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  article.full .content-body {
    width: 500px;
  }
  .guide-listings {
    width: 100%;
  }
  .guide-listing {
    width: 48%;
    margin-right: 4%;
  }
  .guide-listing:nth-child(2n) {
    margin-right: 0;
  }
  .guide-cover {
    width: 100%;
  }
  .guide-cover-title {
    font-size: 28px;
  }
  .guide-cover a {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media only screen and (max-width: 767px) {
  html, body {
    font-size: 15px;
  }
  .nav-github, .nav-rss {
    display: none ! important;
  }
  .article-heading .wrap {
    padding: 30px 0;
  }
  article h1 {
    margin-left: 96px;
    font-size: 34px;
  }
  .article-read-time {
    margin-left: 96px;
  }
  article.full .content-body {
    width: 100%;
  }
  .toc-wrapper {
    display: none;
  }

  .landing-page.wrap,
  .guide-listings {
    width: 100%;
  }
  .guide-cover a {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }
  .guide-cover-title {
    font-size: 26px;
  }
  .guide-listing {
    display: block;
    float: none;
    width: 100%;
    margin-right: 0;
  }

  footer {
    font-size: 12px;
  }
}
