/* --------- Variable ---------- */

:root{
--back-width : 2cm; /*taille du dos*/
--green : rgb(0, 100, 61);
--yellow: rgb(251, 244, 190);
--grey: rgb(18, 18, 18);
--titlefont: "Monaco", monospace;
--textfont: "Marr", serif;
--textsize: 10.5pt;
--leftmargin: 22mm;
--baseline: 20px;
}

/* --------- Paramètres de base ---------- */
@page{
	size: 6in 9in;
	bleed: 6mm; 
  marks: crop;
}

@page :left {
	margin: 16mm 25mm 10mm 10mm;
	@top-left-corner {
		content: counter(page);
		font-size: 8pt;
		text-align: center;
		font-family: var(--textfont);
		color: var(--green);
 	}
 	@top-center{
    content: string(title);
    font-size: 8pt;
    text-align: center;
    color: var(--green);
    text-transform: uppercase;
  }
}

@page :right {
	margin: 16mm 10mm 10mm 25mm;
	@top-right-corner {
		content: counter(page);
		font-size: 8pt;
		text-align: center;
		font-family: var(--textfont);
		color: var(--green);
 	}
 	@top-center{
    content: string(title);
    font-size: 8pt;
    text-align: center;
    color: var(--green);
    text-transform: uppercase;
  }
}


* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
	font-size: 16px; 
	font-family: var(--textfont);
	margin:0;
}

img{
	width: 100%;
}

h1{
	font-family: var(--titlefont);
	font-weight: normal;
	font-size: 3em;
	margin-top: 0;
	text-transform: uppercase;
	margin-bottom: 0;
	string-set: title content(text);
	color: var(--green);
}

h2, h3{
	font-family: var(--titlefont);
	font-weight: normal;
	/*color: var(--green);*/
	text-transform: uppercase;
}

p, li{
	text-align: justify;
	hyphens: auto;
	line-height: 1.45;
/*	text-align-last: left;*/
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 4;
  -ms-hyphenate-limit-chars: 7 3 4;
  hyphenate-limit-chars: 7 3 4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* veuves et orphelines (bancal) */
  widows: 3;
  orphans: 3;
}

a{
	color: var(--green);
/*	text-decoration: none;*/
	white-space: pre-wrap; /* CSS3 */    
	white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
	white-space: -pre-wrap; /* Opera 4-6 */    
	white-space: -o-pre-wrap; /* Opera 7 */    
	word-wrap: break-word; /* Internet Explorer 5.5+ */
}


ul, figure, ol{
	margin: 0;
	padding: 0
}

table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid grey;
  font-size: 14px;
}

th {
/*  background: var(--green);*/
  color: var(--green);
  font-weight: bold;
/*  text-transform: uppercase;*/
  text-align: left;
  border-bottom: 1px solid grey;
}

th, td {
/*  border: 1px solid var(--yellow);*/
  padding: 12px 8px;
}

tr{
	border-bottom: 1px solid lightgrey;
}

tr:last-child{
	border: none;
}


tr:nth-child(even) {
/*  background: lightgrey;*/
}

.chapter .invisible{
	display: none !important;
}


/* --------- Couverture ---------- */
.cover .pixels-grid, .backcover .pixels-grid {
	width: 576px;
  height: 864px;
  position: absolute;
  top: 0cm; 
  left:0cm;
}

.cover #pixels-grid-inner, .backcover #backcover-pixels-grid-inner{
	position: relative;
	width: 100%;
	height: 100%;
}

.pagedjs_first_page {
	background: var(--green);
}

.cover figure{
/*	width: 576px;
	height: 864px;*/
	width: 106%;
	height: 104%;
	position: absolute;
	top: -2%; 
	left: -3%;
	background-color:var(--yellow);
}

.cover figure::before {
  background-color:    var(--green);
  bottom:              0;
  content:             '';
  height:              100%;
  left:                0;
  mix-blend-mode:      screen;
  position:            absolute;
  right:               0;
  top:                 0;
  width:               100%;
  z-index:             1;
}

.cover figure img{
	image-rendering:pixelated;
	width:100%;
	filter:grayscale(100%) contrast(1.5) brightness(1.5);
  mix-blend-mode:      multiply;
  object-fit:          cover;
  opacity:             1;
  position:            relative;
  vertical-align: top;
}

.cover h1{
	position: absolute;
	z-index: 20;
	top:4cm;
	left:50%;
	transform: translateX(-50%);
	text-align: center;
	font-size: 35pt;
	line-height: 2;
	width: 95%;
}

.cover h1 span{
	color: var(--green);
	background: #FFF;
	border-radius: 50px;
	padding: 10px 30px;
}


.cover h2{
	font-size: 25px;
	color: var(--green);
	position: absolute; 
	top: 0.5cm;
	z-index: 10;
}

.cover h2 span{
	background: #FFF;
	border-radius: 20px;
	padding: 5px 20px;
	display: block;
	position: absolute;
}

.cover h2 span:nth-child(1){
	left: 1cm;
}

.cover h2 span:nth-child(2){
	left: 5.9cm;
}

.cover h2 span:nth-child(3){
	left: 11.5cm;
}

.cover .date-and-version{
	position: absolute; 
	bottom: 0.5cm; 
	right: 1cm;
	color: var(--yellow);
	font-size: 8pt;
}

#book-index{
	position: absolute;
	z-index: 1000;
	width: 100%;
	height:100%;
	/*top:9cm;*/

}

.cover #authors-index{
	position: absolute;
	z-index: 100;
	width: 100%;
/*	height:100%;*/
	padding: 1cm;
	bottom: 0.5cm;
}

.cover #authors-index #list-index-generated-author-index{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.cover #authors-index #list-index-generated-author-index li{
	display: block;
}

.cover .text-couv{
	position: absolute;
	bottom: 2cm;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	width: 80%;
	padding: 0mm 5mm 0mm 5mm;
  border-radius: 35px;
  text-align: center;
  color: var(--green);
  font-size: var(--textsize);
  background: white;
}



.link-page a::after{ content: target-counter(attr(href), page); font-size: 8pt;}

.link-page::after{ content: ","; }
.link-page:last-child:after{content:"";}

.link-page:last-of-type::after{ content: none; }

/*.index-value::after{ content: " ,"; }*/

.links-pages:before{
	content: " (P.";
}

.links-pages:after{
	content: ")";
}

#list-index-generated-author-index li,
#list-index-generated-book-index li{
	background: transparent;
	padding: 2mm 2mm 1.5mm 2mm;
	border-radius: 40px;
	text-align: center;
	text-transform: uppercase;
	color: var(--green);
	display: inline-block;
	margin-left: 1mm;
	margin-top: 2mm;
	font-size: 8pt;
	font-family: var(--titlefont);
	/*border: 0.05em solid var(--green);*/
}

#list-index-generated-author-index li{
	background: #FFF;
}

#list-index-generated-book-index li{
	background: #FFF;
	border: 0.05em solid var(--green);
}

.index-value{ display: inline-block; }
.index-value:first-letter{ text-transform: uppercase; }

.link-page a{ 
	text-decoration: none;
	color: currentColor;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}


.backcover, .back, .cover{
/*	page-break-before: always;*/
}

.backcover{
	page: backcover;
}

/* le dos du livre */
.back{
	page: back;
}

.cover{
	page: couverture;
}

@page couverture{
	margin:0;
	background: var(--green);
	@top-left-corner {
		content:"";
	}
	@top-right-corner {
		content:"";
	}
}

@page backcover{
	margin:0;
	background: var(--green);
	@top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;}
}

/* le dos du livre */
@page back{
	size: 4cm 24cm;
	background: var(--yellow);
	margin: 0;
}

.cover .pagedjs_backcover_page, .cover .pagedjs_couverture_page{
	margin-left: 0;
	margin-right: 0;
	box-shadow: none;
}

.pagedjs_back_page{
	width: var(--back-width) !important;
	margin-left: 0;
	margin-right: 0;
	position: relative;
}

.pagedjs_back_page h1{
	transform: rotate(-90deg);
	position: absolute;
	top: 50%; 
	left: -118px;
	color: var(--green);
}

.cover .pagedjs_couverture_page{
	float: left;
}

.cover .pagedjs_pages{
	width: calc((var(--pagedjs-width) * 2 + var(--back-width)) + (var(--margin) * 4));
}

.backcover .backcover-summary{
  position: absolute;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  top: 1.5cm;
  color: #FFF;
}

.backcover .backcover-summary p{
	font-size: 16px;
	text-align: left;
	line-height: 1.4;
	hyphens: none;
}

.backcover .barcode-wrapper{
	position: absolute;
	bottom: 10mm;
	right: 8%;
}

.backcover .backcover-bottom{
	position: absolute;
	bottom: 10mm;
	left: 10%;
	color: #FFF;
}

.backcover .backcover-bottom a,
.backcover .backcover-bottom p{
	color: #FFF;
	margin: 0;
	font-size: var(--textsize);
}

.backcover .backcover-bottom .logo-wrapper{
	width: 40mm;
	margin-top: 2mm;
	margin-left: -2mm;
}


/* --------- Pages blanches --------- */

.white-page{
/*	page-break-before: always;
	page-break-after: always;*/
	page: whitepage;
}

@page whitepage{
	@top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;}
}

.pagedjs_page.pagedjs_right_page.pagedjs_blank_page .pagedjs_margin-top-center > .pagedjs_margin-content::after,
.pagedjs_page.pagedjs_right_page.pagedjs_blank_page .pagedjs_margin-top-right-corner > .pagedjs_margin-content::after{
	content: none;
}

.title-page {
/*	page-break-before: always;
	page-break-after: always;*/
	page: titlepage;
}

.title-page h1{
	position: absolute;
	z-index: 20;
	top:50%;
	left:50%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 35pt;
	line-height: 2;
	width: 95%;
}

.title-page h1 span{
	color: var(--green);
}

@page titlepage{
	margin:0;
	@top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;}
}

.title-page-small{
/*	page-break-before: always;
	page-break-after: always;*/
	page: titlepagesmall;
}

.title-page-small h1{
	font-size: 26pt;
	margin-top: 1cm;
	margin-bottom: 1cm;;
}

.title-page-small p{
/*	font-weight: bold;*/
	color: var(--green);
}

.title-page-small_logo{
	position: absolute;
	bottom: 0.2cm;
}

@page titlepagesmall{
	@top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;}
}

.copyright-page{
	font-size: 7pt;
	position: absolute;
	bottom: 0.5cm;
}

.toc-legende{
	margin-top: 1cm;
}

.toc-legende li{
	list-style: none;
	color: var(--green);
}

.toc-left-page{
	page: nocontent
}

@page nocontent{
	@top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;}
}

/* --------- Pages intérieures ---------- */
.chapter-left-page {
  break-before: left;
  page: chapterleft;	
}

@page chapterleft{
	@top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;}
}

.chapter{
	break-before: right;
	margin-top: 1cm;
/*	counter-reset: footnote 0;*/
}

#book-title{
	string-set: title content(text);
}


.chapter h1{
	margin:0;
	font-size: 26pt;
	text-transform: none;
	font-family: var(--textfont);
	line-height: 1.2;
}



.summary{
/*	margin-left: -3.5cm;*/
/*	font-family: var(--titlefont);*/
	position: relative;
}

.summary ol{
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-end;
}

.summary li{
	list-style: none;
	position: relative;
	border: 1px solid #000;
	padding: 0.2cm 0.2cm;
	flex-grow: 1;
	margin-left: -1px;
	margin-top: -1px;

}

.chapter .content{
	margin-top: 3cm;
}

.chapter .content h2 {
	margin-top: 48px;
}

.chapter .content h3 {
	margin-top: 32px;
	line-height: 1.4;
	letter-spacing: 1px;
}

.chapter .content h3 b{
	font-weight: normal;
}

.chapter .content h3 strong{
	color: rgb(50, 50, 50);
}

.chapter h3:first-child{
	margin-top: 0;
}

.chapter .content h2 strong{
	font-weight: normal;
}

.chapter .content figure{
	margin-top: 2em;
	margin-bottom: 1.5em;
}

.chapter .content h2:first-child, 
.chapter .content h3:first-child,
.chapter .content figure:first-child{
	margin-top: 0;
}

.chapter .content ul,
.chapter .content ol{
	margin-left: 1cm;
}

.chapter .content ul li{
/*	list-style: none;*/
}

.chapter .content.alignment-left,
.chapter .content.alignment-left p,
.chapter .content.alignment-left li{
	text-align: left;
	hyphens: none;
}

.chapter .content.alignment-center,
.chapter .content.alignment-center p,
.chapter .content.alignment-center li{
	text-align: center;
	hyphens: none;
}

.chapter .content.alignment-right,
.chapter .content.alignment-right p,
.chapter .content.alignment-right li{
	text-align: right;
	hyphens: none;
}

.chapter .content.alignment-justify,
.chapter .content.alignment-justify p,
.chapter .content.alignment-justify li{
	text-align: justify;
}

/*.chapter figcaption{
	font-size: 9pt;
	opacity: 1;
	line-height: 1.3;
}*/

/*.chapter .content figure{
	page: imageTest;
}*/

.chapter .content figure figcaption, 
.chapter .content figure figcaption a {
	color: var(--green);
}

.chapter .label{
	font-size: 12pt; 
	color: #7E7E7E;
	text-transform: uppercase;
	font-family: var(--titlefont);
	margin-top: 1mm;
	/*margin-left: var(--leftmargin)*/
	margin-bottom: 0;
}

.chapter-number{
  background: var(--yellow);
  color: #000;
  font-family: var(--textfont);
  border-radius: 100%;
  font-size: 7pt;
  display: inline-block;
  vertical-align: top;
  margin-right: 1mm;
  margin-top: 0.95mm;
  height: 4.2mm;
  width: 4.2mm;
  text-align: center;
  padding-top: 0.75mm;
  line-height: 1.2;
}

.icon{
/*	margin-right: 4mm; */
	width: 4mm;
	display: inline-block;
	vertical-align: top;
/*	font-size: 18pt;
	color: var(--green);*/
}

.icon img{
	vertical-align: top;
  padding-top: 1mm;
}

.chapter .location p{
	margin: 0;
	color: var(--green);
	font-size: 7pt;
	margin-top: 1mm;
}

.chapter .date-added{
	/*string-set: date content(text);*/
	font-size: 7pt;
	color: var(--grey);
	position: absolute;
	margin: 0;
  top: -1cm;
}

.chapter-left-page .image-map{
	margin-bottom: 1cm;
}


/*@page imageTest{
	margin: 10mm 18mm 18mm 25mm;
	background: var(--yellow);
	@bottom-left {
	  margin-left: -1cm;
	}
}*/

.images-gallery{
/*	page-break-before: always; 
	page-break-after: always; */
	page: images;
}

.chapter .content .images-gallery ul{
	position: relative;
	margin:0;
}

.images-gallery ul li{
	width: 100%;
	margin: 0;
	margin-top: 0.5cm;
	list-style: none;

}

@page images{
	margin: 10mm 10mm 18mm 18mm;
	@bottom-left {
	  margin-left: 0;
	}
}

/* ----------- FOOTNOTES ----------- */
.pagedjs_footnote_area{
	margin-top: calc(var(--margin) *2);
}


.footnote {
  float: footnote;
  word-break: break-word;
	line-height: 1.45;
	font-size: 7pt;
	text-align: left;
	hyphens: none;
	color: var(--grey);
	word-spacing: -0.7px;
  letter-spacing: 0.02em;
  margin-bottom: 0.8mm;
}

.footnote a{
	color: var(--grey);
}

@page {
  @footnote {
    float: bottom;
  }
}

::footnote-call {
/*  content: counter(footnote, loweralpha);*/
  line-height: 0;
  font-size: 8pt;
/*  font-weight: bold;*/
  vertical-align: middle;
  position: relative;
  top: -2px;
}

::footnote-marker {
/*  content: counter(footnote, loweralpha) "     ";*/
  font-size: 7pt;
  color: var(--grey);
  line-height: 0;
}

/* ------- D E F A U L T  ---------- */

.content p, 
.content li{
	font-size: var(--textsize);
	/*margin-left: var(--leftmargin);*/
}

figure{
	page-break-inside: avoid;
}

figcaption{
	margin-top: calc(var(--baseline) / 4);
}

figcaption p, figcaption{
	text-align : left;
	font-size: 7pt !important; 
	color: var(--grey);
	line-height: 1.45; 
	hyphens:none; 
	/*margin-bottom: calc(var(--baseline) + (var(--baseline) / 2));*/
  word-spacing: -0.7px;
  letter-spacing: 0.02em;
}

/* ------- D E F A U L T   P A G E ------------ */
.default-page h2{
	margin:0;
	color: var(--green);
	text-transform: none;
}

/* ------- L O G B O O K  ---------- */
.logbook .description{
	/*margin-left: var(--leftmargin);*/
	page-break-after: always;
}

.logbook .description p, .big-text p{
	color: var(--green);
	font-size: 13pt;
	text-align: left;
	hyphens: none;
	line-height: 1.3;
}

.logbook .description p a, .big-text p a{
	color: var(--green);
	text-decoration: underline;
}

.description .footnote::after{
	font-size: 11pt;
}

.logbook h2{
	font-size: 15pt; 
	text-transform: none;
	margin-top: 0;
	font-family: var(--textfont);
	line-height: 20px;
	margin-bottom: var(--baseline);
}

.logbook-article{
	/*position: relative;*/
	page-break-after: always;
}

.logbook-content p, .logbook-content li{
	font-size: var(--textsize);
	margin-top:0;
	margin-bottom: 20px;
	word-spacing: -0.7px;
	letter-spacing: 0.02em;
}

.logbook-content ul{
	padding-left: 1cm;
}

.logbook figure,
figure.grayscale {
	width: 100%;
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	margin-bottom: 40px;
	max-height: 19cm;
	page-break-inside: avoid;
	break-inside: avoid;
/*	background-color: red;*/
/*	max-height: 100mm;
	overflow: hidden;*/
}

.logbook figure.portrait,
figure.grayscale.portrait{
	width: 70%;
	margin:auto;
}




/* ------- S T O R Y ---------- */
.story{
	page: story;
}

@page story{

}

@page story :left{
	/*margin: 1cm 2cm 1cm 1cm;*/
}

@page story :right{
	/*margin: 1cm 1cm 1cm 2cm;*/
}

.image-cover{
	background: var(--green);
	/*box-shadow: -2px -2px 20px var(--green);*/
}

.image-cover img{
	 mix-blend-mode: screen;
  -webkit-filter: grayscale(100%) contrast(200%);
  filter: grayscale(100%) contrast(200%);
  opacity: 1;
  vertical-align: top;
}

.meta{
	display: flex; 
	margin-top: 1cm;
	margin-bottom: 2.3cm;
}

.meta h5{
	margin: 0;
	margin-bottom: 1mm;
	font-size: 6pt;
	font-family: var(--titlefont);
	font-weight: normal;
}

.meta p, .meta li{
	color: var(--green);
	text-decoration: underline;
	list-style: none;
	font-size: 7pt;
	line-height: 1.4;
	text-align: left;
	text-transform: uppercase;
}

.meta .contributors{
	width: 30%;
}

.meta .tags{
	width: 50%;
}

.meta .location{
	width: 20%;
}

.meta .tags ul{
	column-count: 2;
	column-gap: 0.2cm;
}

.meta .tags li{
	text-transform: uppercase;
}

.meta .contributors + .meta .tags{
	margin-left: 0.7cm;
}


.meta .location{
	margin-left: 0.7cm;
}


.story-content .story-content-text{
	/*margin-left:50%;*/
	/*margin-left: var(--leftmargin);*/
	/*float: right;*/
}

.story-content p, .story-content li{
	font-size: var(--textsize);
	margin-top: 0; 
	margin-bottom: 0.5cm;
	word-spacing: -0.7px;
	letter-spacing: 0.02em;
}

.story-content ul{
	padding-left: 1cm;
}

.story-content h3{
	text-transform: none;
	font-weight: normal;
	font-family: var(--textfont);
	line-height: 1.2;
}

.story-content h3 b{
	font-weight: normal;
}

.story-content p + h3{
	margin-top: 1cm;
}

.story-content figure{
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	margin-bottom: 40px;
	/*margin: 0.5cm 0cm;*/
	/*float: left;*/
	/*position: absolute;*/
  /*width: 48%;*/
}

.story-content figure:first-child{
	margin-top: 0;
}

/* ------- TABLE OF CONTENTS --------- */

.map-page{
  page: map;
}

@page map{
	margin: 0;
}

.toc-page{
  page: toc;
}

@page toc{
  @top-left-corner {content: none;}
	@top-left {content: none;}
	@top-center {content: none;}
	@top-right {content: none;}
	@top-right-corner {content: none;}
	@left-top {content: none;}
	@left-middle {content: none;}
	@left-bottom {content: none;}
	@right-top {content: none;}
	@right-middle {content: none;}
	@right-bottom {content: none;}
	@bottom-left-corner {content: none;}
	@bottom-left {content: none;}
	@bottom-center {content: none;}
	@bottom-right {content: none;}
	@bottom-right-corner {content: none;} 
}

.toc-page h1{
  margin-top: 1cm;
  margin-left: 0cm;
  font-size: 26pt;
}

#table-of-contents{
	margin-top: 2.5cm;
	position: relative;
}

#table-of-contents ul{
    padding:0;
    margin-left: 13mm;
}

#table-of-contents li{
    margin-bottom: 4mm;
    font-size: 14pt;
    color: var(--green); 
    line-height: 1.2;
    text-align: left;
/*    font-weight: bold;*/
}

#table-of-contents li a{
	display: inline-block;
	color: var(--green); 
	max-width: 80%;
/*	margin-left: -0.5cm;*/
}

#list-toc-generated .toc-element .chapter-number{
	margin-left: -12.5mm;
}

#list-toc-generated .toc-element .chapter-title{
	margin-left: 3mm;
	hyphens: none;
	line-height: 1.4;
	font-size: 16px;
}

#list-toc-generated .toc-element .location{
	margin:0;
  color: var(--green);
  font-size: 7pt;
  line-height: 1.4;
  text-align: left;
}


#list-toc-generated{ 
	list-style: none;
	overflow-x: visible !important;
}

#list-toc-generated a{
	text-decoration: none;
}

#list-toc-generated .toc-element a::after{
    content: target-counter(attr(href), page);
    position: absolute;
    right:0;
    top:0;
    font-size: 16px;
}

#list-toc-generated .toc-element-level-1{
	position: relative;
}

#list-toc-generated .toc-element-level-2{
    margin-left: 25px;
}


/* target-text(attr(href), before) doesn't work for now, replace with counters (see below)*/
/* #list-toc-generated .toc-element a::before{
    content: target-text(attr(href), before);
} */

/* counters */

#list-toc-generated{ 
    counter-reset: counterTocLevel1; 
}

#list-toc-generated .toc-element-level-1{ 
    counter-increment: counterTocLevel1; 
    counter-reset: counterTocLevel2; 
}
/*
#list-toc-generated .toc-element-level-1::before{ 
    content: counter(counterTocLevel1) ". ";
    padding-right: 5px;
}*/

#list-toc-generated .toc-element-level-2{ 
    counter-increment: counterTocLevel2; 
}

#list-toc-generated .toc-element-level-2::before{ 
    content: counter(counterTocLevel1) ". " counter(counterTocLevel2) ". ";
    padding-right: 5px;
}

/*  leader() doesn't work for now, replace with the hack bellow */
/* #list-toc-generated .toc-element a::after{
    content: leader('.') " p. " target-counter(attr(href), page);
    float: right;
} */

/* hack for leaders */

#list-toc-generated{
    overflow-x: hidden;
}

/* ------- AUTHORS PAGE --------- */

.author-page .content h2, .author-page .content h3{
	margin: 0;
	text-transform: none; 

}

/* ------- CREDITS PAGE --------- */

.credits .content p{
	text-align: left;
	hyphens: none;
}





