﻿/** 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%;
}

/* 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%;
}

/* 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: 3em;
	font-weight: normal;
	line-height: 1.2;
	margin: 3em 0 0 0;
}
#titlepage p.subtitle {
	font-family: serif;
	font-size: 1.2em;
	font-weight: normal;
	line-height: 1;
	margin: .5em 0 0 0;
}
#titlepage p.author {
	font-family: sans-serif;
	font-size: 1.15em;
	font-style: normal;
	font-weight: normal;
	margin: 2.5em 0 0 0;
}
#titlepage p.contrib {
	font-size: 1em;
	font-style: normal;
	margin: 1.5em 0 0 0;
}
#titlepage div.publisher {
	margin: 8em auto 0;
	text-align: center;
	width: 3rem;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-size: .8em;
	text-align: left;
	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: 1em 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 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;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 3em 0 5em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
.header {
	break-after: always;
	page-break-after: always;
}
.header + * {
	padding-top: 5em;
}
.header h1 {
	font-size: 1.5em;
	margin-bottom: 1.5em;
	text-align: center;
}
.header h1 span.ordinal {
	display: block;
	margin-bottom: 1em;
}
.header blockquote {
	margin: 1em auto;
}
.header blockquote p {
	font-size: 1em;
	text-align: center;
}
.header p.attrib {
	font-size: .8em;
	text-align: center;
}
h2 {
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 2.5em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	font-family: sans-serif;
	font-size: .85em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: 2.5em 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: 0;
}
p + p {
	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;
}
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;
	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;
	padding: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
@supports not ((page-break-inside: avoid) and (break-inside: avoid)) {
  div.figure {
    -webkit-column-break-inside: avoid;
  }
}
@supports (height: calc(98vh - 5em)) {
  div.figure img {
    width: auto;
    max-width: 100%;
    min-height: 300px;
    height: calc(98vh - 5em);
    max-height: 80%;
    object-fit: contain;
  }
}
div.image {
	margin: 1em auto;
	padding: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure * {
	font-family: sans-serif;
}
div.figure-b {
	border: 0;
	margin: 1em auto;
	padding: 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-30 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 12em;
	max-width: 100%;
}
div.figure-50 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-75 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 20em;
	max-width: 100%;
}
div.portrait {
	float: right;
	margin: 0 0 .25rem 1rem;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 12em;
	max-width: 100%;
}
img {
	margin: 0;
	padding: 0;
	max-width: 100%;
	max-height: 80%;
	text-align: center;
}
p.ornato {
	margin: 1em auto;
	text-align: center;
	width: 3em;
	text-indent: 0;
}
p.ornato + p {
	text-indent: 0;
}
span.inline-image img {
	width: 1em;
	vertical-align: middle;
}

div.figcaption {
	margin: 1em 0 .2em;
}
div.figcaption p {
	font-family: serif;
	font-size: .8em;
	font-style: italic;
	text-align: left;
	text-indent: 0;
}

/* 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 */
.poem {
	margin-left: 1em;
}
p.stanza {
	font-style: italic;
	margin-top: 1em;
	text-align: left;
	text-indent: 0;
}
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;
}

/* Asteriscos */
p.asterisks {
	margin: 1.3em 0 1em 0;
	text-align: center;
	text-indent: 0;
}
p.asterisks + p {
	text-indent: 0;
}

/* Cards */
div.card {
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	margin: 1em 0;
	padding: 1em 0;
}
div.card * {
	border: 0;
	font-family: sans-serif;
}
div.card p.bridgehead {
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 0 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
div.card p.section {
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
div.card p.question {
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: .8em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
	text-decoration: underline;
}
div.card p,
div.card p.section + p,
div.card p.question + p,
div.card p.bridgehead + p {
	text-indent: 0;
}
div.card p + p {
	text-indent: 1em;
}
div.card div.figure {
	border-top: 0;
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 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;
}
p.salutation {
	margin-bottom: 1em;
}

span.dropcap {
	font-family: serif;
	font-style: normal;
	font-weight: normal;
	font-size: 3em;
	float: left;
	line-height: 1.2;
	margin-top: -.09em;
	margin-bottom: -.1em;
}

/* Estilos consecuentes */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p,
hr + p,
ol + p,
ul + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}

/* BACKMATTER */

/* Bibliografía */
.bibliography ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.bibliography li {
	margin-left: 1em;
    text-indent: -1em;
}
.bibliography span.name {
	font-family: sans-serif;
	font-size: .8em;
}

/* Lista definición */
dt, 
dd {	
	text-align: justify;
	text-indent: 0;
}
dt {
	font-size: .7em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin-top: 1.5em;
}
dd {
	font-size: .9em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: .2em 0 0 0;
}

/* Cronología */
#chronology dt, 
#chronology dd {	
	font-size: 1em;
	margin-top: .2em;
	padding-top: 0;
	text-align: left;
	text-indent: 0;
}
#chronology dt {
	float: left;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2; /* Valor necesario para correcta presentación en ADE 1.7.2 */
	padding-right: .5em;
	vertical-align: text-bottom;
}
#chronology dd {
	line-height: 1.5;
	margin-left: 3em;
}
#chronology dd + dt {
	clear: left;
}