@charset "utf-8";
@namespace epub "http://www.idpf.org/2007/ops";

blockquote header{
	margin-bottom: 1em;
}

footer{
	margin-top: 1em;
	text-align: right;
}

figure.full-page{
	break-after: page;
	break-before: page;
	margin: 0;
	max-height: 100vh;
	text-align: center;
}

@supports(display: flex){
	figure.full-page{
		display: flex;
		flex-direction: column;
	}

	figure.full-page img{
		height: 100vh;
		object-fit: contain;
	}
}

figure{
	break-inside: avoid;
	margin: 1em auto;
	text-align: center;
}

figure img{
	display: block;
	margin: auto;
	max-width: 100%;
}

figcaption{
	font-size: .75em;
	font-style: italic;
	margin: 1em;
}

figure ul{
	list-style-type: lower-alpha;
	text-align: initial;
}

table{
	border-collapse: collapse;
	break-inside: avoid;
	margin: 1em auto;
}

caption{
	font-style: italic;
}

th,
td{
	font-weight: normal;
	padding: .25em .5em;
	text-align: initial;
	vertical-align: bottom;
}

thead th{
	font-size: .75em;
	text-align: center;
	vertical-align: top;
}

td.numeral{
	font-variant-numeric: tabular-nums;
	text-align: right;
}

td.result{
	border-top: 1px solid;
}

/* All epigraphs */
[epub|type~="epigraph"]{
	font-style: italic;
	hyphens: none;
	-epub-hyphens: none;
}

[epub|type~="epigraph"] cite{
	font-style: normal;
	font-variant: small-caps;
	margin-top: 1em;
}
/* End all epigraphs */

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

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

@supports(display: flex){
	section[epub|type~="epigraph"]{
		align-items: center;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: calc(98vh - 3em);
		padding-top: 3em;
	}

	section[epub|type~="epigraph"] > *{
		margin: 0;
	}

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

/* Epigraphs in section headers */
section > header [epub|type~="epigraph"]{
	display: inline-block;
	margin: auto;
	max-width: 80%;
	text-align: initial;
}

section > header [epub|type~="epigraph"] + *{
	margin-top: 3em;
}

@supports(display: table){
	section > header [epub|type~="epigraph"]{
		display: table;
	}
}
/* End epigraphs in section headers */

[epub|type~="dedication"] > header > p{
	font-variant: small-caps;
}

[epub|type~="bridgehead"]{
	display: inline-block;
	font-style: italic;
	max-width: 60%;
	text-align: justify;
	text-indent: 0;
}

[epub|type~="bridgehead"] i{
	font-style: normal;
}

[epub|type~="epigraph"] + [epub|type~="bridgehead"]::before{
	border-top: 1px solid;
	content: "";
	display: block;
	margin: auto auto 1em;
	width: 25%;
}

[epub|type~="se:letter.dateline"]{
	font-style: italic;
	text-align: right;
}

[epub|type~="z3998:signature"],
[epub|type~="z3998:salutation"]{
	font-variant: small-caps;
}

[epub|type~="z3998:salutation"] + p{
	text-indent: 0;
}

/* Verse */
[epub|type~="z3998:verse"] p{
	text-align: initial;
	text-indent: 0;
}

[epub|type~="z3998:verse"] p > span{
	display: block;
	padding-left: 1em;
	text-indent: -1em;
}

[epub|type~="z3998:verse"] p > span + br{
	display: none;
}

p span.i1{
	padding-left: 2em;
	text-indent: -1em;
}

[epub|type~="z3998:dramatis-personae"]{
	text-align: center;
}

[epub|type~="z3998:dramatis-personae"] p{
	text-indent: 0;
}

[epub|type~="z3998:dramatis-personae"] ul{
	list-style: none;
	margin: 0;
	padding: 0;
}

[epub|type~="z3998:dramatis-personae"] ul li{
	font-style: italic;
	margin: 1em;
}

[epub|type~="z3998:dramatis-personae"] ul + p{
	margin-top: 2em;
}

[epub|type~="z3998:drama"] table{
	border-collapse: collapse;
	margin: 1em auto;
	width: 100%;
}

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

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

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

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

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

[epub|type~="z3998:drama"] td[epub|type~="z3998:persona"]{
	hyphens: none;
	-epub-hyphens: none;
	text-align: right;
	width: 20%;
}

[epub|type~="z3998:stage-direction"]{
	font-style: italic;
	margin-bottom: .5em;
}

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

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

[epub|type~="z3998:persona"]{
	font-style: normal;
	font-variant: all-small-caps;
}

[epub|type~="z3998:drama"] footer{
	text-align: initial;
}

[epub|type~="z3998:drama"] footer p:first-child{
	display: block;
	margin: 3em;
	text-align: center;
}

[epub|type~="z3998:drama"] footer p{
	text-indent: 0;
}

section[epub|type~="z3998:scene"] > p{
	margin: 1em auto;
	width: 75%;
}

/* lists presented without markers in the source scans */
.without-marker{
	list-style-type: none;
}

/* number sequences in chapter 5 */
.sequence{
	list-style: none;
	margin: 1em auto;
	padding: 0;
	text-align: center;
}

.sequence > li{
	display: inline;
	margin: 0 1em;
}

.sequence p{
	display: inline;
}

@supports(display: flex){
	.sequence{
		display: flex;
		justify-content: space-evenly;
	}

	.sequence > li{
		margin: 0;
	}
}

/* carry tables in chapter 5 */
.carry .numeral{
	padding-right: 0;
}

.carry .numeral + .numeral{
	padding-left: 0;
}

/* punchcard in chapter 8 */
figure > table{
	border: 1px solid;
}

figure > table th{
	border-bottom: 1px solid;
}

figure > table > thead th{
	font-variant: small-caps;
	padding-top: 1em;
}

figure > table th:first-child,
figure > table td:first-child{
	padding-left: 1em;
}

figure > table th:last-child,
figure > table td:last-child{
	padding-right: 1em;
}

figure > table > tbody > tr:last-child > td{
	padding-bottom: 1em;
}

figure > table > thead th:first-child,
figure > table th:first-child + th + th + th,
figure > table td:first-child + td + td + td{
	padding-right: 5em;
}

/* card in chapter 8 */
#chapter-8 > figure:first-of-type thead tr:first-of-type th:first-of-type{
	padding-right: 5em;
}

#chapter-8 > figure:first-of-type th:first-child,
#chapter-8 > figure:first-of-type td:first-child{
	padding-left: .5em;
	padding-right: .5em;
}

#chapter-8 > figure:first-of-type tr + tr > th{
	font-size: 1em;
	padding-top: .25em;
}

/* stages in chapter 8 */
#chapter-8 > table:first-of-type td:first-child{
	text-align: right;
	vertical-align: top;
}

/* multi-column lists in chapter 26 */
#chapter-26 figure > ul{
	break-inside: avoid;
	column-gap: 2em;
	column-rule: solid 1px;
	columns: 2;
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

#chapter-26 figure ~ figure li:last-child{
	margin-top: 1em;
}

#chapter-26 blockquote:nth-of-type(2) header p{
	text-indent: 0;
}

/* homophones in chapter 27 */
#chapter-27 blockquote:first-of-type span{
	display: inline-block;
	vertical-align: middle;
}

#chapter-27 blockquote:first-of-type span > span{
	display: block;
	padding: 0 .1em;
}

/* tic-tac-toe boards in chapter 34 */
#chapter-34 figure:first-of-type > ol{
	margin: 0;
	padding: 0;
	text-align: center;
}

#chapter-34 figure:first-of-type > ol > li{
	display: inline-block;
	margin: 0 0.5em;
}

#chapter-34 figure:first-of-type > ol table{
	border-color: transparent;
	margin: 0;
}

#chapter-34 figure:first-of-type > ol td{
	border: 1px solid;
	height: 1em;
	line-height: 1;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	width: 1em;
}

#chapter-34 figure:first-of-type > ol tr:first-child td{
	border-top: none;
}

#chapter-34 figure:first-of-type > ol tr:last-child td{
	border-bottom: none;
}

#chapter-34 figure:first-of-type > ol tr td:first-child{
	border-left: none;
}

#chapter-34 figure:first-of-type > ol tr td:last-child{
	border-right: none;
}

@supports(display: flex){
	#chapter-34 figure:first-of-type > ol{
		display: flex;
		justify-content: space-evenly;
	}
}
