EEBO { 
	font-family: "arial unicode ms"; 
	margin-left: 10px;
	}
	
TEMPHEAD {
	display: none;
	}
	
IDG  {
	display: block;
	font-size: 8pt;
	color: gray;
	margin-bottom: 3em;
	}

IDG:before {content: "TCP id " attr(ID)	}
	
BIBNO:before { content: "bib no. (" attr(T) ") " }	

BIBNO {
	display: block;
	}

STC:before { content: "STC (" attr(T) ") " }


STC {
	display: block;
	}

VID:before { content: "image set " }


VID {
	display: block;
	}

EEBO > TEXT:before {content: "Primary language is " attr(LANG) "."; 
                    display: block;
                    font-size: 8pt;
                    color: gray;
                   }

GROUP > TEXT:before {content: "Primary language is " attr(LANG) "."; 
                    display: block;
                    font-size: 8pt;
                    color: gray;
                   }


ABBR { 
       display: inline;
       text-decoration: underline;
	
	}
	
ABBR[EXPAN]:after {
        content: " (" attr(EXPAN) ") ";
        color: green;
        font-size: 8pt;
        }

ADD:before {
	content: "{";
	}
	
ADD {
	text-decoration: line-through;
	}
	
ADD:after {
	content: "}";
	}

ARGUMENT {
        display: block;
        margin-left: 20%;
        margin-right:20%;
        background-color: #FFCC66;
        margin-top: 1em;
        margin-bottom: 1em;
         }
         
         
ARGUMENT > HEAD {
        display: block;
        font-size: 14pt;
        color: green;
        text-align: center;
        } 
        
BACK:before { 
	content: "[Back matter]";
	color: red;
	margin-top: 1em;
	margin-bottom: 1em;
	}
	
BIBL {
	display: inline;
	color: #CC0099;
	}

EPIGRAPH > BIBL:before { content: "--" ; }
Q > BIBL:before { content: "--" ; }

EPIGRAPH > BIBL {
        display: block;
        text-align: right;
        color: #CC0099;
        }

Q > BIBL {
        display: block;
        text-align: right;
        color: #CC0099;
        }
	
BYLINE {
	display: block;
	background-color: #CCFFCC;
	}

BODY:before {
	content: "[Text Body]";
	color: red;
	margin-top: 1em;
	margin-bottom: 1em;
	}
	
	
CLOSER {
        display: block;
        margin-top: 1em;
        margin-bottom: 1em;
	font-family: "Zapf Chancery", cursive;
	font-size: 14pt;
	}

DATE {
       display: inline;
       color: magenta;
     }


DATELINE {
       display: block;
       text-align: right;
       font-size: 9pt;
       }
       
       
DIV1, DIV2, DIV3, DIV4, DIV5, DIV6 {
	display: block;
	margin-top: 3em;
	margin-bottom: 3em;
	}
	
DIV1:before {
	content: "[ (DIV1," attr(LANG) ") " attr(TYPE) " " attr(N)"]"; color: #FF0000;
		}
DIV2:before {
	content: "[ (DIV2," attr(LANG) ") " attr(TYPE) " " attr(N)"]"; color: #FF0000;
		}
DIV3:before {
	content: "[ (DIV3," attr(LANG) ") " attr(TYPE) " " attr(N)"]"; color: #FF0000;
		}
DIV4:before {
	content: "[ (DIV4," attr(LANG) ") " attr(TYPE) " " attr(N)"]"; color: #FF0000;
		}
DIV5:before {
	content: "[ (DIV5," attr(LANG) ") " attr(TYPE) " " attr(N)"]"; color: #FF0000;
		}
DIV6:before {
	content: "[ (DIV6," attr(LANG) ") " attr(TYPE) " " attr(N)"]"; color: #FF0000;
		}




EPIGRAPH {
	display: block;
	text-align: center;
	}
		
FIGURE:before {
	content: "FIGURE" ;
	text-decoration: underline;
	}

FIGURE {
         display: block;
         background: yellow; 
	 margin-top: 1 em;
	 margin-bottom: 1 em;
	 margin-left: 20%;
	 margin-right: 20%;
	 padding: 3px 3px 3px 3px;
        }

FIGURE > HEAD { display: block;
              color: blue;
              font-size: 12pt;
            }
            
FIGDESC { display: block;
          font-size: small;
          color: brown;
         }
         
FIGDESC:before { content: "[" ; }
FIGDESC:after  { content: "]" ; }

FRONT {display: block;
       margin-top: 1em;
       }
       
FRONT:before {
        display: block;
	content: "[Front matter]";
	color: red;
	margin-top: 1em;
	}
	
GAP    {
	display: inline;
	
}

GAP:before {
	content: attr(DISP) ;
	}

HEAD {
	display: block;
 	color: red; 
 	font-size: 18pt;
	}

LG HEAD { font-size: 14pt; }
LIST HEAD { font-size: 14pt; }

HI {
	font-style: italic;
	}
	
HI > HI {
	font-style: italic;
	font-weight: bold;
	}	
	
LETTER {
	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 10%;
	margin-right: 10%;
	background-color: #CCFFFF;
	}
	
LIST {
	display: block; 
	margin-top: 1em; 
	margin-bottom: 1em;
	margin-left: 1em;
	}

LIST > HEAD {
        display: block;
        font-size: 14pt;
        color: green;
        margin-left: 2em;
        }
        
LIST > TRAILER {
        display: block;
        font-size: 14pt;
        color: green;
        margin-left: 2em;
        }
      
        
ITEM {
	display: list-item; 
	margin-bottom: 1em;
	margin-left: 2em;
	list-style-type: disc;
	}
	
ITEM ITEM {
	display: list-item; 
	margin-bottom: 1em;
	margin-left: 2em;
	list-style-type: circle;
	}	

ITEM ITEM ITEM {
	display: list-item; 
	margin-bottom: 1em;
	margin-left: 2em;
	list-style-type: square;
	}
	
ITEM ITEM ITEM ITEM {
	display: list-item; 
	margin-bottom: 1em;
	margin-left: 2em;
	list-style-type: disc;
	}	
	

LABEL + ITEM {
        display: block;
        text-indent: 0;
        margin-left: 3em;
        font-size: smaller;
         }
        
LABEL + ITEM[ROLE="label"] {
        display: block;
        text-indent: 0;
        margin-left: 3em;
        color: green;
        
         }
         
LABEL + ITEM[ROLE="total"] {
        display: block;
        text-indent: 0;
        margin-left: 3em;
        font-weight: bold;
        background-color: gray;
        
         }         
        
LIST > LABEL {
        display: list-item;
        font-weight: bold;
        margin-left: 1em;
        margin-right: 40%;
        margin-top: 1em;
        list-style-type: none;
	}

LIST > LABEL[ROLE="label"] {
        display: list-item;
        font-weight: bold;
        margin-left: 1em;
        margin-right: 40%;
        margin-top: 1em;
        list-style-type: none;
        color: green;
	}


ITEM > LABEL {
	display: inline; 
	font-family: italic ;  
	font-weight: bold ; 
	}
	
P > LABEL {
	display: inline; 
	font-family: italic ;  
	font-weight: bold ; 
	}

CELL > LABEL {
        display: block;
        text-align: center;
        font-weight: bold;
        color: green;
        }
	
LB {
        display: block;
	
	}
	
LG {
	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 3em;
	
	}

LG:before {
	content: "---stanza "attr(N) "---";
	font-size: 8pt;
	color: green;
	text-align: center;
	}

L:before { content: attr(N) " "; color: green; font-size: smaller; }

L {
	display: block;
	}
	
	
MILESTONE:before {
	content: "["attr(UNIT) " " attr(N)"]"
	}

MILESTONE {
        font-size: 9pt;
        color: green;
        }
        
NOTE:before {
	content: " ["attr(PLACE)" note "attr(N) ":";
	}

NOTE:after {
        content: "] " }
        
NOTE {
	font-size: smaller;
	color: #999900;
	}
	
OPENER {
        display: block;
        margin-top: 1em;
        margin-bottom: 1em;
	font-family: "Zapf Chancery", cursive;
	font-size: 14pt;
	}
	
P {
	display: block; 
	text-indent: 1em;  
	font-face: "arial unicode ms";  
	margin-top: 1em; 
	}

P[REND="small"] {
        display: block;
        text-indent: 1em;
        font-face: "arial unicode ms";
        margin-top: 1em;
        font-size: smaller;
        }
        
PB  {
	display: block; 
	text-align: center; 
	margin-bottom: 3px; 
	margin-top: 3px; 
	color: gray; 
	font-size: 8pt;
	}		
	
PB:before {
	content: "----------page "attr(N)" on ref "attr(REF)"---------";
	}
	
	
	
Q {
	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 10%;
	margin-right: 10%;
	background-color: #FFFFCC;
	}

Q[REND="inline"] {
	display: inline;
	background-color: #FFFFCC;
	}

Q[REND="inline"]:before { content: "&#x00AB"; }
Q[REND="inline"]:after { content: "&#x00BB"; }

	
SALUTE { 
	display: block;
	color: orange;
	}
	
OPENER SALUTE {
	display: inline;
	}

CLOSER SALUTE {
        display: inline;
        }

SIGNED {
        display: block;
        color: blue;
       }
       
OPENER SIGNED {
	display: inline;
	}

CLOSER SIGNED {
        display: inline;
        }
        
SP {
	display: block;
	margin-top: 1em;
	
	}
	
SPEAKER {display: inline;
         font-style: italic;
	background-color: #CCCCFF;
	}

STAGE:before {
	content: "[";
	}
	
STAGE:after {
	content: "]";
	}

STAGE {
	font-size: smaller;
	font-style: italic;
	color: brown;
	}
	
TABLE {
	display: table; 
	color #0099FF; 
	margin-top: 1em; 
	margin-bottom: 1em; 
	background-color: #FAEBD7;
	empty-cells: show
	}
	
TABLE > HEAD {
	display: table-caption; 
	caption-side: top; 
	color: green;
	font-size: 12pt;
	text-align: center;
	}

	
ROW {
	display: table-row;
	}

CELL {
	display: table-cell; 
	color: #000066; 
	border: 2px groove #0099FF;
	vertical-align: middle;
	}

CELL[ROLE=label] {
        background-color: yellow;
        font-weight: bold;
        text-align: center;
        vertical-align: baseline;
        }
        
CELL[ROLE=total] {
        background-color: gray;
        font-weight: bold;
        border: 1px solid black; }
        
TABLE > TRAILER {
	display: block; 
	color: green;
	font-size: 12pt;
	text-align: center;
	}
        
TRAILER {
        display: block;
        color: brown;
        text-align: center;
        font-size: 14pt;
	
	}

SUP {
      display: inline;
      vertical-align: super;
      font-size: 60%;
     }
     
SUB {
      display: inline;
      vertical-align: sub;
      font-size: 60%;
     }
     
     
ABOVE {
      line-height: 1.6; 
      margin-left: -5; 
      margin-right: -5; 
      vertical-align: 100%;
      }



	

	

