/* GRID */
.grid-row {
    width: 870px;
    position: relative;
}
.grid-row:after { 
   content: "";
   display: block; 
   clear: both;
}
.left-column {
    width: 220px;
    float: left;
    margin: 0 0 0 20px;
}
.main-column {
    float: right;
    position: relative;
    width: 600px;
}

/* POSITIONING */
body {
    padding-top: 10px;
}
.site-search {
    position: absolute;
    right: 0;
    top: 0;
    margin: 10px;
}

/* HEADER */
.header {
    font-size: 24px;
    margin-bottom: 10px;
}
.header a, .header a:visited {
    color: black;
    border: 0;
    text-decoration: none;
}
.header a:hover, .header a:hover:visited, .header .active {
    background-color: #f0f0f0;
}

/* UI blocks */
.block {
    background-color: white;
    padding: 0 10px 0 10px;
    margin: 0 0 20px 0;
    border-left: 1px solid black;
}

/* TYPOGRAPHY */
.main-column {
    text-align: justify;
}
body, p, pre, code {
    font-size: 16px;
}
body, p {
    font-family: 'Open Sans', Verdana, Helvetica, sans-serif;
    color: #222;
}
p, ul, ol, h1, h2, h3, h4, h5, h6 {
    line-height: 1.0;
    margin: 0;
}
p, ul, ol {
    margin-bottom: 22px;
}
ul, ol {
    padding: 0;
}
h1 {
    font-size: 36px;
    margin-bottom: 5px;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 20px;
}
h4, h5, h6 {
    font-size: 18px;
}
h5, h6 {
    font-style: italic;
}
p, ul, ol, li, pre, code  {
    line-height: 22px;
}

/* LISTS */
ul {
    list-style: square;
}
ul, ol {
    margin-left: 16px;
}

/* TABLE OF CONTENTS */
.table-of-contents h2 {
    font-size: 20px;
    padding-bottom: 5px;
}
.table-of-contents ol {
    list-style: none;
    margin-bottom: 0;
}
.table-of-contents > ol {
    margin: 0;
}

/* TOOLBARS */
.toolbar h2 {
    font-size: 20px;
    padding-bottom: 5px;
}
.toolbar ul, .toolbar ol {
    list-style: none;
    margin: 0;
}
.toolbar a {
    text-transform: uppercase;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid black;
}
.toolbar a:visited {
    color: black;
    border-bottom: 1px solid black;
}
.toolbar a:hover, .toolbar a:hover:visited, .toolbar .active {
    color: black;
    background-color: #f0f0f0;
}
.site-toolbar a {
    margin-right: 20px;
}

/* METADATA */
.metadata {
    color: #999;
    font-style: italic;
    text-align: right;
}
.metadata * {
    color: #999;
    margin: 0;
}

/* TOOLTIPS */
[title] {
    border-bottom: 1px dotted #999;
}

/* EDITING */
.editor {
    float: left;
    padding-right: 40px;
}
.editor input, .editor textarea {
    width: 490px;
    color: black;
    font-size: 16px;
}
#preview-wrapper {
    display: none;
    position: absolute;
    width: 500px;
    
    top: -10px;
    right: -510px;
}

.button-toolbar {
    /* the button-toolbar is only useful if JS is on, so we hide by default */
    display: none;
    margin: 0 0 5px 0;
}
.button-toolbar .bold {
    font-weight: bold;
}
.button-toolbar .italic {
    font-style: italic;
}

.button-group {
    display: inline-block;
    margin-right: 20px;
}

/* COMMENTS */
.comment {
    margin-top: 24px;
}

/* HYPERLINKS */
img.favicon {
    vertical-align: middle;
    max-height: 16px;
    padding-left: 1px;
}
a {
    color: blue;
    border-bottom: 1px solid blue;
    text-decoration: none;
}
a:hover {
    color: blue;
    background-color: #f2f7fc;
}
a:visited {
    color: #800080;
    border-bottom: 1px solid #800080;
}
a:visited:hover {
    background-color: #fbf2fc;
}
a.nonexistent {
    color: red;
    border-bottom: 1px solid red;
}
a.nonexistent:hover {
    background-color: #fff0f0;
}

/* TABLES */
table {
    margin-bottom: 24px;
    width: 100%;

    border: 1px solid rgb(221, 221, 221);
}
tbody tr:nth-child(2n+1) {
    background: #f5f5f5;
}
td, th {
    border-top: 1px solid rgb(221, 221, 221);
    padding: 5px;
}
td + td, th + th, td + th, th + td {
    border-left: 1px solid rgb(221, 221, 221);
}

/* PREFORMATTED & CODE */
pre, code {
    border: 0;
    padding: 0;
    margin: 0 0 24px 0;
    background-color: transparent;
    color: inherit;
    overflow-x: auto;
    white-space: pre;
}

ul.link-list, ol.list-style {
    list-style: none;
    margin: 0 0 20px 0;
}

/* FORMS */
button {
    display: block;
}
label::before {
    content: " ";
    display: block;
}
label {
    clear: both;
}
