﻿/** BASE **/

/* Márgenes */
@page {
	margin: .5em;
}
body {
	font-family: serif;
	margin: 0;
	padding: 0;
}
body * {
	object-fit: contain;
	box-sizing: border-box;
	max-width: 100%;
}

/* Fuentes */
@font-face {
	font-family: MusiSync;
	src:url('../fonts/MusiSync.ttf');
}
span.dingbat {
	font-family: MusiSync;
}

/* Control partición silábica */
#titlepage p,
#copyright-page p,
#dedication p,
h1,
h2,
h3,
h4,
h5,
h6 {
	break-after: avoid;
	page-break-after: avoid;
	/* -webkit-column-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;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* Serie */
#seriespage {
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#seriespage p {
	font-family: inherit;
	text-align: center;
	text-indent: 0;
}
#seriespage p.title {
	font-family: sans-serif;
	font-size: 2em;
	font-weight: bold;
	margin: 3.5em 0 1em 0;
}
#seriespage div.publisher {
	margin: 15em auto 0;
	text-align: center;
	width: 7rem;
}
#seriespage div.title {
	margin: 5em auto 0;
	text-align: center;
	width: 10rem;
}

/* Portada */
#titlepage {
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#titlepage p {
	font-family: inherit;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title {
	font-family: sans-serif;
	font-size: 1.5em;
	font-weight: bold;
	line-height: 1.2;
	margin: .5em 0 .25em 0;
}
#titlepage p.subtitle {
	font-family: sans-serif;
	font-size: 1em;
	font-weight: normal;
	line-height: 1;
	margin: 0 0 0 0;
}
#titlepage p.author {
	font-family: sans-serif;
	font-size: 1.75em;
	font-style: normal;
	font-weight: normal;
	margin: 1em 0 0 0;
}
#titlepage p.contrib {
	font-size: .9em;
	font-style: normal;
	margin: 4.5em 0 0 0;
}
#titlepage p.contrib span.name {
	display: block;
	font-size: 1em;
	font-style: normal;
}
#titlepage div.publisher {
	margin: 8em auto 0;
	text-align: center;
	width: 3rem;
}
#titlepage div.icon {
	margin: 4em auto 0;
	text-align: center;
	width: 2rem;
}

/* Portadilla */
#halftitlepage div.title {
	margin: 5em auto 0;
	text-align: center;
	width: 10rem;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-size: .8em;
	text-align: center;
	text-indent: 0;
}
#copyright-page div.edition p {
	font-style: italic;
}
#copyright-page div.identifiers p {
	font-size: .7em;
}

/* Índice */
#toc ol {
	font-style: normal;
	list-style-type: none !important;
	margin: 0;
	padding: 0;
	text-align: left;
}
#toc li {
	font-style: normal;
	list-style-type: none !important;
	margin: 0;
	padding: 0;
	text-align: left;
}
#toc li.ftm a,
#toc li.bkm a {
	font-style: italic;
}
#toc li.ftm + li.bdm,
#toc li.bdm + li.bkm {
	margin-top: 1em;
}
#toc li.part {
	margin: 1em 0;
	text-align: center;
}
#toc li.part span.label {
	display: block;
	font-size: .8em;
}
#toc li.part ol {
	margin: 1em 0;
}
#toc li a {
	font-weight: normal;
}
#toc li ol li {
	margin: 0 0 0 1em;
	text-indent: -1em;
}
#toc li ol {
	margin-left: 1em;
}
#toc li ol li a {
	font-weight: normal;
}
#toc li ol li ol {
	margin: 0 0 0 0;
}
#toc li ol li ol a {
	font-weight: normal;
	font-style: normal;
}
#toc a {
	color: #000001 !important;
	font-weight: normal;
}

/* Dedicatoria */
#dedication {
	margin-top: 5em;
}
#dedication p {
	font-size: .8em;
	text-align: center;
	text-indent: 0;
}

/* Epígrafe */
#epigraph {
	margin-top: 5em;
}
#epigraph p {
	font-size: 1em;
	text-align: justify;
	text-indent: 0;
}
#epigraph p.attrib {
	text-align: right;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: inherit;
	font-size: 1.2em;
	font-style: normal;
	font-weight: 500;
	line-height: 1.5;
	margin: 3em 0 3em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 span.label {
	display: block;
	font-size: .75em;
	margin-bottom: 1em;
}
h2 {
	font-family: serif;
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: 1.5em 0 3em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h2 span.ordinal {
	display: block;
	margin-bottom: 1em;
}
h3 {
	font-family: inherit;
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: 2em 0 1em 0;
	padding: 0 ;
	text-align: left;
	text-indent: 0;
}
h4 {
	font-family: inherit;
	font-size: 1em;
	font-style: italic;
	font-weight: normal;
	line-height: 1.5;
	margin: 2em 0 1em 0;
	padding: 0 ;
	text-align: left;
	text-indent: 0;
}
h3 + h4 {
	margin-top: 1em;
} 
h5 {
	font-family: inherit;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 1em 0 1em 0;
	padding: 0 ;
	text-align: left;
	text-indent: 0;
}
h6 {
	font-family: inherit;
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: 1em 0 1em 0;
	padding: 0 ;
	text-align: left;
	text-indent: 0;
}

p {
	font-family: inherit;
	font-size: 1em;
	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;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: .5em 0;
}
hr.light {
	border: none !important;
	height: 1em;
	margin: 0;
}
hr.w30 {
	background: currentColor;
	height: 1px;
	margin: 3em auto;
	width: 7rem;
}
img {
	margin: 0;
	max-width: 100%;
	padding: 0;
}
q {
  font-style: italic;
}
q:before {
  content: "";
}
q:after {
  content: "";
}
sub,
sup {
  font-size: .7em;
}
strong {
	font-family: sans-serif;
}

/* Listas */
ol {
	margin: 1em 0;
	padding: 0 0 0 2.5em;
}
ul {
	margin: 1em 0 1em 1em;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	line-height: 1.5;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
ul ul {
	list-style: disc;
	margin: 1em auto;
}
ul ol {
	margin: 0 auto;
}
li p {
	font-size: 1em;
	margin: 0;
	text-indent: 1em;
}
li p + p {
	text-indent: 1em;
}
.none {
	margin: 0;
	list-style: none;
	padding: 0;
}
.lower-alpha {
	list-style: lower-alpha;
}
.upper-alpha {
	list-style: upper-alpha;
}
.upper-roman {
	list-style: upper-roman;
}
.separated li {
	margin: 1em 0;
}
.separated li ul li {
	margin: 0;
}

.fake {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.fake li {
	text-indent: 1em;
}
li.fake {
	margin: 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-indent: -1em;
}
li span.number {
	display: inline;
	float: left;
	margin: 0;
	page-break-after: avoid;
	text-align: left;
	width: 1em;
}
li span.number + span.text {
	display: block;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-50 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-30 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 12em;
	max-width: 100%;
}
div.figure-75 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 20em;
	max-width: 100%;
}
img {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	text-align: center;
}

/* Seudoversalitas */
span.sc {
	font-size: 75%;
}

/* Estilos particulares */
blockquote {
	font-size: 1em;
	margin: 1em 0 1em 1em;
}
blockquote p,
blockquote li {
	font-size: .9em;
	font-style: normal;
	text-indent: 0;
}
blockquote p + p {
	text-indent: 1em;
}
blockquote + p {
	text-indent: 0;
}

/* Poemas */
blockquote.poem {
	margin-left: 6em;
}
blockquote.poem p.stanza {
	font-size: 1em;
	font-style: normal;
	margin-top: 1em;
	text-align: left;
	text-indent: 0;
}
blockquote.poem span.verse {
	display: block;
	margin-left: 1em;
	text-indent: -1em;
}

/* Firmas */
div.signature {
	margin-top: .5em;
	break-inside: avoid;
	page-break-inside: avoid;
}
div.signature p {
	font-size: 1em;
	text-align: right;
	text-indent: 0;
}
div.signature span.name {
	font-size: .8em;
}
div.signature p.data {
	font-style: italic;
}

/* Asteriscos */
p.asterisks {
	margin: 1.3em 0 1em 0;
	text-align: center;
	text-indent: 0;
}
p.asterisks + p {
	text-indent: 0;
}

/* Otros */
p.attrib {
	margin: .5em 0 0 0;
	page-break-before: avoid;
	text-align: right;
	text-indent: 0;
}
p.center {
	text-align: center;
	text-indent: 0;
}
p.listhead {
	font-weight: bold;
	margin: 1em 0;
	text-indent: 0;
}
p.listhead + p {
	text-indent: 0;
}
span.underline {
	text-decoration: underline;
}

blockquote.letter p.signature {
	margin-top: .5em;
	text-align: right;
}
blockquote.card p {
	text-indent: 0;
}
blockquote.card hr {
	margin: .5em 0;
	height: 1px;
}
blockquote.card p.date {
	margin: 1em 0;
}
blockquote.card p.title {
	margin: 1em 0;
}
blockquote.card div.figure {
	height: 2em;
	margin: 1em 0;
	text-align: left;
}
blockquote.purpose p,
blockquote.purpose li {
	font-size: .8em;
}

blockquote.email div.meta {
	margin: 1em 0;
}
blockquote.email div.meta p {
	text-indent: 0;
}
blockquote.email hr {
	margin: .5em 0;
	height: 1px;
}
blockquote.email p.date {
	margin: 1em 0;
}
blockquote.email p.date + p {
	text-indent: 0;
}
blockquote.email p.salutation {
	margin-top: 1em;
	text-indent: 0;
}
blockquote.email p.valediction {
	margin-top: 1em;
}
blockquote.email p.signature {
	text-align:right;
}
blockquote.dialogue p {
	margin-left: 1em;
	text-indent: -1em;
}
blockquote.news p {
	margin: 1em 0;
	text-indent: 0;
}
blockquote p.title + p {
	margin-top: 1em;
	text-indent: 0;
}

/* Estilos consecuentes */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p,
hr + p,
ol + p,
div.figure + p,
div.figure-50 + p,
ul + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}

/* BACKMATTER */

/* Sobre el autor */
#about-author h1 {
	font-family: sans-serif;
	font-size: 1.6em;
	font-weight: bold;
}
#about-author h1 span {
	display: block;
	font-size: 80%;
}
#about-author h2 {
	border-bottom: 1px solid currentColor;
	font-family: sans-serif;
	font-size: 1em;
	font-weight: bold;
	margin: 1em 0 0 0;
	text-align: left;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	line-height: 1;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.footnote {
	margin: .6em 0 0 0;
	page-break-inside: avoid;
}
div.footnote + div.footnote {
	break-before: always;
	page-break-before: always;
}
div.footnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	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: 2em;
}
div.footnote a.noteback + p {
	page-break-before: avoid;
}

/* Notas | Notas al pie */
#endnotes h2 {
	margin: 2em 0 1em 0;
	padding: 0;
	font-size: .8em;
	text-align: left;
}
div.endnote {
	margin: .6em 0 0 0;
	page-break-inside: avoid;
}
div.endnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}
div.endnote a.noteback {
	display: inline;
	float: left;
	clear: left;
	font-size: .8em;
	font-style: normal;
	margin: 0;
	padding: 0 .25em 0 0;
	page-break-after: avoid;
	text-align: right;
	vertical-align: inherit;
	width: 2em;
}
div.endnote a.noteback + p {
	page-break-before: avoid;
}

/* Contacto */
p.link {
	margin-top: 1em;
	text-align: center;
	text-indetn: 0;
}
p.uri {
	margin-top: 0;
	text-align: center;
	text-indetn: 0;
}