/** Video insert **/

.video--wrapper.video--vimeo--wrapper {}

.video--thumbnail.video--vimeo--thumbnail {}

.video.video--vimeo {
   display: none;
}

/* ########### VARIABLES ########### */

@font-face {
    font-family: 'Tuffy';
    src: url('https://etherport.org/filer/canonical/1700237980/33/') format('opentype');
    font-weight: normal;
    font-style: normal;
    }
    
     

@font-face {
    font-family: 'Tuffy';
    src: url('https://etherport.org/filer/canonical/1700237980/32/') format('opentype');
    font-weight: normal;
    font-style: italic;
    }

@font-face {
    font-family: 'Tuffy';
    src: url('https://etherport.org/filer/canonical/1700237980/30/') format('opentype');
    font-weight: bold;
    font-style: normal;
    }

@font-face {
    font-family: 'Tuffy';
    src: url('https://etherport.org/filer/canonical/1700237980/31/') format('opentype');
    font-weight: bold;
    font-style: italic;
    }

@font-face {
    font-family: 'Noto Emoji';
    src: url('https://etherport.org/filer/canonical/1709064312/120/') format('woff2');
    font-weight: regular;
    font-style: normal;
}

:root {
  --font-size: 9.5pt;
  --font-size-small: 7.5pt;
  --font-size-smaller: 6pt;
  --font-size-big: 27.5pt;
  --grid-size: 5mm;
  --grid-size-small: 2.5mm;
  --pink: #ff48b0;
  --darkgreen: #70744e;
  --margin: 2.5mm;
  --annotationsize: 30mm;
  --line-height: 17px;
  --font-size--header: 31px;
  --line-height--header: calc(2 * var(--line-height));
  --body-font: "Tuffy";
  --header-font: "Tuffy";
  --link-color: #ff48b0;
  --link-color--visited: #ff48b0;
}
 
 
/* ########### PAGE LAYOUT ########### */

@page {
    size: 145mm 210mm;
    marks: crop;
    margin: 7.5mm;
    margin-bottom: 23.8mm;/* BASELINE FIX, 25mm - 1.2mm */
}

@page {
    @bottom-left {
        margin-bottom: 8.8mm; /* BASELINE FIX, 10mm - 1.2mm */
        align-items: flex-end;
    }
    @bottom-right {
        margin-bottom: 8.8mm; /* BASELINE FIX, 10mm - 1.2mm */
        align-items: flex-end;
    }
}

@page :left {
    @bottom-left {
        content: counter(page);
        color: #70744e
        }
    /* @top-left{
        content: " ";
        text-transform: uppercase;
        } */
    margin-right: 0mm;
}

@page :right {
    @bottom-right {
        content: counter(page);
        color: #70744e
        }
    margin-left: 0mm;
    /* @top-right{
        content: string(title);
        text-transform: uppercase;
        letter-spacing: -.1px;
        } */
}

@page cover {
    @bottom-center {
        content: "";
    }
}

.pagedjs_blank_page .pagedjs_margin-bottom, 
.pagedjs_blank_page .pagedjs_margin-top-left, 
.pagedjs_blank_page .pagedjs_margin-top-right{
    display: none; /* no page numbers on empty pages */
    }

.chapter, .toc {
    page: chapter;
}
@page chapter:first {
    margin-top: 7.5mm;
}
@page :first {
    margin-top: 7.5mm;
}
#page-3 .pagedjs_page{
    margin-top: 7.5mm;
}


 
body, html {
  font-size: var(--font-size);
  line-height: var(--line-height);  
  font-family: var(--body-font);
}

.front-matter--title,
.toc,
.report,
.chapter,
.index {
  page-break-before: right;
}

/* ########### TYPOGRAPHY ########### */

h1, h2, h3, h4, h5, h5 {
  break-after: avoid;
  break-inside: avoid;
}

h1 {
 font-family: var(--header-font);
 font-size: 2em;
 line-height: var(--line-height--header);
 text-transform: uppercase;
 font-weight: normal;
 margin-top: 1.5mm; /* BASELINE FIX */
 color: #3d441e;
}

h2 {
 font-family: var(--header-font);
 font-size: 2em;
 line-height: 1.3em;
 margin-top: 1.5mm; /* BASELINE FIX */
 margin-left: -115pt;
 margin-bottom: -10pt;
 break-inside: avoid;
 break-after: avoid;
 color: var(--pink);
 text-transform: uppercase;
 font-weight: bold;
 position: relative;
 top: -20pt;
     }

h3 {
 font-family: var(--header-font);
 font-size: 1em;
 line-height: var(--line-height);
 break-inside: avoid;
 break-after: avoid;
 font-weight: normal;
 position: relative;
 top: -2em;
 color: #3d441e;
}

h4 {
 font-family: var(--header-font);
 font-size: 1em;
 line-height: var(--line-height);
 break-inside: avoid;
 break-after: avoid;
 font-weight: bold;
 text-transform: uppercase;
 color: var(--pink);
}

img {
  float: left;
  max-width: 40%;
  margin: calc(.5 * var(--line-height)) var(--line-height) calc(.5 * var(--line-height)) 0;
  break-inside: avoid;
}

caption{
    font-size: 0.5em;
    font-style: italic;
    }

p {
  margin: 0 0 var(--line-height) 0;
  color: #3d441e;
}

li {
    color: #3d441e;
    }

code {
    font-family: var(--header-font);
    }

a {
  color: var(--link-color);
}

pre {
    line-wrap: pre-wrap;
}

a:visited {
  color: var(--link-color--visited);
}

.pagedjs_right_page img {
  float: right;
  margin-left: var(--line-height);
  margin-right: 0;
}

a[data-reference][data-label] {
  color: inherit;
    text-decoration: none;
}

a[data-reference][data-label] .reference--label--inline {
  text-decoration: underline;
  text-decoration-style: dotted;
}


.pagedjs_left_page .report, 
.pagedjs_left_page .front-matter,
.pagedjs_left_page .chapter,
.pagedjs_right_page .indexes {
    padding-right: 47.5mm;
}

.pagedjs_left_page .reference--target {
    float: right;
    clear: right;
    width: 40mm;
    margin-right: -45mm;
    text-align: right;
}

.pagedjs_right_page .report,
.pagedjs_right_page .front-matter,
.pagedjs_right_page .chapter,
.pagedjs_right_page .indexes {
    padding-left: 47.5mm;
}

.pagedjs_right_page .reference--target {
    float: left;
    clear: left;
    width: 40mm;
    margin-left: -45mm;
}

.indexes {
  break-before: right;
}

.index-entry::after {
  content: target-counter(attr(data-link-id), page) ", ";
}


.index-entry:last-child::after {
  content: target-counter(attr(data-link-id), page);
}

.front-matter--title {
  break-after: right;
  page: cover;
  margin-left: -47.5mm;
}

.front-matter--title h1 {
    font-size: 450%;
    line-height: 1.15;
}

.front-matter--introduction {
  break-after: right;
}

/*
  Hide embedded youtube video's
*/
iframe[title="YouTube video player"],
iframe[src^="https://www.youtube.com/"] {
    display: none;
}

.toc ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  color: #3d441e;
}

.toc ul a {
  color: inherit;
  text-decoration: none;
  color: #3d441e;
}

.toc ul a::after {
  content: target-counter(attr(href), page);
  float: right;
}

.index ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.toc h1 {
    margin-bottom: 40mm;
    }

/* ########### ANNOTATIONS / ########### */

.annotation{
    --font-size: var(--font-size-small);
    font-size: var(--font-size);
    line-height: 3.75mm; /* every 5th line aligns*/
    text-indent: 0;
    orphans: unset;
    widows: unset;
}

.annotation a{
    --font-size: var(--font-size-small);
    font-size: var(--font-size);
    }

.annotation--content {
  position: absolute;
  width: var(--annotationsize);
}

.pagedjs_right_page .annotation--content{
  right: 100mm;
}

.pagedjs_left_page .annotation--content{
    left: 100mm;
}

.author, .annotation--author{
    text-transform: uppercase;
    }

.annotation a{
    word-break: break-all;
}
    
.annotation[data-type="reference"]::before{
    content: "⁝";
    color: var(--darkgreen);
    }
    
.annotation[data-type="reference"] .annotation--content::before{
    content: "⁝ ";
    color: var(--darkgreen);
    }
    

/* ########### CONTENT ########### */

.chapter > *:first-child:not(h1, figure) {
    margin-top: -1.3mm!important; /* BASELINE FIX */
}


.chapter, .toc{
    page-break-before: right;
    }

@page :first{
    
    @bottom-left {
        content: "";
    }
    
    @bottom-right {
        content: ""
    }
}



.front-matter--title h1{
	/* half-title css */
    font-size: var(--font-size);
    text-transform: none;
    width: 145mm;
    margin-left: 0mm;
    text-align: center;
    margin-top: 51.2mm;
}
.front-matter--title h1:after{
	content: "Conversations about Funding, Self-Organisation, and Reclaiming the Future";
	display: block;
	margin-top: 0mm;
}

.front-matter--introduction {
    display: none;
}

.toc ul{
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: -1.2mm!important; /* BASELINE FIX */
    padding-bottom: 1.2mm; /* BASELINE FIX */
    }


.toc li:before{
    margin-left: -10mm;
    position: absolute;
    content: var(--content-label);
    }


.toc li:nth-of-type(3){
    --content-label: "1";
    }
.toc li:nth-of-type(4){
    --content-label: "2";
    }
.toc li:nth-of-type(5){
    --content-label: "3";
    }
.toc li:nth-of-type(6){
    --content-label: "4";
    }
.toc li:nth-of-type(7){
    --content-label: "5";
    }
.toc li:nth-of-type(8){
    --content-label: "6";
    }

.toc ul a::after {
  content: target-counter(attr(href), page);
  float: right;
}


