#searchbox {
	margin-bottom:1em;
}
#searchbox a {
	margin-left: 15px;
}

.status {
    font-size: small;
    color: #888888; /* should be grey */
    float: right;
    margin-right:20px;
    clear: right;
}
.editor, .author {
    color: black;
}

#text-body {
	 /* break away from menus */
	margin: 2em 0;
	/* normalize font-size and line-height so hanging-words can be accurately positioned */
	font-size: 16px;
	line-height: 22px;
	position: relative;
	padding-left: 25px; /* room for TLNs */
	width: 694px; /* this is the natural width from the container, but it is needed for print view to keep LNs in the right spot */
}
.innerContent {
    max-width: 32em; /* prevent right-aligned lines from going over too far */
    /* FIXME: this should be closer to 25em for Folio texts */
    /*        come up with a way to adjust this as necessary */
}
.popup .innerContent {
    clear: both;
}
.innerContent img {
    max-width: 694px; /* fit large images within content area */
}

.chara-annotations {
    display: block;
    text-align: center;
    font-size: 18px;
    clear: both;
    margin-bottom: .8em;
}

/*******************
 *  New navigation 
 *******************/
#document-navigation,
#document-navigation-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}
#document-navigation > a,
#document-navigation-bottom > a {
    margin: 0 1em;
}
#document-navigation > a.disabled:hover {
	background-color: transparent;
}
#document-navigation .dropDownNav {
    margin: 0 1em;
}
#jump { /* only applicable when JS is off */
    margin-left: 1em;
}

/******************************/
/**       ISE Markup         **/
/******************************/
.blackletter {
	/* what font should we use? just using bold for now.. */
	font-weight:bolder;
}
.blackletter i {
	/* "italic" in blackletter is just "roman" */
	font-weight:normal;
}
.roman {
	font-weight:normal;
}
.foreign {
    font-style: italic;
}

.speaker {
    font-style: italic;
    padding-right: .5em;
    padding-left: .8em;
}

.sceneleader {
    /* style like h2 */
    font-family: "EB Garamond", Georgia, serif;
    font-weight: normal;
    color: #591818;
    font-size: 21px;
    margin-bottom: .83em;
    display: inline-block;
}
.line ~ .line .sceneleader {
    margin-top: .83em;
}
.page .sceneleader,
.page .line ~ .line .sceneleader {
    margin-top: 0;
    margin-bottom: 0;
}

.sd {
    clear: right;
}
.uncertain, .optional {
    color: gray;
}

.marginalia {
	width: 12em;
	margin: 22px 1em;
	font-family: sans-serif;
	font-size: 90%;
}
.marginalia.left {
	float: left;
	margin-left: 0;
	clear: left;
}
.marginalia.right {
	float: right;
	margin-right: 0;
	text-align: left;
	clear: right;
}

.hangingword {
	text-align: right;
    position: absolute;
    right: 1.4em;
}
.hangingword.next {
	margin-top: 22px; /* line height */
}
/* .hangingword.prev's margin set inline, since it depends on the number of <br>s */

.iembedContainer.embeddedTextLines,
.iembedContainer.embeddedTextNoLines {
	margin: 0;
}
.iembedContainer.embeddedTextLines .iembedContent,
.iembedContainer.embeddedTextNoLines .iembedContent {
    position: static; /* don't change milestone positioning parent */
}
.iembedContainer.embeddedTextNoLines,
.iembedContainer.embeddedTextNoLines .iembedContent {
    display: inline;
}

/*** Specifically for Modern works ***/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
[data-is-modern] .line {
    padding-left: 20px;
}
[data-is-modern] .speaker {
    font-style: normal;
    font-variant: small-caps;
}
[data-is-modern] .sponly,
[data-is-modern] .ldonly {
    padding-left: 0;
}
[data-is-modern] .sponly {
    margin-top: 11px; /* half line-height */
}
[data-is-modern] .sd {
    font-style: italic;
}
[data-is-modern] .sdonly .exit {
    display: block;
    text-align: right;
}
[data-is-modern] .quote {
    margin: 1em;
}

.invisible {
	visibility: hidden;
}

/* line numbers */
.milestone {
	font-family: Times, serif;
	font-size: 8px;
	line-height: 18px;
	text-decoration: none;
	position: absolute;
    right: 693px;
    padding: 0 7px; /* overlap slightly with the line to make mousing easier */
    color: gray;
	text-align: left;
}
/* override base.css highlighting of anchor links */
a.milestone:hover,
.milestone:visited:hover {
	background-color: transparent;
}

/* alignment */
.right {
    text-align: right
}
.center {
    text-align: center;
}

.space {
    /* remove space taken up by placeholder chars */
    display: inline-block;
    width: 0px;
    height: 1px; /* make sure it's never taller than the line */
    overflow: hidden;
	/* actual space set inline by xslt */
}

/***  page layout  ***/
/*~~~~~~~~~~~~~~~~~~~*/
.page {
    position: relative;
    display: table; /* fit content */
    border: 1px solid #999;
    background-color: white;
    padding: 1.4em;
    margin-top: 20px; /* separate consectuive pages */
    min-height: 14em; /* 10 lines */
    min-width: 450px; /* keep quarto pages reasonably wide */
    margin-left: auto;
    margin-right: auto;
}
.page::after { /* clearfix */
    content: "";
    display: block;
    height: 0;
    clear: both;
}
.page .blank {
    display: block;
    text-align: center;
}
.page hr {
    border: none;
    border-top: 1px solid black;
    margin: .7em auto;
    height: 0;
}
.header { /* contains page number and running title */
    overflow: hidden;
    border-bottom: 1px solid black;
    margin-bottom: 1.4em;
}
.pagenumber {
    float: right;
    font-weight: bold;
}
.runningtitle {
    text-align: center;
}
.signature {
    text-align: center;
    font-weight: bold;
    margin-top: 1em;
}
.catchword {
    float: right;
    margin-top: 1em;
}
.colgroup::after { /* clearfix */
    content: "";
    display: block;
    height: 0;
    clear: both;
}
.column {
    display: table-cell;
    border-left: solid 1px #999;
    padding-left: 15px;
    width: 375px;
}
.column:first-child {
    border-left: none;
    padding-left: 0;
    padding-right: 15px;
}
.page .line {
    white-space: nowrap;
}
/* left column or full-width */
.page .milestone {
    left: auto;
    right: 100%;
    text-align: right;
}
/* interior columns */
.column:nth-child(n+2):nth-last-child(n+2) {
    position: relative;
}
/* right column */
.column:last-child .milestone {
    left: 100%;
    right: auto;
    text-align: left;
}
.page .letterspaced {
    letter-spacing: 0.2em;
}

/* scene equivalents */
.equivs {
    float: right;
}
.line ~ .equivs {
    margin-top: 20px; /* align approx with LD expected on next line */
}
