﻿/** BASE **/

/* Márgenes */
@page {
	margin: .5em;
}
body {
	font-family: sans-serif;
	margin: 0;
	padding: 0;
}
body * {
	object-fit: contain;
	box-sizing: border-box;
	max-width: 100%;
}

/* Fuentes */
@font-face {
	font-family: TheSalvador-Condensed;
	src:url('../fonts/TheSalvador-Condensed.otf');
}

/* 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.author {
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	margin: 2em 0 0 0;
}
#titlepage p.title {
	font-family: serif;
	font-size: 2em;
	font-weight: normal;
	line-height: 1.2;
	margin: 1.2em 0 0 0;
}
#titlepage p.contrib {
	font-size: 1em;
	font-style: normal;
	margin: 4em 0 0 0;
}
#titlepage div.publisher {
	margin: 8em auto 0;
	text-align: center;
	width: 6rem;
}

/* 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;
}
#copyright-page div.notice p {
	margin: 1em 0;
}

/* Índice */
#toc h1 {
	font-family: TheSalvador-Condensed;
	font-size: 1.6em;
	margin: 2em 0 4em 0;
	padding: 0;
	text-align: left;
}
#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 0 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: bold;
}
#toc li ol li {
	margin: 0 0 0 1em;
	text-indent: -1em;
}
#toc li ol {
	margin-left: 0;
}
#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: 1.5em 0 3em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 span.label {
	display: block;
	font-size: .8em;
	margin-bottom: 1em;
}
h2 {
	font-family: TheSalvador-Condensed;
	font-size: 1.6em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h2 span.ordinal {
	display: block;
	margin-bottom: 1em;
}
h3 {
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 1.5em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h4 {
	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;
}

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;
}
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: 0 0 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;
}

ul.guide {
	list-style: none;
	margin: 1em 2em;
}
ul.guide li {
	text-align: center;
}
ul.conclusion {
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	margin: 1em 0;
	padding: 1em 0 1em 1.25em;
}
ul.conclusion li {
	font-family: sans-serif;
	font-size: .9em;
	margin: .6em 0;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	padding: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
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-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%;
}
img {
	margin: 0;
	max-width: 100%;
	max-height: 80%;
	text-align: center;
}

div.figcaption {
	margin: 1em 0 .2em;
}
div.figcaption p {
	font-family: TheSalvador-Condensed;
	font-size: 1.2em;
	margin-right: 5em;
	text-align: left;
	text-indent: 0;
}
p.credit {
	font-family: sans-serif;
	font-size: .8em;
	margin-right: 0;
	margin-bottom: 1em;
	text-align: right;
	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;
}

/* 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: 2em 0 0 0;
	text-indent: 0;
}
p.listhead + p {
	text-indent: 0;
}
p.point {
	margin: 1em 0 0 0;
	text-indent: 0;
}
p.point + p {
	text-indent: 0;
}
p.term {
	font-weight: bold;
	margin: 1em 0 0 1em;
	text-indent: 0;
}
ul.test {
	margin-top: 0;
}
ul.test li {
	font-family: sans-serif;
	font-size: .9em;
}
p.test-result {
	margin-top: 1em;
}
p.variant {
	margin-top: 1em;
	text-indent: 0;
}

.sans {
	font-family: sans-serif;
	font-size: .9em;
}
.underline {
	text-decoration: underline;
}

/* Tablas */
table {
	border: 1px solid currentColor;
	border-collapse: collapse;
	margin: 1em auto;
}
table p {
	font-family: sans-serif;
	font-size: .8em;
	text-align: left;
	text-indent: 0;
}
table p.l1 {
	margin-left: 1em;
}
table + p {
	text-indent: 0;
}
th, td {
	border: 1px solid currentColor;
	padding: .5em;
	vertical-align: top;
}
th p {
	font-weight: bold;
}
table.complex td {
	border-top: 0;
	border-bottom: 0;
}
div.legend p {
	font-family: sans-serif;
	font-size: .8em;
	text-indent: 0;
}
table.list {
	border-left: 2px hidden;
	border-right: 2px hidden;
}
table.list td {
	border-left: 2px hidden;
	border-right: 2px hidden;
}
table.list th {
	border-top: 2px hidden;
	border-left: 2px hidden;
	border-right: 2px hidden;
}

/* Recetas */
div.recipe {
	border: 1px solid currentColor;
	margin: 1em 0;
}
div.recipe p.step {
	margin: 1em 0;
	text-indent: 0;
}
div.recipe p.source {
	font-size: .8em;
	text-align: right;
	text-indent: 0;
}

/* Fichas */
div.card {
	border: 5px solid currentColor;
	padding: 1em;
	margin: 1em auto;
	width: 17em;
	max-width: 100%;
}
div.card div.icons {
	margin: .5em auto 1em;
	height: 3em;
	text-align: center;
}
div.card div.icons span.icon {
	display: inline-block;
	padding: 0 .2em;
	width: 2em;
}
div.card p {
	border-top: 1px solid currentColor;
	padding: .5em 0;
	text-align: left;
	text-indent: 0;
}
div.card span.label {
	font-family: TheSalvador-Condensed;
}

div.info {
	padding: 1em;
	margin: 1em auto;
	width: 17em;
	max-width: 100%;
}
div.info p.bridgehead {
	font-family: TheSalvador-Condensed;
	padding: .5em 0;
	text-align: left;
	text-indent: 0;
}
div.info p.field {
	border-top: 1px solid currentColor;
	padding: .5em 0;
	text-align: left;
	text-indent: 0;
}

div.subchapter blockquote {
	margin: 1em 0;
}
div.subchapter blockquote p {
	font-family: TheSalvador-Condensed;
	font-size: 1.2em;
	margin-right: 5em;
	text-align: left;
	text-indent: 0;
}

div.data p {
	margin: .5em 0;
	text-indent: 0;
}

/* 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 h1 {
	font-family: TheSalvador-Condensed;
	margin: 2em 0 1em 0;
	padding: 0;
	font-size: 1em;
	text-align: left;
}
.bibliography h2 {
	font-family: TheSalvador-Condensed;
	margin: 2em 0 1em 0;
	padding: 0;
	font-size: .8em;
	text-align: left;
}
.bibliography ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
/* .bibliography li { */
	/* margin-left: 1em; */
    /* text-indent: -1em; */
/* } */
.bibliography span.biblioauthor {
	font-size: .8em;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	line-height: 1.2;
	vertical-align: super;
}

/* 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;
}