/* Webfonts from googlefont disabled for now, until we know how to deal with them self-hosted.
@import url(http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic);
@import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic,700italic);
*/

body {
  padding: 50px;
  font: 14px/1.5 Lato, sans-serif;
  color: #555;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  color: #222;
  margin: 0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin: 0 0 20px;
}

span#readmore {
  margin-top: 1em;
  color: #1919AA;
  cursor: pointer;
  display: inline;
}

h1, h2, h3 {
  line-height: 1.1;
}

aside h1 {
  font-size: 28px;
}

aside h1 a {
  color: #222;
}

article {
  margin: 0 0 40px;
}

article.abbrev {
  margin: 0 0 10px;
}

article h1, article h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

article h1 a, article h2 a, h3.abbrev a {
  color: #39c;
}

article time {
  color: #ccc;
}

article a.author {
  color: #8bc;
}

h2 {
  color: #393939;
}

h3, h4, h5, h6 {
  color: #494949;
}

p a, li a, li a code {
  color: #39c;
  font-weight: 400;
  text-decoration: none;
}

a small {
  font-size: 11px;
  color: #555;
  margin-top: -0.6em;
  display: block;
}

.wrapper {
 /* width: 960px;*/
 margin: 0 auto;
 overflow: auto;
}

blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code, pre {
  font-family: "Ubuntu Mono", monospace;
  color: #333;
}

a code {
  color: #39c;
}

pre code {
  font-size: 14px;
}

h1 code, h2 code, h3 code, h4 code {
  border: 1px solid #eaeaea;
  background-color: #f8f8f8;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
  color: #333;
}

pre {
  padding: 8px 15px;
  background: #f8f8f8;  
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
}

abbr {
  border-bottom: .1em dotted;
  cursor: help;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 700;
}

th {
  color: #444;
}

img {
  max-width: 100%;
}

aside {
  width: 370px;
  float: left;
  position: fixed;
}

nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0 10px 10px;
}

aside ul.buttons {
  list-style: none;
  height: 40px;
  
  padding: 0;
  
  background: #eee;
  background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
  background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  
  border-radius: 5px;
  border: 1px solid #d2d2d2;
  box-shadow: inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
  width: 370px;
}

aside ul.buttons li {
  width: 89px;
  float: left;
  border-right: 1px solid #d2d2d2;
  height: 40px;
}

aside ul.buttons a {
  line-height: 1;
  font-size: 11px;
  color: #999;
  display: block;
  text-align: center;
  padding-top: 6px;
  height: 40px;
}

strong {
  color: #222;
  font-weight: 700;
}

aside ul.buttons li + li {
  width: 88px;
  border-left: 1px solid #fff;
}

aside ul.buttons li + li + li + li {
  border-right: none;
  width: 89px;
}

aside ul.buttons a strong {
  font-size: 14px;
  display: block;
  color: #222;
}

section#content {
  width: auto;
  padding-bottom: 50px;
  padding-left: 400px;
}

h4#contents {
  margin-bottom: 0;
}

ul#toc, ul#toc ul {
  list-style: none;
  padding-left: 20px;
}

ul#toc ul {
  padding-left: 20px;
  margin-bottom: 0;
}

ul#toc li {
  line-height: 2;
}

ul#toc ul li, ul#toc ul li code {
  font-size: 75%;
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

footer {
  width: 370px;
  position: relative;
  bottom: 50 px;
  font-size: 75%;
  text-align: right;
  clear: both;
}

footer p {
  margin: 0px;
}

@media print, screen and (max-width: 1024px) {
  
  div.wrapper {
    width: auto;
    margin: 0;
  }
  
  aside, section#content, footer {
    float: none;
    position: static;
    width: auto;
  }
  
  aside {
    padding-right: 320px;
  }
  
  section#content {
    border: 1px solid #e5e5e5;
    border-width: 1px 0;
    padding: 20px 0;
    margin: 0 0 20px;
  }
  
  aside a small {
    display: inline;
  }
  
  aside ul.buttons {
    position: absolute;
    right: 50px;
    top: 52px;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap: break-word;
  }
  
  aside {
    padding: 0;
  }
  
  aside ul.buttons, aside p.view {
    position: static;
  }
  
  pre, code {
    word-wrap: normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding: 15px;
  }
  
  aside ul.buttons {
    display: none;
  }
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}
