﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	font-size: .9em;
	line-height: 1.5;
	margin: 0;
	padding: 0 20px;
}
body * {
	box-sizing: border-box;
	line-height: inherit;
	max-width: 100%;
	object-fit: contain;
}
.hidden {
	display: none;
}
@supports (max-height: 80vh) {
	img {
		max-height: 100vh !important;
	}
}

/* Fuentes */
@font-face {
	font-family: FreightBig;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/FreightBigProBook-Regular.ttf');
}
@font-face {
	font-family: FreightBig;
	font-style: normal;
	font-weight: bold;
	src:url('../fonts/FreightBigProBold-Regular.ttf');
}
@font-face {
	font-family: FreightBig;
	font-style: italic;
	font-weight: normal;
	src:url('../fonts/FreightBigProBook-Italic.ttf');
}

/* Control partición silábica */
#titlepage p,
#dedication p,
h1,
h2,
h3,
h4 {
	page-break-after: avoid;
	hyphens: auto;
	adobe-hyphenate: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	-epub-hyphens: auto;
}
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 {
	height: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}

/* Portadilla */
#titlepage {
	break-inside: page;
	page-break-inside: avoid;
}
#titlepage * {
	text-align: left;
	text-indent: 0;
}
#titlepage p.title {
	font-family: FreightBig;
	font-size: 3em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: .5em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
#titlepage p.author {
	font-family: FreightBig;
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 2em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
#titlepage p.subtitle {
	font-family: FreightBig;
	font-size: 1.2em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 8em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 10em auto 0;
	padding: 0;
	text-indent: 0;
	width: 4em;
}
#titlepage div.figure {
	margin: 0;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-size: .8em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
#copyright-page p.level {
	margin-bottom: 3em;
}

/* Sinopsis */
#summary * {
	font-family: serif;
}
#summary h1 {
	border: 0;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	text-align: center;
}
#summary p {
	margin: 0;
	text-align: justify;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Índice */
#toc ol {
	list-style-type: none !important;
	margin: 1em 0;
	padding: 0;
}
#toc li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: left;
}
#toc li ol {
	margin: 0 0 0 1em;
}
#toc li li {
	margin: 0;
}
#toc li span.label {
	display: block;
}
#toc li span.title {
	font-weight: bold;
}
#toc a {
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}
#toc li.chapter a {
	font-style: italic;
	font-weight: bold;
}
#toc li.chapter li a {
	font-style: normal;
	font-weight: normal;
}

/* Dedicatoria */
#dedication {
	margin: 5em 0 0 4em;
}
#dedication p {
	margin: 1em 0 0 0;
	text-align: right;
}
#dedication div + div {
	margin-top: 4em;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	border-bottom: 1px solid currentColor;
	font-family: FreightBig;
	font-size: 3em;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	margin: 2em 0 1em 0;
	padding-bottom: .4em;
	text-align: center;
	text-indent: 0;
}
h1 span.byline {
	display: block;
	font-size: .4em;
	font-style: italic;
	margin: 1em 0;
}
h1 span.label {
	display: block;
	font-size: .4em;
	font-style: italic;
	font-weight: normal;
	margin: 1em 0;
}
.chapter h1 {
	text-align: left;
	font-weight: bold;
}
.backmatter h1 {
	border: 0;
	font-size: 1.5em;
	margin-bottom: 4em;
	text-align: center;
	font-weight: bold;
}
h2 {
	page-break-before: always;
	border-bottom: 1px solid currentColor;
	font-family: FreightBig;
	font-size: 3em;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	margin: 2em 0 1em 0;
	padding-top: 2em;
	padding-bottom: .4em;
	text-align: center;
	text-indent: 0;
}
h3 {
	font-family: FreightBig;
	font-size: 1.8em;
	font-style: normal;
	font-weight: bold;
	line-height: 1;
	margin: 3em 0 1em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 + p,
h2 + p,
h3 + p {
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 0 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

a {
	color: #00F;
	font-family: inherit;
	font-weight: bold;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
i cite {
	font-style: normal;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: 0;
}
hr + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}
img {
	margin: 0;
	max-height: 100%;
	max-width: 100%;
	padding: 0;
}
q {
	font-style: italic;
}
q i {
	font-style: normal;
}
q:before {
	content: "";
}
q:after {
	content: "";
}
sub,
sup {
	font-size: .7em;
}

/* Listas */
ol {
	margin: 1em 0 1em 2em;
	padding: 0 0 0 1.25em;
}
ul {
	list-style: disc;
	margin: 1em 0 1em 2em;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	margin: .3em 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
li p {
	font-size: 1em;
	margin: 0;
	text-indent: 0;
}
li p + p {
	text-indent: 1em;
}
li blockquote p {
	font-size: 1em;
}
li blockquote + p {
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
	margin-left: 1em;
}
.upper-alpha {
	list-style: upper-alpha;
}
ul.none {
	list-style: none;
	margin: 1em 0 1em 1em;
	padding: 0;
}
ol + p,
ul + p {
	text-indent: 1em;
}

.fake {
	list-style: none;
	padding: 0;
	margin-left: 1em;
}
.fake li {
	margin: 1em 0;
	clear: both;
}
.fake li span.symbol {
	display: inline;
	float: left;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.8;
	margin: 0;
	page-break-after: avoid;
	text-align: right;
	width: 1em;
}
.fake li span.symbol + span.text {
	margin-top: 0;
	page-break-before: avoid;
}
.fake li span.text {
	display: block;
	margin-left: 1.5em;
}
.fake li span.text span.label {
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
}

/* Figuras y captions */
div.figure {
	margin: 0 auto 2em;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
p + div.figure {
	margin: 2em auto 2em;
}
div.figure-30 {
	margin: 1em auto 2em;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 30%;
}
div.figure-30-l {
	margin: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 30%;
}
div.figure-30-r {
	margin: 1em 0 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 30%;
}
div.figure-50 {
	margin: 1em auto 2em;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-50-r {
	margin: 1em 0 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-75 {
	margin: 1em auto 2em;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 75%;
}

div.figcaption {
	margin: 0 0 2em 0;
}
div.figcaption p {
	font-family: serif;
	font-size: 1em;
	font-style: normal;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
p.credit {
	font-family: serif;
	font-size: .7em;
	font-style: italic;
	margin: 0;
	text-align: right;
	text-indent: 0;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	margin: 1.5em 0 0 0;
}
div.signature p {
	font-size: .9em;
	font-style: italic;
	font-weight: normal;
	margin: 0;
	text-align: right;
	text-indent: 0;
}
div.signature p.name {
	font-weight: bold;
	font-style: normal;
}

/* Otros */
blockquote {
	margin: 1em;
	width: 16em;
}
blockquote p {
	font-family: inherit;
	font-size: 1.2em;
	font-style: italic;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
blockquote i {
	font-style: normal;
}
blockquote + p {
	text-indent: 1em;
}

/* Recetas */
div.recipe {
	page-break-before: always;
	padding-top: 1.5em;
}
div.recipe p.serial {
	font-family: inherit;
	font-size: .8em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1em 1em 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
	width: 5em;
	border-right: 1px solid currentColor;
	float: left;
}
div.recipe p.serial span.ordinal {
	display: block;
	font-size: 2em;
}
div.recipe p.title {
	clear: right;
	/* display: inline-block; */
	font-family: inherit;
	font-size: 2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: .5em 0 0 0;
	text-align: left;
	text-indent: 0;
}
div.recipe p {
	margin-top: 0;
	text-align: left;
	text-indent: 0;
}
div.recipe p.desc {
	font-family: serif;
	font-weight: normal;
	margin: 2em 0 0 0;
	text-indent: 0;
}
div.recipe p.desc + p.desc {
	text-indent: 1em;
	margin-top: 0;
}
div.recipe p.for {
	font-family: serif;
	font-weight: bold;
	margin-top: 2em;
	text-indent: 0;
}
div.recipe ul.ingredients li {
	font-family: serif;
	list-style: none;
	margin: 0 0 0 1em;
	text-indent: -1em;
}
div.recipe ul.ingredients {
	margin: 2em 0;
	padding: 0;
}
div.recipe p.for + ul.ingredients {
	margin: 0 0 2em 0;
}
div.recipe p.step {
	margin: 1em 0;
	text-indent: 0;
}
div.recipe p.for-step {
	margin: 1.5em 0 .5em 0;
	font-weight: bold;
}
div.recipe p.for-step + p.step {
	margin-top: .5em;
}

/* Bibliografía */
.bibliography ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.bibliography li {
	margin: 0 0 0 1em;
	text-align: left;
	text-indent: -1em;
}
.bibliography span.biblioauthor {
	font-variant: small-caps;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.footnote {
	margin: .6em 0 0 0;
	page-break-before: always;
	page-break-inside: avoid;
}
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;
	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;
}

/* Propios */
div.toc-brief {
	margin-top: 5em;
}
div.toc-brief p {
	font-family: FreightBig;
	font-size: 1.2em;
}
div.steps {
	margin: 3em;
}
div.steps p {
	margin: 1em 0;
	text-align: center;
}
div.steps p.step-for {
	margin-top: 2em;
}
div.ingredients {
	margin: 3em;
}
div.ingredients p {
	font-family: FreightBig;
	font-size: 1em;
	font-style: italic;
	margin: 1em 0;
	text-align: center;
}
div.ingredients p.scope {
	font-family: sans-serif;
	font-style: normal;
}
p.trick {
	font-family: FreightBig;
	font-size: 1.8em;
	font-style: italic;
	line-height: 1;
	margin: 2em;
	text-align: center;
}
p.comment {
	font-family: FreightBig;
	font-size: 1em;
	font-style: italic;
}
p.comment i {
	font-style: normal;
}
p.comment-center {
	font-family: FreightBig;
	font-size: 1em;
	font-style: italic;
	text-align: center;
}
div.ingredients p.for {
	margin-bottom: 0;
}
div.ingredients p.for + p {
	margin-top: 0;
}
#index ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
#index li {
	margin: 1em 0;
}
#coda {
	padding: 2.5em 5em;
}
#coda p {
	font-family: FreightBig;
	font-size: 1.1em;
	font-style: italic;
	margin: 1em 0;
	text-align: right;
}