/* ==== nelson.css ==== */

.emphasis { font-style: italic; }
.strong { font-weight: bold; }
.error { color: red; }

/* ---- footnote ---- */

sup {
    font-size: 0.8em;
    position: relative;
    top: -0.4em;
    vertical-align: baseline;
}
sup.fnref a { text-decoration: none; }
sup.fnref a:hover { text-decoration: underline; }
ol.fn { margin-left: 1em; padding-left: 1em; }
ol.fn .backref a { text-decoration: none; }
ol.fn .backref sup a { font-style: italic; vertical-align: top; }
.fn.error *, .fnref.error a { color: red; }

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

table.figure {
    border: 1px solid #ddd;
    border-collapse: separate;
    margin: 0 auto;
    padding: 2px;
    border-radius: 2px;
    -moz-border-radius: 2px;
    background-color: #f3f3f3;
}
table.figure td {
    margin: 0; padding: 0;
    vertical-align: top;
}
table.figure img {
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
    padding: 0;
}
table.figure p.caption {
    color: #333;
    font-family: sans-serif;
    font-size: small;
    margin: 0;
    padding: 0.35em 0 0.35em 0;
    text-align: center !important;
}
table.figure div.legend {
    font-family: sans-serif;
    font-size: small;
    margin: 0;
    padding: 0.35em 2px 0.45em 2px;
    text-align: left !important;
}
table.figure div.legend > p:first-child { margin-top: 0; }
table.figure div.legend > p:last-child { margin-bottom: 0; }

table.figure.left { float: left; margin-right: 1.5em; }
table.figure.right { margin-left: 1.5em; float: right; }
table.figure.center { margin-left: auto; margin-right: auto; }

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

table.gallery {
    border: solid 1px #ddd;
    border-collapse: separate;
    margin: 0 auto;
    padding: 2px;
    border-radius: 2px;
    -moz-border-radius: 2px;
    background-color: #f3f3f3;
}
table.gallery td {
    border-style: none;
    margin: 0;
    padding: 2px;
    vertical-align: top;
}
table.gallery img {
    border: solid 1px #ddd;
    display: block;
    margin: 0 auto;
    padding: 0px;
}
table.gallery p.caption {
    font-family: sans-serif;
    font-size: small;
    margin: 0;
    padding: 0.35em 0 0.35em 0;
    text-align: center !important;
}

table.gallery.left { float: left; margin-right: 1em; }
table.gallery.right { float: right; margin-left: 1em; }
table.gallery.center { margin-left: auto; margin-right: auto; }

.gallery .highslide-active-anchor img  { border-color: white; }
.highslide-active-anchor img { visibility: visible; }
.outer-glow .highslide-caption {
    color: #222;
    background-color: #ccc;
    padding: 8px 10px 8px 10px;
}
.outer-glow .highslide-caption a { color: #002bb8; }

.highslide-caption { text-align: left; }
.highslide-caption > p:first-child { margin-top: 0; }
.highslide-caption > p:last-child { margin-bottom: 0; }

/* ---- blockquote ---- */

blockquote { font-size: 0.9em; }
blockquote.distinct {
    border: 1px dashed #666;
    padding: 0 1em 0 1em;
}

/* ---- quotation ---- */

div.quotation { margin: 1em 2.5em 1em 2.5em; }
div.quotation > blockquote { margin: 0; }
div.quotation > blockquote p { margin-bottom: 0; }
div.quotation > blockquote p:before { content: "\201C"; }
div.quotation > blockquote p:after { content: "\201D"; }
div.quotation > .credit {
    margin-top: 0;
    margin-left: 2em;
    font-size: 0.9em;
    font-style: italic;
}
div.quotation > .credit:before { content: "— "; }
div.quotation.distinct {
    border-style: dashed; border-width: 1px; padding: 0 1em 0 1em; }
div.quotation.distinct > blockquote p { margin-bottom: 1em; }
div.quotation.distinct > blockquote p:before { content: ""; }
div.quotation.distinct > blockquote p:after { content: ""; }

div.quotation.emphasis > blockquote { font-style: italic; }
div.quotation.emphasis > blockquote p:before { content: ""; }
div.quotation.emphasis > blockquote p:after { content: ""; }
div.quotation.emphasis > .credit { font-style: normal; }

div.quotation.strong > blockquote { font-weight: bold; }
div.quotation.strong > .credit { font-weight: normal; }

div.quotation.epigraph { margin-left: 50%; margin-right: 0; }
div.quotation.epigraph > blockquote { font-size: 1em; }
div.quotation.epigraph > blockquote * { text-align: right !important; }
div.quotation.epigraph > .credit {
    font-size: 1em; text-align: right !important; }
div.quotation.epigraph.emphasis > .credit { font-style: italic; }

div.quotation.source > .credit {
    font-family: Arial,Helvetica,sans-serif;
    font-style: normal;
    font-size: 0.6em;
    margin-right: 1em;
    text-align: right !important;
}

div.quotation.source > .credit:before { content: "SOURCE: "; }
div.quotation.source.distinct { border: none; padding: 0; }
div.quotation.source.distinct > blockquote {
    border: 1px dashed #666;
    padding: 0 1em 0 1em;
}
div.quotation.source.distinct > .credit { margin-top: 0.2em; }
div.quotation.source.strong > .credit { font-weight: normal; }

/* ---- text ---- */

code > var { font-family: serif; }
span.r { font-family: serif; }
span.m { background-color: #ffff66; }
span.overline { text-decoration: overline; }
span.underline { text-decoration: underline; }

/* ---- note ---- */

table.note {
    border-collapse: collapse;
    border: 1px none #aaa;
    margin: 1em auto 1em auto;
    padding: 2px;
}
table.note > tbody > tr > td {
    background: #eeeeee;
    border: 1px solid #ccc;
    padding: 1em 1em 1em 1em;
    text-align: left;
}
table.note > tbody > tr > td > p:first-child { margin-top: 0; }
table.note > tbody > tr > td > p:last-child { margin-bottom: 0; }
table.note > tbody > tr > td { border-style: solid; }
table.note > tbody > tr > td, table.note > tbody > tr > td p { text-align: left; }

table.note.emphasis > tbody > tr > td,
    table.note.emphasis > tbody > tr > td * { font-style: italic; }
table.note.strong > tbody > tr > td,
    table.note.emphasis > tbody > tr > td * { font-style: bold; }
table.note.distinct { border-collapse: separate; border-style: solid; }

table.note.info { border-color: #aacaaa; }
table.note.notice { border-color: #cac25d; }
table.note.warning { border-color: #cc9999; }
table.note.error { border-color: #cc9999; }

table.note.info > tbody > tr > td { background: #eeffee; border-color: #bbdabb; }
table.note.notice > tbody > tr > td { background: #ffffdd; border-color: #dad26d; }
table.note.warning > tbody > tr > td { background: #fbeded; border-color: #dbadad; }
table.note.error > tbody > tr > td { background: #fbeded; border-color: #dbadad; }
table.note.error * { color: red; }

/* ---- separator ---- */

p.separator {
    bottom: -0.15em;
    position: relative;
    text-align: center !important;
}
p.separator:after { content: "*\00a0\00a0\00a0\00a0*\00a0\00a0\00a0\00a0*"; }
p.separator.end:after { content: "###"; }

/* ---- codeblock ---- */

pre.codeblock { margin-left: 40px; }
pre.codeblock > var { font-family: serif; }
blockquote > pre.codeblock { margin-left: 2em; }
blockquote > pre.codeblock:first-child { margin-left: 0em; }

.codeblock .kw1 { color: #a1a100; }
.codeblock .kw2 { color: #000000; }
.codeblock .kw3 { color: #000066; }
.codeblock .kw4 { color: #f63333; }
.codeblock .co1 { color: #808080; }
.codeblock .co2 { color: #808080; }
.codeblock .coMULTI { color: #808080; }
.codeblock .es0 { color: #000033; }
.codeblock .br0 { color: #66cc66; }
.codeblock .st0 { color: #ff0000; }
.codeblock .sy0 { color: #339933; }
.codeblock .nu0 { color: #ff33ff; }
.codeblock .me0 { color: #006600; }
.codeblock .me1 { color: #202020; }
.codeblock .me2 { color: #202020; }
.codeblock .re0 { color: #cc00cc; }
.codeblock .re1 { color: #6666ff; }
.codeblock .re2 { color: #3333ff; }
.codeblock .re3 { color: #993333; }
.codeblock .re4 { color: #993333; }
.codeblock .ln-xtra { background-color: #ffc; }

/* eof */
