/**
 * This is a hacked stylesheet from Sphinx (basic + default theme)
 * that works really well with docutils alone (thanks!).
 */

/* -- relbar ---------------------------------------------------------------- */

div.related {
    font-size: 90%;
    background-color: #20435c;
    border-bottom: 1px solid #ccc;
    line-height: 30px;
    color: #fff;
    padding: 0 10px 0 10px;
}

div.related h3 {
    display: none;
}

div.related a {
    color: #fff;
}

div.related li {
    display: inline;
}

div.related li.current {
    font-weight: bold;
}

div.related .section-list li + li:before {
    content: "; ";
    font-weight: normal;
}

div.related .crumbs li + li:before {
    content: "\bb  ";
}

div.related ul {
    padding: 0;
    list-style: none;
    display: inline;
    white-space: nowrap;
}

div.related ul.crumbs {
    border-left: 1px solid #f2f2f2;
    margin-left: 5px;
    padding-left: 10px;
}

div.related ul.crumbs > li:last-child {
    font-weight: bold;
}

/* -- general body styles --------------------------------------------------- */

img {
    border: 0;
}

a.headerlink {
    visibility: hidden;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
    visibility: visible;
}

div.body p.caption {
    text-align: inherit;
}

div.body td {
    text-align: left;
}

.field-list ul {
    padding-left: 1em;
}

.first {
    margin-top: 0 !important;
}

p.rubric {
    margin-top: 30px;
    font-weight: bold;
}

/* -- topics ---------------------------------------------------------------- */

div.topic {
    border: 1px solid #ccc;
    padding: 7px 7px 0 7px;
    margin: 10px 0 10px 0;
}

p.topic-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 10px;
}

/* -- admonitions ----------------------------------------------------------- */

div.admonition {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px;
}

div.admonition dt {
    font-weight: bold;
}

div.admonition dl {
    margin-bottom: 0;
}

p.admonition-title {
    margin: 0px 10px 5px 0px;
    font-weight: bold;
}

div.body p.centered {
    text-align: center;
    margin-top: 25px;
}

/* -- tables ---------------------------------------------------------------- */

table.docutils {
    border: 0;
    border-collapse: collapse;
}

table.docutils td, table.docutils th {
    padding: 1px 8px 1px 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #aaa;
}

table.field-list td, table.field-list th {
    border: 0 !important;
}

table.footnote td, table.footnote th {
    border: 0 !important;
}

th {
    text-align: left;
    padding-right: 5px;
}

/* -- other body styles ----------------------------------------------------- */

dl {
    margin-bottom: 15px;
}

dd p {
    margin-top: 0px;
}

dd ul, dd table {
    margin-bottom: 10px;
}

dd {
    margin-top: 3px;
    margin-bottom: 10px;
    margin-left: 30px;
}

dt:target, .highlight {
    background-color: #fbe54e;
}

dl.glossary dt {
    font-weight: bold;
    font-size: 1.1em;
}

table.field-list {
    display: block;
}

.field-list ul {
    margin: 0;
    padding-left: 1em;
}

.field-list p {
    margin: 0;
}

.refcount {
    color: #060;
}

.optional {
    font-size: 1.3em;
}

.versionmodified {
    font-style: italic;
}

.system-message {
    background-color: #fda;
    padding: 5px;
    border: 3px solid red;
}

.footnote {
    font-size: 90%;
}

.footnote:target  {
    background-color: #ffa
}

.footnote tr > td + td {
    font-style: italic;
}

.footnote-reference {
    font-size: 70%;
    position: relative;
    bottom: 0.5em;
    left: -0.2em;
}

.line-block {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

.line-block .line-block {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 1.5em;
}

/* -- code displays --------------------------------------------------------- */

pre {
    overflow: auto;
}

td.linenos pre {
    padding: 5px 0px;
    border: 0;
    background-color: transparent;
    color: #aaa;
}

table.highlighttable {
    margin-left: 0.5em;
}

table.highlighttable td {
    padding: 0 0.5em 0 0.5em;
}

tt.descname {
    background-color: transparent;
    font-weight: bold;
    font-size: 1.2em;
}

tt.descclassname {
    background-color: transparent;
}

tt.xref, a tt {
    background-color: transparent;
    font-weight: bold;
}

h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
    background-color: transparent;
}

/* -- math display ---------------------------------------------------------- */

img.math {
    vertical-align: middle;
}

div.body div.math p {
    text-align: center;
}

span.eqno {
    float: right;
}

/* -- printout stylesheet --------------------------------------------------- */

@media print {
    div.document,
    div.body {
        margin: 0 !important;
        width: 100%;
    }

    div.contents,
    div.related,
    #top-link {
        display: none;
    }
}

/* -- page layout ----------------------------------------------------------- */

body {
    font-family: 'Bitstream Vera Sans', 'DejaVu Sans', 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-size: 14pt;
    background-color: #ffffff;
    color: #000;
    margin: 0;
    padding: 0;
}

div.body {
    padding: 20px;
}

div.footer {
    clear: both;
    color: #333333;
    font-size: 75%;
    padding: 9px;
}

div.footer p {
    margin: 0;
}

div.footer a {
    color: #333333;
    text-decoration: underline;
}

div.contents {
    font-family: 'Bitstream Vera Sans', 'DejaVu Sans', 'Trebuchet MS', 'Segoe UI', sans-serif;
    float: right;
    margin-left: 20px;
}

div.contents h3 {
    color: #20435c;
    font-size: 1.4em;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

div.contents h3 a {
    color: #20435c;
}

div.contents h4 {
    color: #20435c;
    font-size: 1.3em;
    font-weight: normal;
    margin: 5px 0 0 0;
    padding: 0;
}

div.contents p {
    color: #20435c;
}

div.contents p.topless {
    margin: 5px 10px 10px 10px;
}

div.contents ul {
    list-style: none;
    margin: 10px;
    padding: 0;
    color: #20435c;
}

div.contents ul ul,
div.contents ul.want-points {
    margin-left: 20px;
    list-style: square;
}

div.contents ul ul {
    margin-top: 0;
    margin-bottom: 0;
}

/* -- body styles ----------------------------------------------------------- */

a {
    color: #355f7c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

div.body table, div.body p {
    margin: 1em 0px;
}

div.body p, div.body dd, div.body li {
    line-height: 130%;
}

div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
    font-family: 'Bitstream Vera Sans', 'DejaVu Sans', 'Segoe UI', 'Trebuchet MS', sans-serif;
    font-weight: normal;
    color: #000;
    border-bottom: 1px solid #ccc;
    margin: 0 -20px 0 -20px;
    padding: 0 0 0 10px;
    font-size: 100%;
}

div.body h1 { margin-top: 0; margin-bottom: 0; font-size: 150%; }
div.body h2 { font-size: 120%; }

hr {
    margin: 0 20px 0 20px;
    height: 0;
    border: none;
    border-bottom: 1px solid #ccc;
}

a.toc-backref {
    color: #20435c;
}

a.headerlink {
    color: #c60f0f;
    font-size: 0.8em;
    padding: 0 4px 0 4px;
    text-decoration: none;
}

a.headerlink:hover {
    background-color: #c60f0f;
    color: white;
}

div.section {
    clear: left;
}

.section img,
.document img {
    margin: 1em;
}

.section > img, .document > img,
.section > a img, .document > a img {
    float: left;
    margin-left: 0;
}

.section > img.align-left, .document > img.align-left,
.section > a img.align-left, .document > a img.align-left {
    clear: left;
}

.section > img.align-right, .document > img.align-right,
.section > a img.align-right, .document > a img.align-right {
    float: right;
    clear: right;
    margin-left: 1em;
    margin-right: 0;
}

.section a img:hover,
.document a img:hover {
    outline: 2px solid #355f7c;
}

div.admonition p.admonition-title + p {
    display: inline;
}

div.note {
    background-color: #eee;
    border: 1px solid #ccc;
}

div.seealso {
    background-color: #ffc;
    border: 1px solid #ff6;
}

div.topic {
    background-color: #eee;
}

div.warning {
    background-color: #ffe4e4;
    border: 1px solid #f66;
}

p.admonition-title {
    display: inline;
}

p.admonition-title:after {
    content: ":";
}

pre {
    padding: 5px;
    background-color: #eeffcc;
    color: #333333;
    line-height: 120%;
    border: 1px solid #ac9;
    border-left: none;
    border-right: none;
}

tt {
    background-color: #ecf0f3;
    padding: 0 1px 0 1px;
    font-size: 0.95em;
}

.warning tt {
    background: #efc2c2;
}

.note tt {
    background: #d6d6d6;
}

.article {
    overflow: visible;
    font-family: 'Bitstream Vera Serif', 'DejaVu Serif', 'Lucida Bright', Georgia, serif;
    column-width: 25em;
    -webkit-column-width: 25em;
    -moz-column-width: 25em;
    column-gap: 40px;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
    column-fill: auto;
    -webkit-column-fill: auto;
    -moz-column-fill: auto;
}

div.body div.article h1 {
    column-span: all;
    -webkit-column-span: all;
    -moz-column-span: all;
    margin-bottom: 20px;
}

div.article h1 + p {
    margin-top: 0;
}

/* -- figure styles ------------------------------------------------------------ */

.figure {
    margin: 1em;
    background-color: #fff;
    text-align: center;
    border: 1px solid #ccc;
    padding: 7px;
}

.figure .caption,
.figure .legend,
.figure img {
    font-size: 70%;
    margin: 0;
}

.section > .figure, .document > .figure {
    float: left;
    margin-left: 0;
}

.section > .figure.align-left,
.document > .figure.align-left {
    clear: left;
}

.section > .figure.align-right,
.document > .figure.align-right {
    float: right;
    clear: right;
    margin-left: 1em;
    margin-right: 0;
}

.figure.align-right .caption,
.figure.align-right .legend {
    text-align: right;
}

/* -- gallery styles ----------------------------------------------------------- */

.gallery .image * {
    padding: 0;
    margin: 0;
}

.gallery .image table td {
    text-align: center;
    vertical-align: top;
    height: 1em;
}

.gallery .image .imagewrap {
    vertical-align: middle;
    line-height: 0;
}

.gallery .image {
    border: 1px solid #ccc;
    float: left;
    font-size: 70%;
    margin: 0px 10px 10px 0;
    padding: 7px 7px 0 7px;
}

