@namespace epub "http://www.idpf.org/2007/ops";

:root {
	/* Text colours */
	--v-hdr-color:    #00C;
	--v-ttl-color:    #082;
	--v-part-color:   #088;
	--v-book-color:   #800;

	--v-grey-color:	  #666;

	/* Border colours */
	--v-hdr-colorb:   #00C;
	--v-ttl-colorb:   #0A0;
	--v-part-colorb:  #088;
	--v-book-colorb:  #800;

	--v-bord-colorb:  #006;
	--v-lblue-colorb: #44F;

	/* Fill colours */
	--v-grey-colorf:  #F0F0F8;
	--v-black-colorf: #000;
	--v-lblue-colorf: #D8ECFF;

	/* Margins and indents */
	--v-margin:  1.5ex;
	--v-indent:  2em;
}

*				{margin: 0; padding: 0; text-rendering: optimizeLegibility;
				 font-variant-ligatures: common-ligatures discretionary-ligatures contextual}

/* START-NON-EPUB */
body			{max-width: 80ex; margin: 0 auto; font-family: Iowan Old Style; overflow-x: hidden}
/* END-NON-EPUB */

.page			{}												/* starts a new chapter */
.nchap,
.pgbr			{page-break-before: always; margin-top: 0}		/* doesn't start a chapter */
.npage			{page-break-inside: avoid}

/* Headings */
h1, h2, h3, h4, h5	{text-align: center; color: var(--v-hdr-color); clear: both;
					 page-break-after: avoid; page-break-inside: avoid; -webkit-hyphens: none}
h1				{font-size: 200%; padding-top: 2.5em; margin-top: 0 !important; border-bottom: 1px solid var(--v-hdr-colorb)}
h2				{font-size: 150%; padding-top: 2.5em}
h3				{font-size: 125%; padding-top: 2.5ex; font-weight: bold}
h4				{font-size: 105%; padding-top: 1.5ex; font-weight: bold}
h5				{font-size: 100%; padding-top: 1.5ex; font-weight: bold; font-style: italic}

/* Subverted heading: h6 looks like ordinary centered text.   */
/* This gets around the "bug" in iBooks that changes centered */
/* text to fully-justified text.                              */
h6				{text-align: center; margin: var(--v-margin) auto 0; padding: 0; border: 0;
				 font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal;
				 text-indent: 0; -webkit-hyphens: none}
.it > h6		{font-style:  italic}
.bo > h6		{font-weight: bold}
h6 + *			{margin-top: var(--v-margin)}
h6.page,
h6.pgbr			{margin-top: 0}

/* Book titles */
#title			{color: var(--v-ttl-color); border-bottom: 2px solid var(--v-ttl-colorb); font-variant: small-caps}
#author			{color: var(--v-ttl-color); font-style: oblique}
.subtitle		{color: var(--v-ttl-color); border-bottom-color: var(--v-ttl-colorb)}
#series			{color: var(--v-ttl-color); margin: auto 4em;
				 font-variant: small-caps; letter-spacing: 0.2ex;
				 border-top: 1px solid var(--v-ttl-colorb); border-bottom: 1px solid var(--v-ttl-colorb)}
#series-no		{color: var(--v-ttl-color); font-size: 115%}
#title + #series		{margin-top: 2em}
#series + #series-no	{padding-top: 0}

/* "Part" headers -- essentially a special header for full-page "Book 1" or "Part 1" headings */
h1.part, h2.part, h3.part, h4.part, h5.part
				{border-color: var(--v-part-colorb); color: var(--v-part-color)}
h1.part			{border-bottom-width: 6px; border-bottom-style: double; padding-top: 5em}
h2.part			{font-size: 200%}
h1.part.book, h2.part.book, h3.part.book, h4.part.book, h5.part.book
				{border-color: var(--v-book-colorb); color: var(--v-book-color)}

h1.img			{border: 0 !important; padding-top: 0}

/* Tables */
/* Normally we put a 3ex margin between columns, but this causes a problem with spanned rows. */
/* Giving the table the "ipad" class changes the inter-column margin to 0.5ex.                */
/* Giving the table the "npad" class removes all padding.                                     */
/* Giving the table the "vpad" class gives a little vertical padding to rows.                 */
table			{margin: var(--v-margin) auto; border-collapse: collapse}
th, td			{text-align: left; vertical-align: top}
th				{font-weight: bold}

th:not(:last-child),
td:not(:last-child) {padding-right: 3ex}

th.bord, td.bord {border: 1px solid var(--v-bord-colorb)}
table.le		{margin-left: 0}
td > :first-child,
th > :first-child	{margin-top: 0 !important}
td > p, th > p	{text-indent: 0; margin-top: var(--v-margin)}
td > p.cont, th > p.cont	{text-indent: var(--v-indent); margin-top: 0}

table.ju td,
table.ju th {text-align: justify}
table.ce td,
table.ce th {text-align: center}
table.ri td,
table.ri th {text-align: right}

table.ipad th:not(:last-child),
table.ipad td:not(:last-child),
tr.ipad > th:not(:last-child),
tr.ipad > td:not(:last-child),
th.ipad:not(:last-child),
td.ipad:not(:last-child)			 	{padding-right: 0.5ex !important}

table.npad th:not(:last-child),
table.npad td:not(:last-child),
tr.npad > th:not(:last-child),
tr.npad > td:not(:last-child),
th.npad:not(:last-child),
td.npad:not(:last-child)		 		{padding: 0}

table.vpad th, table.vpad td,
tr.vpad > th,  tr.vpad > td		{padding-top: 0.2ex !important; padding-bottom: 0.2ex !important}

table.cc th, table.cc td {text-align: center}

/* Fill colours */
.g				{background-color: var(--v-grey-colorf)}
.bl				{background-color: var(--v-black-colorf)}
.lb				{background-color: var(--v-lblue-colorf)}
.lb.bord		{border-color:var(--v-lblue-colorb); border-width: 1.5px}

/* Text colours */
.fg_g			{color: var(--v-grey-color)}

/* Main document elements */
p				{text-indent: var(--v-indent); text-align: justify; widows: 1; orphans: 1}

ol, ul			{margin: var(--v-margin) 0 0 1.5em}
dl				{margin-top: var(--v-margin)}
ol + *, ul + *, dl + *	{margin-top: var(--v-margin)}
dt, li			{margin-top:  var(--v-margin); text-align: justify}
dd				{margin-left: var(--v-indent); text-align: justify}
dd + dd			{margin-top:  var(--v-margin)}
ol.compact > li,
ul.compact > li,
dl.compact > dt	{margin-top: 0}
ol > :first-child,
ul > :first-child,
dl > :first-child	{margin-top: 0 !important}
li > p			{text-indent: 0; margin-top: var(--v-margin)}

rt				{text-align: left; font-size: 70%; font-family: sans-serif}

div				{margin-top: var(--v-margin)}
div + *			{margin-top: var(--v-margin)}
aside > :first-child,
div > :first-child	{margin-top: 0 !important}
aside > :last-child,
div > :last-child	{margin-bottom: 0 !important}

dt				{font-weight: bold; font-style: italic}

sup				{font-size: 75%; vertical-align: 25%}
sub				{font-size: 75%; vertical-align: 0}

hr				{margin-top: 1.5em; margin-bottom: 1.5em}

samp, var		{font-style:      normal;
				 font-weight:     normal;
				 font-variant:    normal;
				 text-decoration: none;
				 line-height:     normal}
.it samp		{font-style: italic}
.it var			{font-style: italic}

div.list_ul > p,
div.list_ol > p			{poosition: relative; text-indent: 0; margin-left: var(--v-indent); margin-top: var(--v-margin)}
div.list_ol				{counter-reset: list_ol}
div.list_ul > p:before	{position: relative; display: inline-block; left: calc(-1 * var(--v-indent)); width: 0; content: "•"}
div.list_ol > p:before	{position: relative; display: inline-block; left: calc(-1 * var(--v-indent)); width: 0;
						 content: counter(list_ol) "."; counter-increment: list_ol}
div.list_ol.list_n > p:before	{content: counter(list_ol, decimal)     "."}
div.list_ol.list_a > p:before	{content: counter(list_ol, lower-latin) "."}
div.list_ol.list_A > p:before	{content: counter(list_ol, upper-latin) "."}
div.list_ol.list_i > p:before	{content: counter(list_ol, lower-roman) "."}
div.list_ol.list_nb > p:before	{content: counter(list_ol, decimal)     ")"}
div.list_ol.list_ab > p:before	{content: counter(list_ol, lower-latin) ")"}
div.list_ol.list_Ab > p:before	{content: counter(list_ol, upper-latin) ")"}
div.list_ol.list_ib > p:before	{content: counter(list_ol, lower-roman) ")"}
div.list_ol > div.list_ol.list_n > p:before		{content: counter(list_ol2, decimal)     "."}
div.list_ol > div.list_ol.list_a > p:before		{content: counter(list_ol2, lower-latin) "."}
div.list_ol > div.list_ol.list_A > p:before		{content: counter(list_ol2, upper-latin) "."}
div.list_ol > div.list_ol.list_i > p:before		{content: counter(list_ol2, lower-roman) "."}
div.list_ol > div.list_ol.list_nb > p:before	{content: counter(list_ol2, decimal)     ")"}
div.list_ol > div.list_ol.list_ab > p:before	{content: counter(list_ol2, lower-latin) ")"}
div.list_ol > div.list_ol.list_Ab > p:before	{content: counter(list_ol2, upper-latin) ")"}
div.list_ol > div.list_ol.list_ib > p:before	{content: counter(list_ol2, lower-roman) ")"}
div.list_ol > div.list_ol > div.list_ol.list_n > p:before	{content: counter(list_ol3, decimal)     "."}
div.list_ol > div.list_ol > div.list_ol.list_a > p:before	{content: counter(list_ol3, lower-latin) "."}
div.list_ol > div.list_ol > div.list_ol.list_A > p:before	{content: counter(list_ol3, upper-latin) "."}
div.list_ol > div.list_ol > div.list_ol.list_i > p:before	{content: counter(list_ol3, lower-roman) "."}
div.list_ol > div.list_ol > div.list_ol.list_nb > p:before	{content: counter(list_ol3, decimal)     ")"}
div.list_ol > div.list_ol > div.list_ol.list_ab > p:before	{content: counter(list_ol3, lower-latin) ")"}
div.list_ol > div.list_ol > div.list_ol.list_Ab > p:before	{content: counter(list_ol3, upper-latin) ")"}
div.list_ol > div.list_ol > div.list_ol.list_ib > p:before	{content: counter(list_ol3, lower-roman) ")"}

div.list_ul > div.list_ul > p,
div.list_ol > div.list_ul > p,
div.list_ul > div.list_ol > p,
div.list_ol > div.list_ol > p						{position: relative; text-indent: 0; margin-left: calc(2 * var(--v-indent)); margin-top: var(--v-margin)}
div.list_ul > div.list_ul > div.list_ul > p,
div.list_ol > div.list_ul > div.list_ul > p,
div.list_ul > div.list_ol > div.list_ul > p,
div.list_ol > div.list_ol > div.list_ul > p,
div.list_ul > div.list_ul > div.list_ol > p,
div.list_ol > div.list_ul > div.list_ol > p,
div.list_ul > div.list_ol > div.list_ol > p,
div.list_ol > div.list_ol > div.list_ol > p			{position: relative; text-indent: 0; margin-left: calc(3 * var(--v-indent)); margin-top: var(--v-margin)}

div.list_ol > div.list_ol							{counter-reset: list_ol2}
div.list_ol > div.list_ol > div.list_ol				{counter-reset: list_ol3}
div.list_ol > div.list_ol > p:before				{position: relative; display: inline-block; left: calc(-1 * var(--v-indent)); width: 0;
													 content: counter(list_ol2, lower-latin) "."; counter-increment: list_ol2}
div.list_ol > div.list_ol > div.list_ol > p:before	{position: relative; display: inline-block; left: calc(-1 * var(--v-indent)); width: 0;
													 content: counter(list_ol3, lower-roman) "."; counter-increment: list_ol3}

div.list_ul > div.list_ul > p:before				{position: relative; display: inline-block; left: calc(-1 * var(--v-indent)); width: 0; content: "◦"}
div.list_ul > div.list_ul > div.list_ul > p:before	{position: relative; display: inline-block; left: calc(-1 * var(--v-indent)); width: 0; content: "-"}
div.list_ul.list_CB > p:before						{content: "•" !important}
div.list_ul.list_CW > p:before						{content: "◦" !important}
div.list_ul.list_DA > p:before						{content: "–" !important}

div.list_ul > p.ind:before,
div.list_ul > p.cont:before,
div.list_ol > p.ind:before,		
div.list_ol > p.cont:before		{content: ""; counter-increment: none}

/* Images.  The ifloat style allows an image to float to the next page if necessary. */
img				{padding: 0; margin: 0; max-width: 100%; max-height: 100%}
.ifloat			{float: right; width: 99.5%; height: auto;
				 page-break-inside: avoid;
				 margin: 0; padding: 1ex 0}
.ifloat + *		{margin-top: 0}
.fullp			{margin: 0 inherit !important; padding: 0 !important;
				 page-break-before: always; page-break-inside: avoid;
				 max-width: 100%; height: 100%}
.fullp.cap		{height: 94%; font-style: italic; font-size: 80%}
.fullp + *		{margin-top: 0}
.l				{float: left;  padding-right: 0.5ex}
.r				{float: right; padding-left:  0.5ex}
img.l			{padding: 0.5ex 1ex 0.5ex 0}
img.r			{padding: 0.5ex 0 0.5ex 1ex}

figure			{margin: var(--v-margin) auto; padding: 0; border: 0}
figure.ifloat	{display:block}
figure > img	{display: block; margin-left: auto; margin-right: auto}
figcaption		{font-style: italic; text-indent: 0; text-align: center}
figure.ju > figcaption	{text-align: justify}

/* Font variations */
.sc				{font-variant: small-caps}
.small			{font-size: 80%}
.vsmall			{font-size: 60%}
.xsmall			{font-size: 50%}
.reg			{font-size: 100%}
.big			{font-size: 120%}
.vbig			{font-size: 150%}
.xbig			{font-size: 180%}
.xxbig			{font-size: 250%}
.s				{text-decoration: line-through}

/* Basic formatting styles */
.it				{font-style:   italic}
.nit			{font-style:   normal !important}
.bo				{font-weight:  bold}
.nbo			{font-weight:  normal !important}
.norm			{font-style:      normal !important;
				 font-weight:     normal !important;
				 font-variant:    normal !important;
				 text-decoration: none   !important}

.invisible		{display: none}

.ul,
i i, em em,
i .it, .it i,
em .it, .it em	{text-decoration: underline}

p.drop				{margin-top: var(--v-indent); text-indent: 0}
p.drop:first-letter {font-size: 300%; font-family: sans-serif; line-height: 1.0}

.ded			{page-break-before: always; padding-top: 30%; margin-top: 0}

/* Alignment styles */
p.cb,
.ce, .ce p			{text-align: center !important; text-indent: 0; -webkit-hyphens: none}
.ri, .ri p, .ri li	{text-align: right  !important; text-indent: 0; -webkit-hyphens: none}
.le, .le p, .le li	{text-align: left   !important; text-indent: 0}
.ju, .ju p, .ju li	{text-align: justify}

p.cb				{color: #448}

p.ce, p.cb, p.ri	{margin-top: var(--v-margin)}
p.cb + *,
.ce + *,
.ri + *				{margin-top: var(--v-margin)}

.top			{vertical-align: top}
.bot			{vertical-align: bottom}
.mid			{vertical-align: middle}

/* Styles to add gaps before elements */
.gap			{margin-top: 3em  !important}
.gap2			{margin-top: 8em  !important}
.gap3			{margin-top: 14em !important}
.pagebot		{margin-top: 14em !important}
.gapb			{margin-bottom: 3em !important}

.pgbr.gap,  td.gap,  th.gap		{padding-top: 3em  !important; margin-top: 0 !important}
.pgbr.gap2, td.gap2, th.gap3	{padding-top: 8em  !important; margin-top: 0 !important}
.pgbr.gap3, td.gap2, th.gap3	{padding-top: 14em !important; margin-top: 0 !important}

.br				{margin-top: var(--v-margin) !important}
p + p.cbr		{margin-top: 2.5ex !important}
th.br, td.br,
tr.br > th,
tr.br > td		{margin-top: 0 !important; padding-top: var(--v-margin) !important}
.br p			{text-indent: 0}

.ni, .ni p		{text-indent: 0}
.ni + .ni,
.ni>p + p		{margin-top: 	var(--v-margin)}

.brb			{margin-bottom: var(--v-margin) !important}
th.brb, td.brb	{margin-bottom: 0 !important; padding-bottom: var(--v-margin) !important}

.ntop			{margin-top:    0 !important; padding-top:    0 !important}			/* ntop: no margin (top) */
.nbot			{margin-bottom: 0 !important; padding-bottom: 0 !important}			/* nbot: no margin (bottom) */
.nbot+*			{margin-top:    0 !important; padding-top:    0 !important}

.compact *		{margin-top: 0 !important}

/* Indents */
.ind			{margin-left:  calc(1 * var(--v-indent))}
.ind2			{margin-left:  calc(2 * var(--v-indent))}
.ind3			{margin-left:  calc(3 * var(--v-indent))}
.ind4			{margin-left:  calc(4 * var(--v-indent))}
.ind5			{margin-left:  calc(5 * var(--v-indent))}
.indr			{margin-right: calc(1 * var(--v-indent))}
.indr2			{margin-right: calc(2 * var(--v-indent))}
.indr3			{margin-right: calc(3 * var(--v-indent))}
.indr4			{margin-right: calc(4 * var(--v-indent))}
.indr5			{margin-right: calc(5 * var(--v-indent))}

p.ind, p.ind2, p.ind3, p.ind4, p.ind5	{text-indent: 0}
p.ind + p.ind,
p.ind2 + p.ind2	{margin-top: var(--v-margin)}
div.ind.small		{font-size: 100%}
div.ind.small > *	{font-size: 80%}

p.outd,
div.outd p			{margin-left: var(--v-indent) !important; text-indent: calc(-1 * var(--v-indent)) !important}
div.outd p.cont		{margin-left: var(--v-indent) !important; text-indent: var(--v-indent) !important}
div.outd p.ind		{margin-left: 3.5em !important; text-indent: -1.5em !important; margin-top: 0}

table.outd td,
table.outd th		{padding-left: var(--v-indent); text-indent: calc(-1 * var(--v-indent))}

/* Bordered elements */
.bord			{border: 1px solid var(--v-bord-colorb); padding: 1ex}
p.bord			{display: table}
.bordb			{border-bottom: 1px solid var(--v-bord-colorb)}
.bordt			{border-top: 1px solid var(--v-bord-colorb)}
.nbord			{border: 0 !important}

.margin			{margin-left: 10% !important; margin-right: 10% !important}

/* Links */
a, a:visited	{color: blue}

/* Monospace */
.tt 				{font-family: monospace}
p.tt, div.tt > p	{text-indent: 0; margin-top: var(--v-margin); text-align: left}
.tt + p				{margin-top: 	var(--v-margin)}

/* Alternate text fonts */
.alt				{font-family: sans-serif !important}
.alt2				{font-family: cursive    !important}
.alt3				{font-family: fantasy    !important}
p.alt,  span.alt,  div.alt,  blockquote.alt,  ol.alt,  ul.alt,  dl.alt,  i.alt,  b.alt,  samp.alt,  small.alt,  table.alt,
p.alt2, span.alt2, div.alt2, blockquote.alt2, ol.alt2, ul.alt2, dl.alt2, i.alt2, b.alt2, samp.alt2, small.alt2, table.alt2,
p.alt3, span.alt3, div.alt3, blockquote.alt3, ol.alt3, ul.alt3, dl.alt3, i.alt3, b.alt3, samp.alt3, small.alt3, table.alt3
					{font-size: 96%}
.alt_c				{color: #002}
.nalt				{color: black; font-family: serif; font-size: 111.11%}

/* New-style footnotes */
a[epub|type="noteref"]
				{color: blue; font-size: 75%;
				 vertical-align: 25%; text-decoration: none;
				 font-style: normal; font-weight: normal; font-variant: normal}
h1 a[epub|type="noteref"],
h2 a[epub|type="noteref"],
h3 a[epub|type="noteref"],
h4 a[epub|type="noteref"],
h5 a[epub|type="noteref"]
				{color: var(--v-hdr-color)}
.part a[epub|type="noteref"]
				{color: #606}

/* START-NON-EPUB */
aside[epub|type="footnote"]
				{display: none; position: fixed;
				 background-color: #FFA; border-top: 2px solid #080;
				 left: 0; right: 0; top: auto; bottom: 0;
				 padding: 2px 1ex 0; text-indent: 0; text-align: justify}
/* END-NON-EPUB */
aside[epub|type="footnote"]
				{text-indent: 0; text-align: justify}
aside[epub|type="footnote"] p + p
				{margin-top: var(--v-margin)}

/* Old-style footnotes */
span.fn			{}
a.fn			{text-decoration: none}
span.fnref		{color: blue; font-size: 50%;
				 vertical-align: 30%; text-decoration: none;
				 font-style: normal; font-weight: normal; font-variant: normal}
span.fnbref		{color: white; background-color: #44F; text-decoration: none;
				 border: 1px solid #00007F; font-size: 90%;
				 font-style: normal; font-weight: normal; font-variant: normal}
h1 .fn:after, h2 .fn:after, h3 .fn:after, h4 .fn:after, h5 .fn:after,
h1 .fnref,    h2 .fnref,    h3 .fnref,    h4 .fnref,    h5 .fnref
				{color: var(--v-hdr-color); vertical-align: 50%}
.part .fnref	{color: #606}

/* START-NON-EPUB */
aside.fn,
div.fn			{display: none; position: fixed;
				 background-color: #FFA; border-top: 2px solid #080;
				 left: 0; right: 0; top: auto; bottom: 0;
				 padding: 2px 1ex 0; text-indent: 0; text-align: center}
/* END-NON-EPUB */
aside.fn p,
aside.fnb p,
div.fn p,
div.fnb p		{text-indent: 0; margin-top: 1ex}
aside.fnb,
div.fnb			{}

/* Block quotes */
blockquote		{margin: var(--v-margin) 0 var(--v-margin) var(--v-indent)}
blockquote.ni	{margin-left: 0}
blockquote.bord	{border-width: 1px 0; padding: var(--v-margin) 0 0 0; margin-top: var(--v-margin)}
blockquote.bord > :last-child {margin-bottom: var(--v-margin)}
blockquote.bord + blockquote.bord	{border-top: 0 none transparent; padding-top: 0; margin-top: var(--v-margin)}

blockquote > *	{font-size: 90%}
blockquote > p	{text-indent: 0; margin-top: 1ex}
blockquote > h1,
blockquote > h2,
blockquote > h3,
blockquote > h4	{margin-top: var(--v-margin)}
blockquote > :first-child {margin-top: 0 !important}

blockquote + blockquote {margin-top: 3ex}

.cbquot			{display: table; margin: var(--v-margin) auto; text-indent: 0}
.lequot			{display: table; margin: var(--v-margin) auto var(--v-margin) 0; text-indent: 0}
.riquot			{display: table; margin: var(--v-margin) 0 var(--v-margin) auto; text-indent: 0}

/* "Verse" styles */
div.verse			{}
div.verse.small		{font-size: 100%}
div.verse.small p	{font-size: 90%}
div.verse p			{margin-left: 4em; text-indent: -4em; margin-top: 0}
div.verse p.ind1	{margin-left: 4em; text-indent: -3em; margin-top: 0}
div.verse p.ind2	{margin-left: 4em; text-indent: -2em; margin-top: 0}
div.verse p.ind3	{margin-left: 4em; text-indent: -1em; margin-top: 0}
div.verse p.ind4	{margin-left: 4em; text-indent: 0;    margin-top: 0}

td.verse		{}
td.verse p		{margin-left: 4em; text-indent: -4em; margin-top: 0}

div.verse.li2   p:nth-child(2n),
div.verse.li3   p:nth-child(3n),
div.verse.li4   p:nth-child(4n),
div.verse.li25  p:nth-child(5n),
div.verse.li25  p:nth-child(5n+2),
div.verse.lilim p:nth-child(5n+3),
div.verse.lilim p:nth-child(5n+4)
				 {margin-left: 4em; text-indent: -3em}

div.verse.group2  p:nth-child(2n+1),
div.verse.group3  p:nth-child(3n+1),
div.verse.group4  p:nth-child(4n+1),
div.verse.group5  p:nth-child(5n+1),
div.verse.group6  p:nth-child(6n+1),
div.verse.group7  p:nth-child(7n+1),
div.verse.group8  p:nth-child(8n+1),
div.verse.group10 p:nth-child(10n+1),
div.verse.group12 p:nth-child(12n+1)
				{margin-top: var(--v-margin) !important}

/* Dialogue text */
div.dialog p		{margin-left: var(--v-indent); text-indent: calc(-1 * var(--v-indent)); margin-top: 1ex}
div.dialog p.cont	{margin-left: var(--v-indent); text-indent: 0}
div.dialog p.desc	{margin-left: 0;   text-indent: 0; font-style: italic}
div.dialog p.descn	{margin-left: 0;   text-indent: 0}

/* Script-format dialog */
div.script *				{text-indent: 0}
div.script p				{margin-left: 10%; margin-right: 10%; margin-top: var(--v-margin)}
div.script p.ind1			{text-indent: var(--v-indent)}
div.script p.ind2			{text-indent: 4em}
div.script p.ind3			{text-indent: 6em}
div.script p.ind4			{text-indent: 8em}
div.script p.actor			{margin-left: 0;   margin-right: 0;   text-align: center; font-size: 90%; font-weight: bold; page-break-after: avoid}
div.script p.scene			{margin-left: 0;   margin-right: 0;   margin-top: 4.5ex; font-weight: bold}
div.script p.desc,
div.script p.ndesc			{margin-left: 0;   margin-right: 0}
div.script p.adesc			{margin-left: 20%; margin-right: 20%; margin-top: 0; text-align: center}
div.script p.desc,
div.script p.adesc			{font-style: italic}
div.script p.actor + *      {margin-top:  0}
div.script p.adesc + p      {margin-top: 0}

/* Heading quotations (at chapter heads) */
.cq, .cqa, .cql {color: #448}
p.cq, p.qu		{margin: var(--v-margin) 0 0 var(--v-indent); text-indent: 0}
div.cq p,
div.qu p		{margin-top: var(--v-margin); text-indent: 0}
p.cqa, p.qua	{margin: 0 1em 1em 6em; text-indent: -1em; text-align: left}
div.cq + p.cqa	{margin-left: calc(2 * var(--v-indent))}
p.cqa:before,
p.qua:before	{content: '\2014'}
p.cq + *,
p.qu + *		{margin-top: var(--v-margin)}
p.cq + p.cq,
p.qu + p.qu		{margin-top: 1ex}
p.cq + p.cqa,
p.qu + p.qua	{margin-top: 0}
td.cq			{}
td.cqa			{padding-left: 1.5em}

/* Equations */
table.inline	{display: inline-table; margin: 0;
				 border-spacing: 1ex 0; vertical-align: middle}
table.eqn th,
table.eqn td	{vertical-align: middle; text-align: center}
table.eqn td.ul	{text-decoration: none; border-bottom: 1px solid black}
table.eqn td+td,
table.eqn th+th,
table.eqn td+th,
table.eqn th+td		{padding-left: 0}

/* Override margins between certain elements */
h1+h2,
h1+h3,
h1+h4,
h2+h3,
h2+h4,
h3+h4,
h3+h5,
h4+h5			{margin-top: 0; padding-top: 0}

h1+p,
h2+p,
h3+p,
h1+blockquote,
h2+blockquote,
h3+blockquote,
h1+table,
h2+table,
h3+table,
h1+div,
h2+div,
h3+div,
h1+dl,
h2+dl,
h3+dl,
h1+ol,
h2+ol,
h3+ol,
h1+ul,
h2+ul,
h3+ul
				{margin-top: 2ex}
h4+p,
h5+p,
h4+blockquote,
h5+blockquote,
h4+table,
h5+table,
h4+div,
h5+div,
h4+dl,
h5+dl,
h4+ol,
h5+ol,
h4+ul,
h5+ul
				{margin-top: var(--v-margin)}

h1+p.attr	{margin-top: 0; text-align: center}



/* START-NON-EPUB */

/* Print overrides */
@media print {
	body {margin: 2cm; padding: 0; max-width: none; font-size: 16pt}
	h1, .page, .pgbr {page-break-before:always}
	h1#title {page-break-before:avoid}
	a {color: background: transparent; font-weight: bold; text-decoration: none; color: black}
	a:after {content: " (http://ifurita.nz.eds.com/" attr(href) ") "; font-style: italic; font-weight: normal; text-decoration: none;}
	a[href^="/"]:after {content: " (http://ifurita.nz.eds.com" attr(href) ") ";}
	a[href^="http://"]:after {content: " (" attr(href) ") ";}
}

h1, .page, .pgbr, .fullp, .ded
			{position: relative}
h1 a, .page a, .pgbr a, .fullp a, .ded a
			{position: relative; z-index: 2}
h1::before, .page::before, .pgbr::before, .fullp::before, .ded::before
			{content: ""; position: absolute;
			 top: 0; bottom: 0;
			 left: -99cm; right: -99cm;
			 border-top: 1px dashed #CCE;}

body> h1:first-child	{border-top: 0}
/* END-NON-EPUB */
