@namespace url(http://cnx.rice.edu/cnxml);

*{
border: 1px dotted #999;
clear: both;
}

document{
font-family: helvetica, arial, sans-serif;
font-size: .9em;
border: 0 solid #369;
border-left-width: 1.25em;
background-color: #ccc;
}

document>name:before{
color: #258;
padding-left: 0;
}

document>name{
display: block;
background-color: #69c;
color: #fff;
margin: 0;
padding: .4em 3.3em .4em .85em;
font-family: verdana, tahoma, century gothic, gothic l, arial, helvetica, sans-serif;
font-size: 1.75em;
font-variant: normal;
font-weight: bold;
font-stretch: normal;
letter-spacing: -1px;
border: 0 solid #c90;
border-bottom-width: 1px;
}

content{
margin: 1.5em;
display: block;
border: 0 
}

example:before, problem:before, solution:before, definition:before,
meaning:before, equation:after, rule:before, proof:before, note:before,
statement:before, exercise:before, media:before, list:before,
para:before, code[type=block]:before, quote[type=block]:before,
equation:before, figure:before, table:before, glossary:before, 
section:before, subfigure:before{
font-weight: bold;
padding: .5em;
display: block;
color: #888;
text-transform: capitalize;
text-transform: uppercase;
font-size: 8px;
line-height: normal;
font-family: tahoma, verdana, helvetica, arial, sans-serif;
text-align: left;
font-style: normal;
letter-spacing: 1px;
}

name:before, list[type=inline]:before, quote:before, 
seealso:before, caption:before, definition>term:before, 
note[type=footnote]:before, item:before{
font-size: 8px;
text-transform: uppercase;
margin: 0;
line-height: normal;
font-style: normal;
text-align: left;
letter-spacing: 1px;
font-weight: bold;
display: inline;
font-family: tahoma, verdana, helvetica, arial, sans-serif;
color: #888;
padding: 0 0 .4em .4em
}

name:before{
content: "Name: ";
}

name{
font-weight: bold;
padding: 0 .5em .1em 0;
line-height: normal;
}

section:before{
content: "Section: ";
margin: -1.25em 0 0 -1.25em;
}

section{
display: block;
margin: 1em 0;
padding: .75em;
background-color: #eee;
}

section>name:before{
padding-left: 0;
}

section>name{
display: block;
color: #369;
margin: 0 0 .5em;
padding: 0;
border: 0 solid #369;
border-bottom-width: 2px;
border-right-width: 2px;
font-weight: bold;
font-size: 1.45em;
letter-spacing: -1px;
}

section section{
margin: 1.25em .75em 1.25em 3em;
}

section section>name:before{
padding-left: .4em;
}

section section>name{
color: #369;
border: 0 solid #369;
border-left-width: 2px; 
border-bottom-width: 2px;
font-size: 1em;   
padding: 0 0 .2em .2em;
letter-spacing: normal;
}

example section>name, proof section>name, problem section>name, 
solution section>name, statement section>name{
font-weight: normal;
border: 0 solid #369;
border-bottom-width: 1px;
padding: 0 0 .25em 0;
font-size: 1em;
}

example section, problem section, solution section, statement section, 
proof section{
margin-top: 1em;
margin-bottom: 2.5em;
margin-left: 3em;
}

list>name{
margin-bottom: .75em;
}

list:before{
content: "List (Bulleted): ";
margin: -1.25em 0 0 -1.25em;
}

list[type=enumerated]:before, list[type=bulleted]:before, 
list[type=named-item]:before{
content: "List (" attr(type) "): ";
}

list, list[type=enumerated], list[type=bulleted], list[type=named-item]{
display: block;
background-color: white;
margin: .5em 0;
padding: .75em;
}

list item, list[type=enumerated]>item, list[type=bulleted]>item{
display: list-item;
list-style: disc outside;
margin: .25em 0 .25em 2.5em;
padding: .25em;
}

list[type=enumerated]>item{
list-style-type: decimal;
}

item list[type=enumerated] item, item list[type=bulleted] item{
margin-left: 1.5em;
}

list[type=inline]:before{
content: "List (Inline): ";
}

list[type=inline]{
display: inline;
padding: .15em;
margin: 0;
background-color: white;
}

list[type=inline]>item:before{
content: "Item: ";
}

list[type=inline]>item{
display: inline;
padding: 0;
margin: 0;
}

list[type=inline]>item:after{
content: ", ";
}

list[type=inline]>item:last-child:after{
content: "";
}

list[type=named-item]>item{
margin: .25em 0 .25em 3em;
display: block;
}

list[type=named-item]>item>name{
display: block;
margin-left: -2em;
background-color: white;
margin-bottom: .2em;
}

para:before{
content: "Para: ";
margin: -.8333em 0 0 -.83333em;
}

para{
background-color: white;
display: block;
line-height: 1.4em;
padding: .5em;
margin: .5em 0 1em;
}

para>name{
display: block;
margin-bottom: .5em;
}

code{
font-family: courier, courier new, monospace;
font-size: .9em;
color: #060;    
font-style: normal; 
}                  

code[type=block]:before{
content: "Code (Block): ";
margin: -.83333em 0 0 -.83333em;
}

code[type=block]{
display: block;
margin: .5em 3em;
text-align: left;
line-height: 1em;
white-space: pre;
background-color: white;
padding: .5em;
}

code quote[type=block], foreign quote[type=block], quote[type=block] 
code, quote[type=block] foreign, code cite, cite code, code{
font-style: normal;
}

code emphasis, emphasis code{
font-style: normal;
font-weight: bold;
}

quote:before{
content: "Quote (Inline): ";
}

quote[type=block]:before{
content: "Quote (Block): ";
margin: -.83333em 0 0 -.83333em;
}

quote[type=block]{
display: block;
margin: .75em 5em;
font-style: italic;
line-height: normal;
padding: .5em;
}                  

quote[src]:after, term[src]:after{
font-size: .75em;
content: " [" attr(src) "]";
font-style: normal;
font-weight: normal;
}

quote[type=block][src]:after{
display: block;
text-align: right;
}

example:before{
content: "Example: ";
margin: -1.25em 0 0 -1.25em;
}

example{
display: block;
background-color: white;
margin: 1em 5em;
padding: .75em;
border: 1px solid #000;
border-top-color: #aaa;
border-left-color: #aaa;
}

example para, statement para{
margin: .5em 0;
}

definition example:before, rule example:before{
margin-top: -.83333em;
}

definition example, rule example{
margin: .5em 2.5em;
padding: .5em .75em 0;
}


exercise:before{
content: "Exercise: ";
margin: -1.25em 0 0 -1.25em;
}

exercise{
display: block;
background-color: white;
margin: 1em 0;
padding: .75em;
}

problem:before{
content: "Problem: ";
margin: -.83333em 0 0 -.83333em;
}

problem, solution{
display: block;
padding: .5em;
}

solution:before{
content: "Solution: ";
margin: -.83333em 0 0 -.83333em;
}

solution{
margin-top: 1em;
margin-left: 2.5em;
}


link{               
color: #960;
}

link:after{
font-size: .75em;
content: " [" attr(src) "]";
}

emphasis, foreign, link, cnxn, cite, code, quote, term{
border-top-width: 0;
border-left-width: 0;
border-right-width: 0;
}

quote[type=block], code[type=block]{
border-width: 1px;
}

emphasis, foreign, cite, quote, term{
font-style: italic;
background-color: #eee;
}

quote[type=block]{
background-color: white;
}

cnxn{
color: #600;
font-size: .8em;
text-transform: uppercase;
}

cnxn:after{
font-size: .9375em;
}

cnxn[target]:after{
content: " [#" attr(target) "]";
}

cnxn[document]:after{
content: " [/content/" attr(document) "/latest/]";
}

cnxn[document][version]:after{
content: " [/content/" attr(document) "/" attr(version) "/]";
}

cnxn[document][target]:after{
content: " [/content/" attr(document) "/latest/#" attr(target) "]";
}

cnxn[document][version][target]:after{
content: " [/content/" attr(document) "/" attr(version) "/#" attr(target) "]";
}

link:after, cnxn:after{
font-style: normal;
font-weight: normal;
text-transform: none;
color: black;
vertical-align: .1em;
}

code cnxn{
font-size: 1em;
text-transform: none;
}

code cnxn:after, code link:after{
content: "" !important;
}

term{
font-weight: bold;
font-style: normal;
display: inline;
}

definition>term:before{
content: "Term: ";
}

definition:before{
content: "Definition: ";
margin: -1.25em 0 0 -1.25em;
}

definition{
display: block;
background-color: white;
margin: 1em 0;
padding: .75em;
}

meaning:before{
content: "Meaning: ";
margin: -.83333em 0 0 -.83333em;
}

meaning, seealso{
display: block;
margin: .5em 2.5em;
padding: .5em;
}

seealso:before{
content: "See Also: ";
}

seealso{
margin-left: 5em;
}

cite emphasis, cite foreign, emphasis cite, emphasis foreign, foreign 
cite, foreign emphasis, quote[type=block] cite, quote[type=block] 
emphasis, quote[type=block] foreign, quote[type=block] cite emphasis 
foreign, quote[type=block] cite foreign emphasis, quote[type=block] 
emphasis cite foreign, quote[type=block] emphasis foreign cite, 
quote[type=block] foreign emphasis cite, quote[type=block] foreign cite 
emphasis{
font-style: normal;
}

foreign, cite emphasis foreign, cite foreign emphasis, emphasis cite 
foreign, emphasis foreign cite, foreign cite emphasis, foreign emphasis 
cite, quote[type=block] cite emphasis, quote[type=block] cite foreign, 
quote[type=block] emphasis cite, quote[type=block] emphasis foreign, 
quote[type=block] foreign cite, quote[type=block] foreign emphasis, code 
term emphasis, code emphasis term, term code emphasis, term emphasis 
code, emphasis code term, emphasis term code{
font-style: italic;
}

equation:before{
content: "Equation: ";
margin: -.83333em 0 0 -.83333em;
}

equation{
margin: .5em 0 1em;
display: block;
background-color: white;
padding: .5em;
text-align: center;
}

equation name{
text-align: left;
display: block;
margin-bottom: 1em;
}


figure:before{
content: "Figure: ";
margin: -.83333em 0 0 -.83333em;
}

figure{
padding: .5em;
margin: 1.5em 25%;
text-align: center;
border: 0 #333 solid;
border-bottom-width: 1px;
border-top-width: 1px;
display: block;
background-color: white;
}

figure name{
display: block;
margin-bottom: .5em;
}

subfigure:before{
content: "Subfigure: ";
margin: -.83333em 0 0 -.83333em;
}

subfigure{
display: table-cell;
padding: .5em;
margin: .5em;
}

figure[orient=vertical] subfigure{
display: block;
}

caption:before{
content: "Caption: ";
padding-left: 0;
}

caption{
display: block;
padding: .5em;
color: #333;
font-size: .8em;
padding-top: .5em;
text-align: left;
border-top: 1px solid #555;
margin-top: .5em;
}

caption cnxn{
font-size: .85em;
}

caption cnxn:after{
font-size: .95em;
}

caption link:after{
font-size: .85em;
}

subfigure caption{
margin-bottom: .5em;
}

caption code{
font-size: .95em;               
}           


table:before{
content: "Table: ";
margin: -1.25em 0 0 -1.25em;
}

table{
margin: 1em auto;
display: table;
/* display: table; prevents the table:before stuff from working, but it 
did at least prevent the table from taking up it's whole width */
display: block;
background-color: white;
padding: .75em;
text-align: center;
border-collapse: collapse;
}

tgroup, colspec, thead, tfoot, tbody{
border-width: 0;
}

colspec, spanspec{
display: none;
}

thead{
display: table-header-group;
}

tbody{
display: table-row-group;
}

tfoot{
display: table-footer-group;
}

row{
display: table-row;
}

entry, entrytbl{
display: table-cell;
text-align: left;
padding: .25em;
border: 1px solid black;
}

thead entry, tfoot entry{
font-weight: bold;
}

table name{
text-align: center;
margin: .5em 0;
display: block;
}


note:before{
content: "Note: ";
margin: -.83333em 0 0 -.83333em;
}

note[type]:before{
content: "Note (" attr(type) "): ";
}

note[type=footnote]:before{
content: "Footnote: ";
}

note{
margin: .5em 3em;
padding: .5em;
background-color: white;
display: block;
border: 1px solid #000;
border-top-color: #aaa;
border-left-color: #aaa;
}

note[type=footnote]{
display: inline;
margin: 0;
padding: .15em;
border: 1px dotted #999;
}


media:before{
content: "Media (" attr(type) "): ";
margin: -.83333em 0 0 -.83333em;
}

media{
display: block;
margin: .75em 0;
padding: .5em;
background-color: white;
}

param{
border-width: 0;
}


rule:before{
content: "Rule (" attr(type) "): ";
margin: -1.25em 0 0 -1.25em;
}

rule{
margin: 1em 0;
display: block;
padding: .75em;
background-color: white;
}

statement:before{
content: "Statement: ";
margin: -.83333em 0 0 -.83333em;
}

statement{
display: block;
margin: .75em 0 .5em 2.5em;
padding: .5em;
}

proof:before{
content: "Proof: ";
margin: -.8333em 0 0 -.83333em;
}

proof{
display: block;
margin: .5em 0 0 2.5em;
padding: .5em;
}


math{
text-align: center;
color: #060;
}

math *{
border-width: 0;
}

/*
math{
visibility: hidden;
display: block;
}

math:after{
display: block;
visibility: visible;
margin-top: -1.25em;
content: "[ETNA cannot edit MathML]";
}
*/


glossary:before{
content: "Glossary: ";
color: #369;
font-size: .8em;
letter-spacing: normal;
padding: 0;
}

glossary{
display: block;
margin: 1.5em;
padding: .75em;
background-color: white;
}

glossary definition *{
display: inline;
padding: 0;
margin: 0;
border: 1px dotted #999;
}

glossary definition *:before{
margin: 0;
}

/* Still to work on: bibliographies, qml, entrytbl? */
