@import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic);

BODY {
    color: #000;
    background-color: #f0f0f0;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 0px;
    margin: 0px;
}

* {
    line-height: 1.4;
}

#wrap {
    max-width: 842px;
    min-width: 392px;
    margin: 0 auto;
}

#wrap.fixedwidth {
    min-width: 842px;
}

.titleouter, .title, .block {
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: 2px 2px 2px #ccc;
    margin: 20px;
}

.titleinner, .title, .block {
    padding: 18px 25px;
}

.toc, .buttons {
    margin: 20px;
    text-align: center;
}

.footer {
    margin: 20px;
    margin-left: 40px;
    text-align: right;
}

.longfooter {
    margin: 20px;
    margin-right: 40px;
    text-align: left;
}

.titleleft, .titleright {
    vertical-align: middle;
    display: inline-block;
}

.titleleft {
    max-width: 300px;
}

.titleright {
    max-width: 500px;
}

.smallfig .titleleft {
    max-width: 200px;
}

.smallfig .titleright {
    max-width: 600px;
}

.titleleft IMG {
    margin: 0px;
    padding: 0px;
    outline: 1px solid #000;
    vertical-align: bottom;
}

.titleleft IMG.noborder {
    outline: none;
}

@media (max-width: 800px) {
    #wrap {
        min-width: 200px;
    }    

    .titleouter, .title, .block {
        margin-left: 0px;
        margin-right: 0px;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .titleouter, .title, .block:first-child {
        margin-top: 0px;
    }

    .titleinner, .title, .block {
        padding: 9px 12px;
    }

    .titleleft, .titleright {
        display: block;
        max-width: none;
    }

    .toc, .buttons {
        margin: 10px;
    }

    .footer {
        margin: 10px;
        margin-left: 20px;
        text-align: right;
    }

    .longfooter {
        margin: 10px;
        margin-right: 20px;
        text-align: left;
    }

}

@media (max-width: 600px) {
    .titleleft IMG {
        width: 100%;
        height: auto;
        max-width: 50%;
    }
}

H1 {
    margin: 0px;
    font-size: 2em;
    margin-top: 0px;
    margin-bottom: 20px;
    font-weight: 400;
}

H2 {
    margin: 0px;
    font-size: 1em;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

STRONG {
    font-weight: 700;
}

.inlineblock {
    vertical-align: top;
    display: inline-block;
    margin-right: 30px;
}

.inlineblock > H2 {
    margin-top: 0px;
}

.title H1, .titleinner H1 {
    font-weight: 700;
    margin-bottom: 0px;
}

.title H1 + P, .titleinner H1 + P {
    margin-top: 25px;
}

.title P:last-child, .block P:last-child, .block UL:last-child {
    margin-bottom: 7px;
}

.title H1 .subtitle, .titleinner H1 .subtitle {
    font-weight: 400;
}

.titlepart {
    display: inline-block;
}

.pubauthors, .pubforum {
    font-size: 1.3em;
    font-weight: 400;
    margin: 0px;
}

.pubauthors {
    margin-bottom: 20px;
}

.pubforum {
    margin-top: 20px;
    margin-bottom: 20px;
}

.small, .longfooter {
    font-size: 0.9em;
}

.light, .footer, .longfooter {
    font-weight: 300;
}

.heavy {
    font-weight: 700;
}

.nowrap {
    white-space: nowrap;
}

UL {
    margin-left: 1.5em;
    padding-left: 0em;
}

LI {
    margin-top: 0.7em;
    margin-bottom: 0.7em;
}

.compact LI {
    margin-top: 0em;
    margin-bottom: 0em;
}

.scroll {
    overflow: auto;
}

A:link, A:visited, A:hover, A:active {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #666;
    padding: 0px 1px;
}

.buttons A:link, .buttons A:visited, .buttons A:hover, .buttons A:active {
    color: #000;
    display: inline-block;
    border: 1px solid #000;
    padding: 2px 7px;
    background-color: #fff;
    box-shadow: 2px 2px 2px #ccc;
    margin: 4px 8px;
    border-radius: 4px;
}

.toc A:link, .toc A:visited, .toc A:hover, .toc A:active {
    color: #000;
    display: inline-block;
    border: none;
    padding: 2px 5px;
    margin: 0px 8px;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 0.9em;
}

A:hover, A:active, .toc A:hover, .toc A:active, .buttons A:hover, .buttons A:active {
    color: #fff;
    background-color: #000;
    border-color: #000;
    box-shadow: 2px 2px 2px #ccc;
}

.titleleft A:link, .titleleft A:visited, .titleleft A:hover, .titleleft A:active {
    color: #000;
    border-bottom: none;
    background-color: #fff;
}

A.plain:link, A.plain:visited, A.plain:hover, A.plain:active {
    color: #000;
    padding: 0;
    margin: 0;
    border-bottom: none;
    background-color: #fff;
    box-shadow: none;
}

TABLE {
    border-collapse: collapse;
}

TD, TH {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: left;
    vertical-align: top;
}

TD.right, TH.right {
    text-align: right;
}

.compact TD, .compact TH {
    padding-top: 2px;
    padding-bottom: 2px;
}

TD + TD, TH + TD, TD + TH, TH + TH {
    padding-left: 20px;
}

TR.lineabove TD, TR.lineabove TH {
    border-top: 1px solid #bbb;
}

.blockcanvas {
    display: block;
    margin-bottom: 7px;
}

.blocksvg {
    display: block;
    margin-bottom: 7px;
}

INPUT.good {

}

INPUT.bad {
    background-color: #faa;
}

PRE .hl, PRE .hl1, PRE .hl2, PRE .hl3 {
    font-weight: 700;
}

PRE .hl1 {
    color: #b00;
}

PRE .hl2 {
    color: #00c;
}

PRE .hl3 {
    color: #080;
}

VIDEO.scalable, IMG.scalable {
    width: 100%;
    height: auto;
    max-height: 100%;
}

.swap IMG:last-child { display:none }
.swap:hover IMG:first-child { display:none }
.swap:hover IMG:last-child { display:inline-block }
