/*
     .--------'                                 .        .-.                    .-.
    (_)   /                                    /        / (_)                  / -'
         /  ).--..-.   .-.   .-.  .  .-.  .-../        /        .-.  .-.     -/--
        /  /   ./.-'_./.-'_ (  |   )/   )(   /        /       ./.-'_(  |     /
     .-/._/    (__.' (__.'   `-'-''/   (  `-'-..   .-/.    .-.(__.'  `-'-'`.'
    (_/  `-                             `-        (_/ `-._.

	print.css
*/

body {padding:0;margin:0;background:none;}
/*
main:after {
	font-style: italic;
	content: "© TreeAndLeaf.org";
	position: fixed;
	bottom:0;
	right: 0;
	font-size: 8pt;
	width: 10em;
	line-height: 1rem;
	font-weight: normal;
}
*/
.home,
.article-tools,
.back,
.pswp,
nav,
#back-to-top {display:none !important;}

aside.toc {margin-top: 1.2rem !important;}
#toc .toc-active a {background: none;}

a:before {display:none;} /* Turn off filetype icons */
.emHighlight {border:1px solid #fff0b3;} /* Fixes problem of highlights not showing up in Chrome */

#toc li, h2, main {border:none !important;width:100%;padding-top:0;}

header {margin:0 !important;}
hr {page-break-before:auto;}
h1 {margin:0 auto !important;}
h2 {font-size: 16pt !important;margin-top:0 !important;page-break-before:auto;}
h2:first-of-type {page-break-before:avoid;}
h2:nth-of-type(2) {page-break-before:auto;}

img {border:0 !important;}

/* Hide details unless shown */
details {display:none;border:none;background:none;}
details[open] {display:block;}
details {page-break-inside:avoid;}
summary::-webkit-details-marker, summary:after {color:#555;}

a:link, a:hover, a:active, a:visited { color: #555 !important;}
.ngsq sup a {border: none !important;font-weight:normal;}
#toc, #toc li {background-color: none;}
p, ol, li {font-size: 10pt;line-height:1.2em;}
h4 {page-break-before: always;}
.pedigree, .emperor-pedigree, blockquote, aside, figure {page-break-inside:avoid;}
.ngsq ol ol {page-break-before:avoid;}

.viewer,
.ngsq ol ol li {page-break-inside:avoid;}
footer h2:first-of-type {page-break-before:always;}
.ngsq ol li li b {font-size: 1rem;}
.ngsq>ol>li:hover {
  background: none;  
}
.ngsq img.profile {
  width: 100px;
  height: 100px;
  margin-top: -.01rem;
}

.ahnentafel.index {margin-left:4rem;}
.ahnentafel.index>ol>li {margin-bottom:.2rem !important;}
.ahnentafel .tags {display:none;}
.ahnentafel h2 {font-size:13pt;}
.ahnentafel li, .ahnentafel li b, .notes {font-size: 10pt !important;}
.ahnentafel li i.tooltip {display:none;}
.ahnentafel hr {background-image:none !important;max-width:45%;margin:.5rem !important;}
.ahnentafel b:after {color: #999;font-size: 9pt !important;}
.ahnentafel span:after {color: #777;font-size: 9pt !important;}
.ahnentafel span:before {color: #999;font-size: 9pt !important;}
.toc {display:none;}
.toc i:before {color: #999 !important;}
.ahnentafel .stats {float:none;display:block;margin:0;background:none;border:none;padding:0;margin-top:-.8rem;}.alphadex h5:first-of-type {display:none;}
.copyright {display:none;}
 h2 {max-width:100% !important;}
 
.ahnentafel h2:nth-of-type(n+2):nth-of-type(-n+15), .ahnentafel h2:nth-of-type(19), .ahnentafel h2:nth-of-type(24) {page-break-before: always;}
.ahnentafel.index h2:first-of-type {page-break-before: avoid;}
.bin {color: #999;}