﻿/** BASE **/

/* Márgenes */
@page {
	margin: .5em;
}
body {
	font-family: Athelas, Georgia, serif;
	margin: 0;
	padding: 0;
}

/* Fuentes integradas */
@font-face {
	font-family: Engravers;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/Engravers.ttf');
}
@font-face {
	font-family: Sabon;
	font-style: normal;
	font-weight: bold;
	src:url('../fonts/SabonBolOsF.ttf');
}
@font-face {
	font-family: SchneidlerInitials;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/SchneidlerInitials.otf');
}

/* Control partición silábica */
#half-title-page p,
#title-page p,
#dedication p,
h1,
h2 {
	page-break-after: avoid;
	hyphens: none;
	adobe-hyphenate: none;
	-moz-hyphens: none;
	-webkit-hyphens: none;
}
p, 
li, 
td, 
dt, 
dd {
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-after: 1;
	-webkit-hyphenate-limit-lines: 2;
	orphans: 2;
	widows: 2;
}

/** FRONTMATTER **/

/* Cubierta */
.cover {
	margin: 0 auto !important;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* Portadilla */
#half-title-page {
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#half-title-page p {
	text-align: center;
	text-indent: 0;
}
#half-title-page p.title {
	font-family: SchneidlerInitials;
	font-size: 1.5em;
	font-weight: 400;
	margin: 4em 0 0 0;
}
#half-title-page p.title span.line-1 {
	display: block;
	font-size: 1em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#half-title-page p.title span.line-2 {
	display: block;
	font-size: 3em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#half-title-page p.title span.line-3 {
	display: block;
	font-size: 1em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#half-title-page p.title span.line-4 {
	display: block;
	font-size: 3em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#half-title-page div.collection {
	margin: 15em 0 0 0;
}
#half-title-page div.collection p.logo {
	display: inline-block;
	max-width: 8em;
	text-align: center;
	width: 8em;
}
#half-title-page div.collection p.logo img {
	text-align: center;
}

/* Portada */
#title-page {
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#title-page p {
	text-align: center;
	text-indent: 0;
}
#title-page p.title {
	font-family: SchneidlerInitials;
	font-size: 1.75em;
	font-weight: 400;
	margin: 2.5em 0 0 0;
}
#title-page p.title span.line-1 {
	display: block;
	font-size: 1em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#title-page p.title span.line-2 {
	display: block;
	font-size: 3em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#title-page p.title span.line-3 {
	display: block;
	font-size: 1em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#title-page p.title span.line-4 {
	display: block;
	font-size: 3em;
	/* line-height: 1; */
	margin: 0;
	padding: 0;
}
#title-page p.subtitle {
	font-family: Engravers;
	font-size: 1.6em;
	font-weight: bold;
	letter-spacing: .5em;
	margin: .2em 0 0 0;
	text-indent: 0;
}
#title-page p.author {
	font-family: sans-serif;
	font-size: 1.25em;
	font-style: normal;
	font-weight: bold;
	/* line-height: 1; */
	margin: 1.5em 0 0 0;
}
#title-page p.trl {
	font-size: 1em;
	font-style: normal;
	margin: 2em 0 0 0;
}
#title-page div.publisher {
	margin: 4em 0 0 0;
}
#title-page div.publisher p.logo {
	display: inline-block;
	max-width: 8em;
	text-align: center;
	width: 8em;
}
#title-page div.publisher p.logo img {
	text-align: center;
}
#title-page div.publisher p.date {
	font-size: smaller;
	margin: 0 0 0 0;
}

/* Créditos */
#copyright-page {
	margin: 4em 1em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-size: .8em;
	text-align: left;
	text-indent: 0;
}
#copyright-page p.agency {
	display: block;
	margin-left: 0;
}
#copyright-page div.legal-notice p {
	font-size: .7em;
	font-style: italic;
	text-align: justify;
}
#copyright-page div.support p.image {
	max-width: 7em;
	text-align: left;
	width: 7em;
}
#copyright-page div.support img {
	text-align: center;
}
#copyright-page p.contributor {
	margin-top: 1em;
}
#copyright-page span.label {
	display: block;
}
#copyright-page p.arrangement {
	margin-left: 1.1em;
}

/* Dedicatoria */
#dedication {
	margin: 5em 0 0 0;
}
#dedication p {
	font-style: normal;
	text-align: center;
	text-indent: 0;
}

/* Epígrafe */
#epigraph {
	margin: 5em 0 0 3em;
}
#epigraph div.epigraph + div.epigraph {
	margin-top: 3em;
}
#epigraph blockquote {
	margin: 0 0 1em 0;
}
#epigraph blockquote p {
	font-style: normal;
}
#epigraph blockquote p + p {
	text-indent: 1em;
}
#epigraph p {
	font-style: normal;
	text-align: justify;
}
#epigraph p.attrib {
	font-style: normal;
	text-align: right;
	text-indent: 0;
}

/* Índice */
#toc h1 {
	text-align: center;
}
#toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
#toc ol li.bdm {
	margin: 1em 0;
	padding: 0;
}
#toc li.bdm ol li {
	font-style: normal;
	font-weight: normal;
	margin: 0;
	padding: 0;
}
#toc li.bdm li span.title {
	font-style: italic;
}
#toc li.bdm li span.title i,
#toc li.bdm li span.title cite {
	font-style: normal;
}
#toc li.bkm {
	margin: 1em 0;
	padding: 0;
}
#toc a {
	color: #000000;
	font-weight: normal;
}
#toc li.bdm a,
#toc li.bkm a {
	font-style: italic !important;
	font-weight: bold !important;
}
#toc li.bdm ol li a {
	font-style: normal !important;
	font-weight: normal !important;
}

/* Mapa */
#map img {
	border: 2px groove grey;
	max-height: 70%;
}
#genealogical-trees img {
	max-height: 100%;
}

/* BODYMATTER */

/* Partes */
.part h1 {
	margin: 4em 0 0 0;
}
.part img {
	width: 5em;
}
.part div.data p {
	text-align: center;
}

/* Estilos generales */
h1 {
	font-family: SchneidlerInitials;
	font-size: 2em;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	/* line-height: 1.2; */
	margin: 1.2em 0 4em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#prologue h1,
#epilogue h1,
#nota-historica h1 {
	font-family: Sabon;
	font-size: 1.2em;
	font-weight: bold;
}
h1 span.label {
	display: block;
	font-size: 1.5em;
	font-style: normal;
	margin-bottom: 0;
}
h1 span.title {
	font-style: italic;
}
h2 {
	font-family: SchneidlerInitials;
	font-size: 3em;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	/* line-height: 1.2; */
	margin: 1em 0 2.5em 0;
	padding:  0 0 0;
	text-align: center;
	text-indent: 0;
}
h3 {
	font-family: inherit;
	font-size: .8em;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	/* line-height: 1.2; */
	margin: 1.5em 0 1em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}

p {
	font-family: inherit;
	font-size: .9em;
	/* line-height: 1.5; */
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	text-align: justify;
	text-indent: 1em;
}

a {
	color: #00F;
	font-style: normal;
	font-weight: bolder;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
blockquote {
	font-size: 1em;
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-size: .8em;
	font-style: normal;
	text-align: justify;
	text-indent: 0;
}
blockquote p + p {
	text-indent: 1em;
}
cite i {
	font-style: normal;
}
hr {
	border: none !important;
	height: 1em;
	margin: .4em 0;
}
img {
	margin: 0;
	max-width: 100%;
	padding: 0;
}
q {
  font-style: italic;
}
q:before {
  content: "";
}
q:after {
  content: "";
}
sub,
sup {
  font-size: .7em;
}

/* Listas */
ol {
	margin: 1em 0;
	padding: 0;
}
li {
	font-size: .9em;
	/* line-height: 1.5; */
	margin: 0;
	padding: 0 0 0 2.25em;
}

/* Seudoversalitas */
abbr.acronym,
span.sc {
	font-size: 80%;
}

/* Estilos particulares */
blockquote.song {
	margin: 1em 0 1em 3em;
}
p.stanza {
	font-style: italic;
	text-align: left;
	text-indent: 0;
}
span.verse {
	display: block;
	margin-left: 1em;
	text-indent: -1em;
}

div.epigraph {
	margin: 4em 0 1em 20%;
	max-width: 100%;
	page-break-inside: avoid;
	text-align: right;
}
div.epigraph blockquote {
	margin: 0;
}
div.epigraph blockquote.poem p {
	text-align: left;
}
div.epigraph p {
	font-size: .8em;
	text-align: justify;
	text-indent: 0;
}
div.epigraph p.stanza {
	font-style: normal;
	text-align: right;
}
div.epigraph + p {
	text-indent: 0;
}
div.epigraph p.attrib {
	font-style: normal;
	margin: .5em 0 0 0;
	page-break-before: avoid;
	text-align: right;
	text-indent: 0;
}

div.signature {
	margin-top: 1em;
}
div.signature p {
	text-align: right;
	text-indent: 0;
}

p.asterisks {
	margin: 1.3em 0 1em 0;
	text-align: center;
	text-indent: 0;
}
p.asterisks + p {
	text-indent: 0;
}

hr.pagebreak {
	page-break-after: always;
}
hr.pagebreak + * {
	padding-top: 5em;
}

span.dropcap {
    float: left;
	font-family: SchneidlerInitials;
    font-size: 5em;
    /* line-height: 1.6; */
    margin: -.3em .07em -.5em 0;
}

/* Listas */
ul {
	margin: 1em 0 1em 1em;
	padding: 0 0 0 1.5em;
}
ul li {
	font-size: 80%;
	margin: 0;
	padding: 0;
}
ul + p {
	text-indent: 0;
}
ul.none {
	list-style: none;
}

/* Figuras */
div.figure {
	margin: 1em 0;
	text-align: center;
	width: 100%;
}
div.figure p.image {
	margin: 0;
	text-align: center;
	text-indent: 0;
	width: 100%;
}
div.figure p.image img {
	border: 0;
	max-width: 60%;
	width: 10em;
	text-align: center;
}
span.image img {
	height: 1em;
	vertical-align: middle;
}

dt {
	float: left;
	clear: left;
	width: 50%;
}
dd {
	margin: 0 0 0 51%;
	padding: 0 0 0.5em 0;
}

/* Estilos consecuentes */
h1 + p,
h2 + p,
h3 + p,
blockquote + p,
hr + p {
  text-indent: 0;
}

/* BACKMATTER */

/* Otros títulos */
#other-works h1 {
	font-size: 1.2em;
	font-style: normal;
	margin: 3em 0 1.5em 0;
	text-indent: 0;
}
#other-works h2 {
	font-size: 1em;
	margin: 2.5em 0 1em 0;
	padding: 0;
	page-break-before: avoid;
	text-indent: 0;
}
#other-works ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	text-indent: 0;
}
#other-works li {
	font-size: .9em;
	margin: 1em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	/* line-height: 1; */
	vertical-align: top;
}

/* Notas | Notas al final */
div.footnote {
	margin: .6em 0 0 0;
}
div.footnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	text-indent: 0;
}
div.footnote a.noteback {
	display: inline;
	float: left;
	clear: left;
	font-size: .8em;
	font-style: normal;
	/* line-height: 1.5; */
	margin: 0;
	padding: 0 .25em 0 0;
	page-break-after: avoid;
	text-align: right;
	vertical-align: inherit;
	width: 2.25em;
}
div.footnote a.noteback + p {
	page-break-before: avoid;
}

/* Agradecimientos */
#acknowledgments p {
	margin: 1em 0;
	text-indent: 0;
}

/* Bibliografía */
#bibliography h2 {
	font-variant: small-caps;
}
#bibliography ul {
	list-style: none;
}
#bibliography li {
	margin-left: 1.2em;
	text-indent: -1.2em;
}