@import "default.css";

/* Problem: nested styles? */


div.article {
    max-width: 45em;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    line-height: 140% }

div.article p, div.article ul, div.article ol
{ margin-top: 0.75em; margin-bottom: 0.75em; }

div.document.hide-title h1.title { display: none; }
div.article.zh { text-align: left; } /* justify doesnt work well for CJK*/

div.article.essay { font-family: serif; }
div.article.linear p { margin: 0; text-indent: 2em; }
div.article.linear ul, div.article.linear ol {
    margin-left: 3em;
/* CSS 3.0 not supported yet:    marker-offset: 2em; */
}
div.article.linear h1+p, div.article.linear h1+table+p,
div.article.linear h2+p, div.article.linear h2+table+p,
div.article.linear hr.transition+p, div.article.linear li > p:first-child
 { text-indent: 0; }

ul.compact > li > p, ol.compact > li > p { margin-top:0; margin-bottom: 0}

h2.subtitle { font-size: 100%; margin-left: 8em;
    style: italic }

/* same style as hr */
hr.transition {
    width: 100%;
    border: none 0;
    border-top: 0.15em solid Silver;
}

div.article hr.transition {
    width: 5em;
    text-align: left;
    margin: 1ex auto 1ex 0;
    border-top: 0.15em dashed #4682B4;
}

a.footnote {
    font-size:smaller;
    font-weight: bold;
    vertical-align:top;
    text-decoration:none;
    color: #4682B4;
}
a.footnote:hover { background-color: #4682B4; color: white; }

div.header {
    font-family: sans-serif;
}

div.footer {
  font-family: monospace;
  font-size: small }

/* need to be more careful with compound */
div.compound > * { margin: 0; }
div.compound > * + p { text-indent: 0; }

.borderless, table.borderless td, table.borderless th {
  border: 0 }

table.borderless td, table.borderless th {
  /* Override padding for "table.docutils td" with "! important".
     The right padding separates the table cells. */
  padding: 0 0.5em 0 0 ! important }

div.topic,
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
  margin: 1em;
  font-family: sans-serif;
  border: 0.15em solid Silver;
  padding: 0em 1em; }

div.figure {
  margin-left: 2em ;
  margin-right: 2em }

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

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

div.TOC { padding: 0.75em 0; }

/* Fall back to standard formatting */
div.TOC { border-top: solid thin; border-bottom: solid thin; }
div.TOC ul, div.TOC ol { margin: 0.75em 0 0 1em; }

img.block-left {
    margin-left: 0;
    margin-right: auto;
    display: block;
}

img.block-center, .figure.block-center{
  display: block;
  margin-left: auto;
  margin-right: auto
}

img.block-right {
    margin-left: auto;
    margin-right: 0;
    display: block;
}


img.float-left, .figure.float-left{
  clear: left ;
  float: left ;
  margin-right: 1em }

img.float-right, .figure.float-right {
  clear: right ;
  float: right ;
  margin-left: 1em }

.align-left {
  text-align: left }

.align-center {
  clear: both ;
  text-align: center }

.align-right {
  text-align: right }

/* reset inner alignment in figures */
div.align-right {
  text-align: left }

ol.arabic {
  list-style: decimal }

ol.loweralpha {
  list-style: lower-alpha }

ol.upperalpha {
  list-style: upper-alpha }

ol.lowerroman {
  list-style: lower-roman }

ol.upperroman {
  list-style: upper-roman }

p.credits {
  font-style: italic ;
  font-size: smaller }

div.title {
  margin: 1em 0em; font-weight: bold }

pre.literal-block, pre.doctest-block {
  margin-left: 2em ;
  margin-right: 2em }

span.interpreted {
  font-family: sans-serif }

span.option {
  white-space: nowrap }

span.pre {
  white-space: pre }

table.citation {
  border-left: solid 0.1em gray;
  margin-left: 0.1em }

table.footnote {
  border-left: solid 0.1em black;
  margin-left: 0.1em }

table.docinfo td, table.docinfo th {}

table.docinfo th.docinfo-name {
  display: none;
}

table.docinfo td {
  font-style: italic;
}

table.docinfo { margin-bottom: 1em; }
