[data-edition="twilight-sleep"] .v-edition-body{
	font-variant-numeric: oldstyle-nums;
}

[data-edition="twilight-sleep"] p{
	margin: 0;
	text-indent: 1em;
}

[data-edition="twilight-sleep"] hr{
	border: none;
	border-top: 1px solid;
	height: 0;
	margin: 1.5em auto;
	width: 25%;
}

[data-edition="twilight-sleep"] q::before,
[data-edition="twilight-sleep"] q::after{
	content: "";
}

[data-edition="twilight-sleep"] blockquote{
	margin: 1em 2.5em;
}

[data-edition="twilight-sleep"] h1,
[data-edition="twilight-sleep"] h2,
[data-edition="twilight-sleep"] h3,
[data-edition="twilight-sleep"] h4,
[data-edition="twilight-sleep"] h5,
[data-edition="twilight-sleep"] h6,
[data-edition="twilight-sleep"] hgroup{
	break-after: avoid;
	break-inside: avoid;
	font-variant: small-caps;
	margin: 3em 0;
	text-align: center;
}

/* simulate h3 in an hgroup */
[data-edition="twilight-sleep"] hgroup h2 + p{
	font-size: 1.17em;
}

/* simulate h4 in an hgroup */
[data-edition="twilight-sleep"] hgroup h2 + p + p,
[data-edition="twilight-sleep"] hgroup h3 + p{
	font-size: 1em;
}

/* simulate h5 in an hgroup */
[data-edition="twilight-sleep"] hgroup h2 + p + p + p,
[data-edition="twilight-sleep"] hgroup h3 + p + p,
[data-edition="twilight-sleep"] hgroup h4 + p{
	font-size: .83em;
}

/* simulate h6 in an hgroup */
[data-edition="twilight-sleep"] hgroup h2 + p + p + p + p,
[data-edition="twilight-sleep"] hgroup h3 + p + p + p,
[data-edition="twilight-sleep"] hgroup h4 + p + p,
[data-edition="twilight-sleep"] hgroup h5 + p{
	font-size: .67em;
}

[data-edition="twilight-sleep"] hgroup > *{
	font-weight: normal;
	margin: 0;
}

[data-edition="twilight-sleep"] hgroup > *:first-child{
	font-weight: bold;
}

[data-edition="twilight-sleep"] hgroup > p{
	text-indent: 0;
}

[data-edition="twilight-sleep"] p.continued,
[data-edition="twilight-sleep"] h2 + p,
[data-edition="twilight-sleep"] h3 + p,
[data-edition="twilight-sleep"] h4 + p,
[data-edition="twilight-sleep"] h5 + p,
[data-edition="twilight-sleep"] h6 + p,
[data-edition="twilight-sleep"] header + p,
[data-edition="twilight-sleep"] hr + p,
[data-edition="twilight-sleep"] hgroup + p,
[data-edition="twilight-sleep"] p:first-child{
	text-indent: 0;
}

[data-edition="twilight-sleep"] cite{
	font-style: normal;
}

[data-edition="twilight-sleep"] abbr{
	border: none;
	white-space: nowrap;
}

[data-edition="twilight-sleep"] blockquote cite{
	display: block;
	font-style: italic;
	text-align: right;
}

[data-edition="twilight-sleep"] blockquote cite i{
	font-style: normal;
}

[data-edition="twilight-sleep"] b,
[data-edition="twilight-sleep"] strong{
	font-variant: small-caps;
	font-weight: normal;
}

[data-edition="twilight-sleep"] i > i,
[data-edition="twilight-sleep"] em > i,
[data-edition="twilight-sleep"] i > em{
	font-style: normal;
}

[data-edition="twilight-sleep"] ol,
[data-edition="twilight-sleep"] ul{
	margin-bottom: 1em;
	margin-top: 1em;
}

[data-edition="twilight-sleep"] header{
	break-after: avoid;
	break-inside: avoid;
	text-align: center;
}

[data-edition="twilight-sleep"] header > * + p{
	text-indent: 0;
}

[data-edition="twilight-sleep"] article > header + *,
[data-edition="twilight-sleep"] section > header + *{
	margin-top: 3em;
}

[data-edition="twilight-sleep"] a[data-epub-type~="noteref"]{
	font-size: .75em;
	font-style: normal !important;
	vertical-align: super;
}

[data-edition="twilight-sleep"] section[data-epub-type~="endnotes"] > ol > li{
	margin: 1em 0;
}

/* Invert images in dark mode. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme: dark){
	[data-edition="twilight-sleep"] img[data-epub-type~="se:image.color-depth.black-on-transparent"]{
	}

	[data-edition="twilight-sleep"] img[data-epub-type~="se:image.color-depth.black-on-transparent"][data-epub-type~="se:image.style.realistic"]{
	}
}

/* All epigraphs */
[data-edition="twilight-sleep"] [data-epub-type~="epigraph"]{
	font-style: italic;
}

[data-edition="twilight-sleep"] [data-epub-type~="epigraph"] em,
[data-edition="twilight-sleep"] [data-epub-type~="epigraph"] i{
	font-style: normal;
}

[data-edition="twilight-sleep"] [data-epub-type~="epigraph"] cite{
	font-style: normal;
	font-variant: small-caps;
	margin-top: 1em;
}

[data-edition="twilight-sleep"] [data-epub-type~="epigraph"] cite i{
	font-style: italic;
}

/* Remove italics from personas in epigraph */
[data-edition="twilight-sleep"] [data-epub-type~="epigraph"] [data-epub-type~="z3998:persona"]{
	font-style: normal;
}
/* End all epigraphs */

/* Full-page epigraphs */
[data-edition="twilight-sleep"] section[data-epub-type~="epigraph"]{
	text-align: center;
}

[data-edition="twilight-sleep"] section[data-epub-type~="epigraph"] > *{
	display: inline-block;
	margin: auto;
	margin-top: 3em;
	max-width: 80%;
	text-align: initial;
}

@supports(display: flex){
	[data-edition="twilight-sleep"] section[data-epub-type~="epigraph"]{
		display: flex;
		padding-top: 3em;
	}

	[data-edition="twilight-sleep"] section[data-epub-type~="epigraph"] > *{
		margin: 0;
	}

	[data-edition="twilight-sleep"] section[data-epub-type~="epigraph"] > * + *{
		margin-top: 3em;
	}
}
/* End full-page epigraphs */

/* Begin drama */
[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] table,
[data-edition="twilight-sleep"] table[data-epub-type~="z3998:drama"]{
	border-collapse: collapse;
	margin: 1em auto;
	width: 100%;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] tr:first-child td{
	padding-top: 0;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] tr:last-child td{
	padding-bottom: 0;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td{
	padding: .5em;
	vertical-align: top;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td:last-child{
	padding-right: 0;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td:first-child{
	padding-left: 0;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td[data-epub-type~="z3998:persona"]{
	text-align: right;
	width: 20%;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:stage-direction"]{
	font-style: italic;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:stage-direction"] [data-epub-type~="z3998:persona"],
[data-edition="twilight-sleep"] em [data-epub-type~="z3998:persona"],
[data-edition="twilight-sleep"] i [data-epub-type~="z3998:persona"]{
	font-style: normal;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:stage-direction"]::before{
	content: "(";
	font-style: normal;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:stage-direction"]::after{
	content: ")";
	font-style: normal;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:persona"]{
	font-variant: all-small-caps;
}

[data-edition="twilight-sleep"] section[data-epub-type~="z3998:scene"] > p{
	margin: 1em auto;
	width: 75%;
}

@media(max-width: 400px){
	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td,
	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td[data-epub-type~="z3998:persona"],
	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td:last-child{
		display: block;
		padding: 0;
		text-align: initial;
		width: 100%;
	}

	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td[data-epub-type~="z3998:persona"]{
		break-after: avoid;
		margin-top: 1.5em;
	}

	/* `together` rows get a pseudo-stage-direction. */
	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] tr.together td[data-epub-type~="z3998:persona"]::after{
		content: " (Together.)";
		font-style: italic;
		font-variant: normal;
	}

	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] .together td:last-child{
		border: none;
		padding: 0;
	}

	/* Rows that are only stage direction get a top margin. */
	[data-edition="twilight-sleep"] [data-epub-type~="z3998:drama"] td:first-child:not([data-epub-type]) + td{
		margin-top: 1.5em;
	}
}
/* End drama */

/* Begin letters */
[data-edition="twilight-sleep"] footer{
	margin-top: 1em;
	text-align: right;
}

[data-edition="twilight-sleep"] [data-epub-type~="z3998:signature"]{
	font-variant: small-caps;
}
/* End letters */

/* This may appear in the colophon */
[data-edition="twilight-sleep"] abbr[data-epub-type~="se:era"]{
	font-variant: all-small-caps;
}

[data-edition="twilight-sleep"] section[data-epub-type~="titlepage"] h1,
[data-edition="twilight-sleep"] section[data-epub-type~="titlepage"] p,
[data-edition="twilight-sleep"] section[data-epub-type~="colophon"] h2,
[data-edition="twilight-sleep"] section[data-epub-type~="imprint"] h2{
	font-size: 0; /* Required for Kobo not to add an extra page to the title */ /* Required for Kindle */
}

[data-edition="twilight-sleep"] section[data-epub-type~="titlepage"] img{
	display: block;
	margin: 3em auto auto auto;
	width: 100%;
}

[data-edition="twilight-sleep"] section[data-epub-type~="colophon"],
[data-edition="twilight-sleep"] section[data-epub-type~="imprint"]{
	text-align: center;
}

[data-edition="twilight-sleep"] section[data-epub-type~="colophon"] header,
[data-edition="twilight-sleep"] section[data-epub-type~="imprint"] header{
	line-height: 0;
	margin-top: 3em;
}

[data-edition="twilight-sleep"] img[data-epub-type~="z3998:publisher-logo"]{
	max-width: 25%;
	width: 220px;
}

[data-edition="twilight-sleep"] section[data-epub-type~="colophon"] p,
[data-edition="twilight-sleep"] section[data-epub-type~="imprint"] p{
	margin: 1em auto 0 auto;
	text-indent: 0;
}

[data-edition="twilight-sleep"] section[data-epub-type~="imprint"] p{
	font-size: .75em;
	text-align: justify;
	width: 75%;
}

[data-edition="twilight-sleep"] section[data-epub-type~="colophon"] p + p::before{
	border-top: 1px solid;
	content: "";
	display: block;
	margin: auto auto 1em auto;
	width: 25%;
}

[data-edition="twilight-sleep"] section[data-epub-type~="colophon"] a{
	font-variant: small-caps;
}

[data-edition="twilight-sleep"] section[data-epub-type~="imprint"] a,
[data-edition="twilight-sleep"] section[data-epub-type~="colophon"] a{
}

[data-edition="twilight-sleep"] section[data-epub-type~="copyright-page"] p{
	margin: 1em auto;
	text-indent: 0;
}

[data-edition="twilight-sleep"] section[data-epub-type~="copyright-page"] blockquote p{
	font-style: italic;
	text-align: initial;
	text-indent: 0;
}

[data-edition="twilight-sleep"] section[data-epub-type~="copyright-page"] blockquote p span{
	display: block;
	padding-left: 1em;
	text-indent: -1em;
}

[data-edition="twilight-sleep"] section[data-epub-type~="copyright-page"] blockquote br{
	display: none;
}
