/*
** Copyleft 2005 Syd Bauman
*/

TEI {
	display: block;
	margin: 1em 1em 1em 1em;
	border: thin burlywood solid;
}

/*
** <teiHeader> section
**
** Note that these selectors are path specific (i.e., they list the
** path from the root node to the element in question), so they do
** not apply to elements elsewhere. E.g., a <title> can be used
** inside <bibl>, but that would not be affected by the following
** declaration.
*/

TEI > teiHeader > fileDesc > titleStmt > title {
	display: block;
	text-align: center;
	font-size: xx-large;
	margin: 1ex 1ex 1ex 1ex;
}
TEI > teiHeader > fileDesc > titleStmt > author {
	display: block;
	text-align: center;
	font-size: x-large;
	margin: 1ex 1ex 1ex 1ex;
}
TEI > teiHeader > fileDesc > titleStmt > editor,
TEI > teiHeader > fileDesc > titleStmt > funder,
TEI > teiHeader > fileDesc > titleStmt > principal,
TEI > teiHeader > fileDesc > titleStmt > respStmt,
TEI > teiHeader > fileDesc > titleStmt > sponsor { display: none; }

TEI > teiHeader > fileDesc > publicationStmt > date {
	display: block;
}
TEI > teiHeader > fileDesc > publicationStmt > address,
TEI > teiHeader > fileDesc > publicationStmt > authoritey,
TEI > teiHeader > fileDesc > publicationStmt > availability,
TEI > teiHeader > fileDesc > publicationStmt > distributor,
TEI > teiHeader > fileDesc > publicationStmt > idno,
TEI > teiHeader > fileDesc > publicationStmt > p,
TEI > teiHeader > fileDesc > publicationStmt > pubPlace,
TEI > teiHeader > fileDesc > publicationStmt > publisher { display: none; }

TEI > teiHeader > fileDesc > sourceDesc { display: none; }

TEI > teiHeader > encodingDesc { display: none; }

TEI > teiHeader > profileDesc { display: none; }

TEI > teiHeader > revisionDesc { display: none; }

/*
** major structure
*/
group {
	display: block;
}

text {
	display: block;
}

front {
	display: block;
}

body {
	display: block;
}

back {
	display: block;
}

div {
	display: block;
}

/*
** "divtop" and "divbot" kinds of things
*/
head {
	display: block;
}

argument {
	display: block;
}

epigraph {
	display: block;
}

dateline {
	display: block;
}

salute {
	display: block;
}

opener > salute {
	display: block;
}

closer > salute {
	display: block;
}

trailer {
	display: block;	
}

/*
** prose
*/

p {
	display: block;
}

figure {
	display: block;
}

list {
	display: block;
}

item {
	display: block;
}

/*
** poetry
*/
l {
	display: block;
}

lg {
	display: block;
	padding: 1ex 1ex 1ex 1ex;
}

/*
** drama
*/
sp {
	display: block;
}

speaker {
	display: block;
}

stage {
	display: block;
}

/*
** variants
*/
app > rdg[wit~="#LOG1855"] {
	color: green;
	}
app > rdg[wit~="#LOG1855"]:before {
	content: "{";
	}
app > rdg[wit~="#LOG1855"]:after {
	content: "}";
	}
	
app > rdg[wit~="#LOG1891"] {
	color: blue;
	}
app > rdg[wit~="#LOG1891"]:before {
	content: "{";
	}
app > rdg[wit~="#LOG1891"]:after {
	content: "}";
	}
	
app > lem {
	color: green;
	}
	
app > rdg[varSeq]:before {
	color: purple;
	content: "{" attr(varSeq) ":";
	}

app > rdg[varSeq]:after {
	color: purple;
	content: ":" attr(varSeq) "}";
	}

del {
	color: red;
	}
del[rend~="overstrike"] {
	text-decoration: line-through;
	}
add {
	color: darkgreen;
	}
subst:before {
	color: yellowgreen;
	content: "(";
	}
subst:after {
	color: yellowgreen;
	content: ")";
	}


/*
** phrase-level
*/
gap:after {
	color: grey;
	font-style: italic;
	content: "[missing: " attr(extent) " " attr(unit) "]";
	}

q {
	display: inline;
}

name {
	display: inline;
}

date {
	display: inline;
}

soCalled {
	display: inline;
}

term {
	display: inline;
}

distinct {
	display: inline;
}

emph {
	display: inline;
}

/*
** That which used to be Janus tags in P4
*/

/* First, when a child of <choice> ... */

choice > abbr {
	display: inline;
}

choice > expan {
	display: inline;
}

choice > orig {
	display: inline;
}

choice > reg {
	display: inline;
}

choice > sic {
	display: inline;
}

choice > corr {
	display: inline;
}

/* ... then in any other circumstance */

abbr {
	display: inline;
}

expan {
	display: inline;
}

orig {
	display: inline;
}

reg {
	display: inline;
}

sic {
	display: inline;
}

corr {
	display: inline;
}
