﻿/** BASE **/

/* Márgenes */
body {
	font-family: serif;
	margin: 0;
	padding: 0 20px;
}

/* Fuentes integradas */
@font-face {
	font-family: cheddar-jack;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/cheddar-jack.ttf');
}

/* Control partición silábica */
#titlepage p,
#dedication p,
h1,
h2,
h3,
h4 {
	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;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* 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;
}

/* Sinopsis */
#summary * {
	color: #000;
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
}
#summary p {
	margin: 0;
	text-align: justify;
}
#summary p + p {
	text-indent: 1em;
}

/* Índice */
#toc {
	display: none;
}
#toc ol {
	list-style-type: none !important;
	margin: 1em 0;
	padding: 0;
}
#toc li {
	font-size: 1em;
	margin: .75em 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 {
	color: #000;
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Portadilla */
#titlepage * {
	font-family: sans-serif;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	font-size: 1.2em;
	font-weight: bold;
}
#titlepage p.subtitle {
	font-size: 1.5em;
	font-weight: normal;
}
#titlepage div.publisher {
	margin-top: 4em;
}
#titlepage div.publisher img {
	width: 6em;
}

/* Advertencia */
#advertencia {
	margin: 4em 0 0 0;
}

/* Dedicatoria */
#dedication {
	margin: 4em 0 0 0;
}
#dedication p {
	font-style: italic;
	text-align: right;
}

/* Epígrafe */
#epigraph {
	margin: 4em 0 0 20%;
}
#epigraph blockquote {
	margin: 1em 0 0 0;
}
#epigraph blockquote p {
	text-align: right;
}
#epigraph p.attrib {
	margin: 1em 0 0 0;
	text-align: right;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	color: #009b4f;
	font-size: 1.35em;
	font-style: normal;
	font-weight: bold;
	margin: 3em 0 3em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h2 {
	color: #009b4f;
	font-size: 1.15em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	color: #009b4f;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 + p {
	margin-top: 0;
}

p {
	font-size: 1em;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}

/* Capítulos */
div.quote {
	break-before: page;
	page-break-before: always;
	break-after: page;
	page-break-after: always;
	clear: both;
	margin: 1.5em 0;
	padding-top: 1.5em;
}
div.quote blockquote {
	margin: 0;
}
div.quote p {
	color: #009b4f;
	font-family: cheddar-jack;
	font-size: 2.5em;
	font-weight: normal;
	margin: 0;
	text-align: center;
	text-indent: 0;
}
div.quote p.attrib {
	margin-top: 1em;
	text-align: right;
}
div.quote + h1 {
	padding-top: 2.22em;
}
@supports (display: -webkit-flex) or (display: flex) {
  div.quote {
    min-height: 95vh;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
  }
}


/* Comunes */
a {
	color: #00F;
	font-style: normal;
	font-weight: normal;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
blockquote {
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-size: .9em;
	text-indent: 0;
}
blockquote li {
	font-size: .9em;
}
i cite {
	font-style: normal;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: .25em 0;
}
img {
	margin: 0;
	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 0;
	padding: 0 0 0 2.5em;
}
ul {
	margin: 1em 0;
	padding: 0 0 0 1.5em;
}
li {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
li p {
	font-size: 1em;
}
.lower-alpha {
	list-style: lower-alpha;
}
.upper-alpha {
	list-style: upper-alpha;
}
ul.none {
	list-style: none;
	margin: 1em 0;
}
ol li {
	font-weight: bold;
	margin: 1em 0;
}
ol li p {
	font-weight: normal;
}

/* Figuras y captions */
div.figure {
	margin: 1em 0;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
}

div.codebar {
	margin: 1em 0;
	text-align: center;
}
div.codebar img {
	text-align: center;
	width: 10em;
}
div.figure img.w30 {
	width: 30%;
}
div.figure img.w50 {
	width: 50%;
}
div.figure div.figcaption p {
	font-size: .8em;
	font-style: normal;
	hyphens: none;
	adobe-hyphenate: none;
	-moz-hyphens: none;
	-webkit-hyphens: none;
	margin-top: .25em;
	page-break-before: avoid;
	text-align: left;
	text-indent: 0;
}
div.figure div.figcaption p + p {
	margin: 1em 0;
}
div.figure div.figcaption span.label {
	font-size: .7em;
	font-weight: normal;
	text-decoration: underline;
	vertical-align: top;
}
div.figure div.figcaption a {
	font-weight: normal;
}

div.signature {
	margin-top: 2em;
	break-before: avoid;
	page-break-before: avoid;
	text-align: right;
}
div.signature p {
	margin: 0;
}
div.signature img {
	width: 12em;
	max-width: 100%;
	text-align: right;
}

span.inline-image img {
    height: .7em;
    vertical-align: middle;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	text-align: right;
}
div.signature p.date {
	font-style: italic;
	text-align: left;
	text-indent: 0;
}

/* Epígrafes */
div.epigraph {
	margin: 1em 0 2em 0;
}
div.epigraph blockquote {
	margin: 1em 0;
}
div.epigraph blockquote p {
	font-size: 1em;
	text-align: left;
	text-indent: 0;
}
div.epigraph p.attrib {
	text-align: right;
}

/* Poemas */
p.stanza {
	margin: 1em 0;
	text-indent: 0;
}
span.verse {
	display: block;
	margin-left: 1em;
	text-indent: -1em;
}

/* Ejercicios */
div.exercice {
	border: 1px solid #009b4f;
	margin: 1em 0;
	padding: 1em;
}
div.exercice p.bridgehead {
	color: #009b4f;
	font-size: 1.1em;
	font-weight: bold;
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}
div.exercice p {
	text-indent: 1em;
}

/* Otros estilos */
.anagram {
	color: #009b4f;
	font-size: 1.1em;
	font-weight: bold;
}
.green {
	color: #009b4f;
}

div.dialogue p {
	margin: 0;
}

/* Tablas */
table {
	border: 1px solid #009b4f;
	border-collapse: collapse;
	margin: 1em auto;
}
table p {
	font-size: .9em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
th {
	border: 1px solid #009b4f;
	border-collapse: collapse;
	padding: .2em;
	vertical-align: middle;
}
th p {
	color: #009b4f;
	font-weight: bold;
	margin: 0;
	text-align: center;
}
td {
	border: 1px solid #009b4f;
	border-collapse: collapse;
	padding: .2em;
	vertical-align: top;
}

/* Glosario */
dl.abbr dt, 
dl.abbr dd {	
	font-size: .9em;
	margin-top: .2em;
	text-align: justify;
	text-indent: 0;
}
dl.abbr dt {
	float: left;
	font-style: normal;
	font-weight: normal;
	line-height: 1.3; /* Valor necesario para correcta presentación en ADE 1.7.2 */
	padding-right: .5em;
}
dl.abbr dd {
	line-height: 1.5;
	margin-left: 1.25em;
}
dl.abbr dd + dt {
	clear: left;
}

/* Bibliografía */
.bibliography h2 {
	font-size: 1em;
	font-weight: normal;
	margin: 2em 0 1em 0;
	text-align: left;
}
.bibliography ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.bibliography li {
	margin: 0 0 0 0;
	text-align: left;
	text-indent: 0;
}

/* 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;
}

/* Notas | Notas finales */
div.rearnotes h2 {
	font-size: 1em;
	font-weight: normal;
	margin: 2em 0 1em 0;
	text-align: left;
}
div.rearnote {
	margin: .6em 0 0 0;
	page-break-inside: avoid;
}
div.rearnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}
div.rearnote 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.rearnote a.noteback + p {
	page-break-before: avoid;
}