/** https://pad.constantvzw.org/p/diversions.css */

/** Resetting Mediawiki's breaks */
h1, h2, h3, h4, h5, h6 {
  page-break-after: unset;
  break-before: unset;
  page-break-before: unset;
  break-after: unset;
}

h5 .mw-headline, .mw-body-content h5 .mw-headline {
  padding-bottom: 0;
}

:root {
  --pagedjs-crop-offset: 3mm;
}

@page {
  size: 170mm 240mm;
  margin: 10mm 15mm 15mm 15mm;
  bleed: 6mm;
  marks: crop;
}

@page :left {
  margin-right: 40mm;
  
  @bottom-left {
    text-align: left;
    content: counter(page) " ― " string(running-title);
    font-family: "Poppins";
    font-size: calc(var(--font-size) * 0.8);
    letter-spacing: 0.025em;
  }
  
}

.pagedjs_page.pagedjs_left_page .pagedjs_margin-bottom-left > .pagedjs_margin-content::after,
.pagedjs_page.pagedjs_right_page .pagedjs_margin-bottom-right > .pagedjs_margin-content::after {
  margin-top: -1mm;
}

@page :left :blank {
  @bottom-left {
    content: counter(page);
  }
}

@page :right {
  margin-left: 40mm;
   
  @bottom-right {
    text-align: right;
    content: counter(page);
    font-family: "Poppins";
    font-size: calc(var(--font-size) * 0.8);
    letter-spacing: 0.025em;
  }
}


@page :right :blank {
  @bottom-right {
    content: counter(page);
  }
}



/*
*
* Print styles
*
*/
@media print {
  :root {
    --line-height: 11.5pt;
    --font-size: 9.5pt;
    --main-color: black;
    --secondary-color: black;
    --background-color: white;
  }

  .onlyprint {
    display: block !important;
  }
  
  .onlyscreen {
    display: none !important;
  }

  body, html {
    padding: 0;
    margin: 0;
  }

  .timeline {
    display:none
  }
  
  h2 {
    border-bottom: none;
  }
  
  p {
    text-align: left;
    margin-top: 0;
    /* hyphens: auto; */
    orphans: 2;
    widows: 2;
  }
  
  p:before {
      /** A wiki print thing, but it prevents the text-indent. Disable it */
      display: none;
 }

  p + p,
  .column-breaker + p,
  .elem-float-top + p {
    text-indent: calc(1.5 * var(--line-height));
  }
  
  [data-article="colophon"] p + p {
    text-indent: 0;
    margin-top: var(--line-height);
  }
  .mw-body-content blockquote p,
  .mw-body-content blockquote ul {
font-family: "avara";
font-size: calc(0.85 * var(--font-size));
line-height: calc(0.95 * var(--line-height));
}
  
.mw-body-content [data-section="essays"] blockquote p {
    /*font-size: calc(1.2 * var(--font-size));*/
    /* line-height: calc(1 * var(--line-height));*/
}
b {
    font-weight: 500;
}
h3, .mw-body-content h3 {
    font-size: calc(var(--font-size) * 0.9);
    font-family: "Poppins";
    font-weight: 500;
    line-height: calc(1 * var(--line-height));
    letter-spacing: 0.03em;
}
[data-article="interview-amir"] h3:first-of-type, 
[data-article="interview-amir"] .mw-body-content h3:first-of-type {
    margin: 0;

h2, .mw-body-content h2 {
    /*line-height: calc(2.8 * var(--line-height)); */
    /* font-size: calc(3.7 * var(--font-size)); */
    line-height: calc(2.4 * var(--line-height));
    font-size: calc(2.4 * var(--font-size));
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.mw-body {
  background: none;
}

   /* Hide Menu */
  .mw-body-content [data-section] > h2 {
    line-height: calc(2 * var(--line-height));
    font-size: calc(1.9 * var(--font-size));
    margin: 0;
 }

  h2 + h3, 
  .mw-body-content h2 + h3 {
    margin: 0;
  }
  
  h3, .mw-body-content h3 {
    margin: var(--line-height) 0 0 0;
    break-after: avoid;
    break-before: unset;
 }
 
  h3:first-child,
  .mw-body-content h3:first-child  {
    margin-top: 0;
  }
  
  h4, .mw-body-content h4 {
    font-size: calc(.9 * var(--font-size));
    line-height: var(--line-height); 
    margin-top: 0;
    padding: 0;
    letter-spacing: 0.01em;
    font-weight: 500;
  }

  [data-article="words"] h4,
  [data-article="biographies"] h4 {
    margin-bottom: 0;
    margin-top: var(--line-height);
  }
table, .table p {
    font-size: 7.5pt;
    font-family: "Poppins";
    line-height: 10.5pt;
    letter-spacing: 0.03em;
    text-align: left;
    width: 100%;

}
td {
    border: 1px solid black;
    padding: 5px 7px;
    vertical-align: initial;
}
th {
    border: 1px solid black;
    padding: 5px;
    width: 150px;
    font-size: 7.5pt;
    font-weight: 500;
}
.table h5 {
    text-align: center;
    border-bottom: 1px solid;
    padding: 0px 0 8px 0;
    margin: 0 0 6pt 0;
}
.table h5 .mw-headline {
    font-family: "Poppins";
    font-weight: bold;
    font-weight: 500;
    font-size: calc(0.9 * var(--font-size));
    letter-spacing: 0.03em;
}

.table {
    border: 1px solid lightgray;
    padding: 15px;
    background: white;
    margin-bottom: var(--line-height);
}
.table .thumb {
width: 33%;
float: left;
margin-top: 3px;
margin-right: 10px;
margin-bottom: 30px;
}
.table .thumbimage {
    width: 100%;
}
.table .image {
    width: 100%;
    display: block;
}
[data-section="essays"] .table p {
    font-family: Poppins !important;
    /*font-size: calc(1.15 * var(--font-size)); */
    font-size: calc(0.9 * var(--font-size))  !important; 
    max-width: 100%;
    /* line-height: calc(1.2 * var(--line-height)); */
    line-height: calc(0.95 * var(--line-height)) !important; 
    letter-spacing: 0.012em !important;
    /* max-width: 50%; */
    /* float: right; */
    font-weight: 500 !important;
}
  .mw-content-ltr ol,
  .mw-content-rtl .mw-content-ltr ol,
  .mw-content-ltr ul,
  .mw-content-rtl .mw-content-ltr ul,
  .mw-content-ltr ol.references,
  .mw-content-rtl .mw-content-ltr ol.references,
  .mw-content-ltr ul.references,
  .mw-content-rtl .mw-content-ltr ul.references,
  .mw-content-ltr [data-section="essays"] ol.references,
  .mw-content-rtl .mw-content-ltr [data-section="essays"] ol.references,
  .mw-content-ltr [data-section="essays"] ul.references,
  .mw-content-rtl .mw-content-ltr [data-section="essays"] ul.references  {
    font-family: "Poppins";
    margin: 0 0 0 8px;
    font-size: calc(var(--font-size) * .8);
    line-height: var(--line-height);
    font-weight: 500;
    letter-spacing: 0;
  }
  
.mw-content-ltr ul, 
.mw-content-rtl .mw-content-ltr ul,
.mw-content-ltr ol, 
.mw-content-rtl .mw-content-ltr ol {
  padding: 0;
  font-family: spectral;
  font-weight: normal;
  font-size: var(--font-size);
  line-height: var(--line-height);
  margin: 0;
}
  ol li, ul li {
    padding: 0;
    font-size: inherit;
    }
.mw-body-content [data-section="essays"] .acknowledgment p,
.mw-body-content [data-section="essays"] .acknowledgment ul,
.mw-body-content .acknowledgment {
    margin: var(--line-height) 0;
    font-weight: 500 !important;
    font-family: "Poppins";
    font-size: calc(0.8 * var(--font-size));
    line-height: calc(0.9 * var(--line-height));
    max-width: 100%;
}
  .references li {
      margin-bottom: 0;
  }

  ol.references li, ul.references li {
    font-size: calc(var(--font-size) * .8);
    line-height: calc(0.9 * var(--line-height));
    padding: 0;
    margin: 0;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }

  
   [data-article]  {
    break-before: right;
  }

  [data-section="appendix"] [data-article] {
    break-before: always;
    -webkit-column-break-before: always;
  }

   [data-section],
  [data-section="essays"] [data-article] {
    /* columns: 2; */
    column-gap: 7mm;
    column-fill: auto;
  }
  [data-section="essays"] {
    /*width: 30em;*/
}

/*.chapter-background {
background-image: url(https://diversions.constantvzw.org/wiki/images/7/72/Thin-waves-simple-L-black-on-white.png);
background-size: 10%;
width: 141%;
margin-left: -35mm;
margin-right: -35mm;
height: 100vh;
margin-top: 0mm;
margin-bottom: -35mm;
padding: 0 35mm;
    break-before: right;
} */

/**
 (vector) background images are reduced to their displayed size in firefox
 and and turned into bitmaps. Therefor insert it with a pseudo element.
 */
.pagedjs_chapterTitlePage_page .pagedjs_sheet::before {
  content: url(https://diversions.constantvzw.org/wiki/images/a/a7/Wave-white-on-black-pattern.svg);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

@page chapterTitlePage {
  background: black;
  /** Moved SVG to as it broke the pagesize: https://pad.constantvzw.org/p/diversions--svg.css */
  /* background-image: url("https://diversions.constantvzw.org/wiki/images/8/85/Wave-white-on-black.png"); */
  /* background-image: url(https://diversions.constantvzw.org/wiki/images/8/85/Wave-white-on-black.png); */
  background-image: url(https://diversions.constantvzw.org/wiki/images/1/12/Wave-white-on-black-vector.svg);
  background-size: 10%;
  background-position: 32px 43px;
  @bottom-left {
    content: '';
  }
  
  @bottom-right {
    content: ''; 
  }
}

@page chapterTitlePage :left {
}
.chapter p {
margin: O;
text-indent:0;
}
.chapter {
    padding: calc(1 * var(--line-height)) 0;
    page: chapterTitlePage;
    break-before: right;
}
.chapter-intropage {
break-after:always;
}
.chapter span {
    font-family: "Poppins";
    font-size: calc(4.2 * var(--font-size));
    font-weight: 500;
    line-height: calc(3.6 * var(--line-height));
    display: block;
    margin-bottom: calc(0.2 * var(--line-height));
    color:white;
    
}
.chapter-intropage span {
    font-family: "Avara";
    font-size: calc(2 * var(--font-size));
    line-height: calc(2.3 * var(--line-height));
    display: block;
}
#projects .chapter span,
#cover .chapter span {
  margin-bottom: calc(1.5 * var(--line-height));
  color:white;
}
.chapter p.definition {
    margin-bottom: calc(1.5 * var(--line-height));
    font-size: calc(1.8 * var(--font-size)) !important;
    line-height: calc(1.8 * var(--line-height)) !important;
     color:white;
}
.chapter-intropage p {
    margin-bottom: calc(3.5 * var(--line-height));
    font-size: calc(1.8 * var(--font-size)) !important;
    line-height: calc(1.8 * var(--line-height)) !important;
}
.mw-body-content [data-section="essays"]  p, 
.mw-content-ltr [data-section="essays"]  ul, 
.mw-content-rtl .mw-content-ltr  [data-section="essays"] ul, 
.mw-content-ltr [data-section="essays"] ol, 
.mw-content-rtl .mw-content-ltr [data-section="essays"] ol
[data-section="essays"] p, 
.mw-body-content [data-section="essays"] p {
    /*font-size: calc(1.5 * var(--font-size)); */
    /*line-height: calc(1.4 * var(--line-height)); */
}
[data-section="essays"] h3 {
    /*font-size: calc(1.25 * var(--font-size)); */
    /*vertical-align: -11px;*/
}
[data-section="essays"] h4, 
.mw-body-content [data-section="essays"] h4 {
    font-size: calc(1 * var(--font-size)) !important;
    line-height: var(--line-height);
    margin-top: calc(1 * var(--line-height));
    padding: 0;
    letter-spacing: 0.018em;
    font-weight: 500;
    margin-bottom: 0;
}
.mw-body-content .author {
    /* color: green; */
    font-size: calc(1.3 * var(--font-size));
    line-height: calc(1.4 * var(--line-height));
    margin-top: calc(0.1px * var(--line-height));
    padding: 0;
    letter-spacing: 0.018em;
    font-weight: 500;
    margin-bottom: calc(1.5 * var(--line-height));
    font-family: "Poppins";
}
.mw-body-content [data-section="essays"] div.link-to-website::before {
    content: "≈≈≈";
    position: absolute;
    left: -14mm;
    font-size: 1.5em;
    top: 7px;
}
.mw-body-content [data-section="essays"] div.banner-answer {
    margin: 0px 0 0 0;
    border: none;
    /* margin: 0; */
    font-style: italic;
    line-height: var(--line-height);
    font-size: var(--font-size);
    margin-bottom: calc(1 * var(--line-height));
    /* border-left: 1px solid; */
    padding: 1.8em 0 1.8em 4em;
    border-top: 1px solid;
    border-bottom: 1px solid;
}
.mw-body-content [data-section="essays"] div.banner-answer p {
    font-size: 1.1em !important;
    line-height: 1.2em !important;
    font-weight: normal;
    max-width: 89%;
    /* padding: 0 0 0 5em; */
    font-style: normal;
    font-weight: normal;
}
p, 
.mw-body-content p, 
.mw-content-ltr  ul, 
.mw-content-rtl .mw-content-ltr  ul, 
.mw-content-ltr  ol, 
.mw-content-rtl .mw-content-ltr  ol {
    /*line-height: calc(1.2 * var(--line-height));*/
    /*font-size: calc(1.3 * var(--font-size));*/
    
    line-height: calc(1 * var(--line-height));
    font-size: calc(1 * var(--font-size));
}

  .mw-references-columns,
  .mw-references-wrap {
    width: 100%;
    column-width: auto;
    column-count: 2;
    margin-bottom: calc(2 * var(--line-height));
    margin-top: calc(1 * var(--line-height));
    column-gap: 6mm;
  }

.link-to-website {
    margin: 2em 0;
    border: 0px solid black;
    padding: 0.8em 1.3em 0.8em 1.3em;
    border-radius: 5px;
    border-left: 4px solid black;
    margin-left: 0em;
    margin-right: 0em;
    position: relative;
}
.mw-body-content [data-section="essays"] .link-to-website p, 
.mw-body-content [data-section="essays"] .link-to-website li, 
.mw-body-content [data-section="essays"] .link-to-website a {
font-family: Poppins;
font-size: calc(0.8 * var(--font-size));
max-width: 100%;
line-height: calc(0.9 * var(--line-height));
letter-spacing: 0.012em;
font-weight: 500;
}
.mw-body-content .link-to-website h4 {
    /* text-align: center; */
    padding: 5px 0 8px 0;
    font-family: "Poppins";
    font-weight: bold;
    font-weight: 500;
    font-size: calc(1 * var(--font-size));
    letter-spacing: 0.03em;
    margin-top: 0;
}
  [data-section="essays"] {
      columns: initial;
  }
  
 [data-section="essays"] [data-article="palimpset-africa-museum"]{
 break-after: always;
 }

.small-image {
    max-width: 48%;
    float: left;
    margin: 2px 8px 0 0 ;
}
div.small-image + div.small-image {
    margin-right: 0px;
}
 div.small-image + p,
  div.small-image + h3 {
 clear: none;
 }
div.small-image.clear-not + h3{
clear: none;
}
.antiTable div.thumb {
   width: 98%;
}
.two-columns .small-image{
   width: 46%;
   clear: both;
}



  [data-article="instroduction-v1"] .big-image {
  margin-top: calc(0.5 * var(--line-height));
  }
  [data-section="essays"] .big-image.break {
      break-before: always;
  }
  
  [data-section="essays"] [data-article="palimpset-africa-museum"] .big-image:first-child {
      margin-top: calc(2 * var(--line-height));
  }


/* [data-article="to-have-the-name-of-the-object"] {
  break-before: left;
} */

 [data-article="to-have-the-name-of-the-object"] .big-image div.thumb {
     margin: 0;
 }

  [data-article="to-have-the-name-of-the-object"] .big-image + .big-image {
    margin-top: var(--line-height);
  }



  [data-article="to-have-the-name-of-the-object"] .thumbimage {
    max-height: 100mm;
    width: auto;
   }
   
  [data-section="essays"] [data-article="palimpset-africa-museum"] .thumbimage {
    width: auto;
  }

  [data-section="toc"] {
    columns: 1;
  }

  
  [data-section="projects"] [data-lang] {
      width: initial;
      margin-left: 0;
      /* break-inside: avoid; */
  }
  
  .metadata {
    position: initial;
    float: none;
    width: auto;
    min-height: 200mm;
  }

  sup.reference {
    line-height: 0.2;
    margin-left: .1em;
    font-family: "Poppins";
    font-size: calc(.6 * var(--font-size));
  }

  .mw-parser-output a.external,
  .mw-parser-output a,
  a 
  {
    font-weight: inherit;
    font-family: inherit;
    font-size: 1em;
    text-decoration: none;
    border-bottom: none;
  }
  
  .references li a {
      font-size: .85em;
  }

  #footer {
    display: none;
  }

  div.thumbinner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    text-align: left;
  }

.mw-content-ltr .thumbcaption, html .thumbcaption, p .thumbcaption {
    font-family: "Poppins";
    font-size: calc(var(--font-size) * 0.75);
    line-height: calc(var(--line-height) * 0.8);
    font-weight: 400;
    padding: 0;
    color: var(--main-color);
    /*max-width: 40em;*/
    margin-top: 3px;
}

  .mw-content-ltr [data-article="to-have-the-name-of-the-object"] .thumbcaption,
  html [data-article="to-have-the-name-of-the-object"] .thumbcaption {
      margin-top: calc(0.5* var(--line-height));
      margin-left: calc(0.5* var(--line-height));
  }

  div.thumb {
    margin: var(--line-height) 0;
    max-width: 100%;
  }

  pre, .mw-code, code {
    border: 0;
    padding: 0;
    margin: calc(var(--line-height) * .5) 0;
    line-height: var(--line-height);
    font-size: calc(0.75 * var(--font-size));
    max-width: 95%;
  }

blockquote {
padding: 0;
border: none;
line-height: inherit;
font-size: inherit;
margin: 0pt;
    margin-left: 0pt;
margin: calc(0.5 * var(--line-height)) 20pt;
margin-right: 0;
}
  .toc {
    display: none
  }

  .mw-references-columns, .mw-references-wrap {
    width: 100%;
    column-width: auto;
    column-fill: auto;
    margin-top: var(--line-height);
  }

  .nav a {
    display: block;
  }
  
  [data-lang] {
      position: relative;
 }

[data-lang]::before {
    position: absolute;
    left: -4.5mm;
    font-family: "Poppins";
    font-size: calc(.7 * var(--font-size));
    line-height: 0;
    text-transform: uppercase;
    /* vertical-align: -moz-middle-with-baseline; */
    top: 2px;
}
  
  [data-lang] + [data-lang] {
      margin-top: calc(2 * var(--line-height));
  }
  [data-lang] {
    margin-bottom: calc(2 * var(--line-height));
  }
  
  [data-article="Promiscuous_browser-en"] [data-lang] {
    margin-bottom: 0;
  }
  
  [data-lang] + [data-lang][data-split-from] {
    margin-top: 0;
  }
  
  [data-lang] + [data-lang] img {
      /*display: none;*/
  }
  [data-lang="nl"] [src="/wiki/images/c/ca/Hari.png"] {
  max-width: 95%;
  }
  [data-article="biographies"] [data-lang]+[data-lang] {
    margin-top: 0;
  }
  
  [data-article="biographies"] [data-lang]::before {
    top: initial;
    left: -3.5mm;
    line-height: var(--line-height);
  }
  
  .mw-parser-output a.external, a:visited {
      color: var(--main-color);
  }
  
  [data-article="eventual-consistency"] pre {
    max-width: 95%;
    width: 95%;
  } 
    
  .mw-parser-output a.external.text:after,
  .mw-parser-output a.external.autonumber:after {
    word-break: break-all;
    word-wrap: break-all;
    /* font-size: 80%; */
    font-weight: 400;
  }
  
  ul li::before {
    content: "— ";
  }
  
  p a {
      font-weight: 400 !important;
  }
  
  .break-before {
      display: block;
      break-before: page;
  }
  
  .break-after {
      display: block;
      break-after: page;
  }
  
  .break-after-column {
      break-after: column;
  }
 .running-header { 
     display: none;
     string-set: running-title content(text);
  }
  
  p:first-child br:first-child {
   display: none;
 }
 
 [data-article="Onderzoeksvoorstel"] p:first-child br:first-child {
   display: block;
 }
 
  div.thumb:first-child {
    margin-top: 0;
  }
/*
 [data-article="eventual-consistency"] div.thumb:first-child  {
  margin-top: var(--line-height);
 }
*/ 
  div.onlyprint div.thumb:first-child {
    margin: var(--line-height) 0;
  }

  div.onlyprint:first-child div.thumb:first-child,
  .elem-float-top:first-child .onlyprint div.thumb:first-child
 {
    margin-top: 0;
  }
  
  /*a {
      word-break: break-all;
  }
  
  a.text {
      word-break: initial;
  }*/
  
  div.thumb {
   float: none;
  }
  
  code .line {
    display: block;
  }
  
.printfooter {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    font-family: "poppins";
    font-weight: 500 !important;
    font-size: calc(1 * var(--font-size));
    display: block;
    clear: none;
    /* margin-top: calc(1.45 * var(--line-height)) !important; */
    color: white !important;
    /* bottom: 15mm; */
}
  
  .nav li {
        margin-bottom: var(--line-height);
        margin-right: 2.5em;
        padding-right: 3em;
}

.nav li::before {
        content: "";
}

.nav a {
        display: block;
        position: relative;
}

.lang-label {
        position: absolute;
        left: -4.25mm;
        top: 0;
        font-family: "Poppins";
        font-size: calc(.7 * var(--font-size));
        line-height: var(--line-height);
        text-transform: uppercase;
}

  .nav a[href]::before {
    content: target-counter(attr(href), page);
    float: right;
    font-style: normal;
    margin-right: -3em;
        font-family: "Poppins";
        font-weight: 500 !important;
        font-size: calc(.9 * var(--font-size));
  }
  
  .nav .nav-title {
    display: block;
        font-family: "Poppins";
        font-weight: 500 !important;
        font-size: calc(.9 * var(--font-size));
  }
  
  .nav-subtitle {
      font-style: italic;
      font-weight: 400;
      font-family: "Spectral";
      font-size: var(--font-size);
      line-height: var(--line-height);
  }
  
  .nav a {
      word-break: initial;
  }
  
  ul.nav-projects {
      break-inside: avoid;
      margin-bottom: calc(2 * var(--line-height));
}

ul.nav-appendix {
    margin-top: calc(2 * var(--line-height));
}

ul.nav-appendix li {
    margin-bottom: 0;
}

.nav .nav-line {
    position: relative;
    display: block;
}


[data-article="free-culture"] .acknowledgment {
  break-before: column;
  break-inside: avoid;
}

.extra-whitespace {
  margin-top: 1em !important;
}

[data-article="biographies"] h3:first-child {
  margin-top: 0 !important;
}

.column-breaker::after {
    content: "";
    height: 4em;
    display: block;
}

/** Essay syles */

/** Promiscuous browser */
[data-article="Promiscuous_browser-en"] {
    page: promiscuous-browser;
    writing-mode: sideways-lr;
    height: 100%;
}

[data-article="Promiscuous_browser-en"] pre {
 font-size: calc(0.65 * var(--font-size));
}

@page:left promiscuous-browser {
  @bottom-left { content: ''; }
  
  @left-bottom {
    content: counter(page);
    font-family: "Poppins";
    font-size: calc(var(--font-size) * 0.8);
    letter-spacing: 0.025em;
    writing-mode: sideways-lr;
    padding-left: 5mm;
  }
  margin-bottom: 10mm;
  margin-right: 20.5mm;
}

@page:right promiscuous-browser {
  @bottom-right { content: ''};
  @right-top {
    text-align: right;
    content: counter(page);
    font-family: "Poppins";
    font-size: calc(var(--font-size) * 0.8);
    letter-spacing: 0.025em;
    writing-mode: sideways-lr;
    padding-left: 5mm;
  }
  margin-bottom: 10mm;
  margin-left: 20.5mm;
}


/** Project styles */
/** Let each arcticle start on a left page */

[data-section="projects"] .imagecover [data-version] {
  break-after: page;
}

[data-section="projects"] [data-article] {
  break-before: left;
  page: wider;
}

.pagedjs_left_page [data-section="projects"] [data-article] {
  margin-right: 19.5mm;
}

.pagedjs_right_page [data-section="projects"] [data-article] {
  margin-left: 19.5mm;
}

.project-close-reading {
  width: calc(100% + 19.5mm);
}

.pagedjs_right_page [data-section="projects"] [data-article] .project-close-reading {
  margin-left: -19.5mm;
}

.pagedjs_right_page [data-section="projects"] [data-article] .project-close-reading {
  margin-right: -19.5mm;
}

/*[data-section="projects"] [data-version="1"]{
  break-before: right !important;
}*/
  
[data-section="projects"] [data-lang]+[data-lang],
[data-section="projects"] [data-lang] {
  margin-top: 0;
}

.project-container,
.project-main div[data-version] {
  display: block;
}

.project-container[data-lang] {
  margin-bottom: 0;
}

.project-container + .project-container {
  margin-top: calc(3 * var(--line-height));
}
.versioned-title--wrapper + .versioned-title--wrapper {
  margin-top: calc(2 * var(--line-height));
}
.project-container:first-child,
.versioned-title--wrapper:first-child {
  margin-top: 0;
}

.project-main div[data-version] > .project-metadata {
  position: initial;
}

div[data-version] {
  clear: both;
}

.versioned-title--wrapper {
  position: relative;
  padding-top: calc(1.25 * var(--line-height));
}

.versioned-title--wrapper:first-child {
  margin-top: 0;
}

.versioned-title--wrapper .versions {
  position: absolute;
  top: 0;
}

[data-version] + [data-version] {
  margin-top: var(--line-height);
  padding-top: 0;
  border-top: 0;
}

.imagecover [data-version] + [data-version] {
  margin-top: 0;
}

[data-version]:first-child {
  margin-top: 0;
}

.project-description {
   font-size: var(--font-size);
   line-height: var(--line-height);
   padding: 0;
   /*--line-height: 14pt;*/
   /*--font-size: 11pt;*/
}

.project-description p:last-child .image:last-child::after {
  content:'';
  display: block;
  clear: both;
}

/* .mw-body-content .project-description p + p {
  text-indent: 0;
  margin-top: var(--line-height) !important;
} */

/** Bigger fontsize for english description */
.project-description {
  --font-size: 9.5pt;
  --line-height: 11.5pt;
}

[data-version="2"] + .text .project-metadata {
}

/** version 2 has first images, then url, no indent there. */
/** project link */
.project-metadata p {
  text-indent: 0;
}

.project-metadata p a {
  display: block;
  margin-bottom: calc(0.5 * var(--line-height)) !important;
  font-family: "poppins" !important; 
  font-size: calc(0.8 * var(--font-size)) !important;
}



[data-version="2"] .project-metadata + .project-description p:nth-child(2),
[data-version="1"] .project-metadata + .project-description p:nth-child(2) {
  text-indent: 0;
}

.project-metadata .conversation {
  display: none;
}

.project--title {
  margin-left: calc(-1.25 * var(--line-height));
  margin-bottom: calc(.5 * var(--line-height));
  position: initial;
}

.project-close-reading {
   position: initial;
   padding: 0;
   border-left: none;
   max-height: initial;
   overflow-y: initial;
   margin-top: calc(1 * var(--line-height));
   display: block;
}

.close-reading {
  margin-bottom: 0;
  column-count: 2;
  column-gap: 5mm;
  /*column-fill: auto;*/
  --font-size: 7.5pt;
  --line-height: 10.5pt;
}

/** Make images slightly less wide on new fire ceremony to make them fit on one page */
[data-article="new-fire-ceremony"] [data-lang="en"] .project-description p .image img {
  max-width: 95%;
}

.project-close-reading:first-child {
  border-top: none;
  margin-top: 0;
}

.mw-body-content .project-close-reading h5 {
   font-family: 'Poppins';
   /* padding-left: calc(1.5 * var(--line-height)); */
   padding-left: 0;
   padding-top: var(--line-height);
   font-size: var(--font-size);
   line-height: var(--line-height);
   margin-top: 0;
   margin-bottom: var(--line-height);
   column-span: all;
   text-align: center;
   font-weight: 400;
}

.project-close-reading:first-child h5 {
  margin-top: 0;
  padding-top: 0;
}

.project-close-reading h5 .mw-headline,
.project-close-reading .mw-body-content h5 .mw-headline {
   font-size: var(--font-size);
   line-height: var(--line-height);
}

.project-close-reading p {
   font-family: 'Poppins';
   font-size:var(--font-size);
   line-height: var(--line-height);
}

.close-reading::before {
  display: none;
}

.project-main h2,
.project-main .mw-body-content h2 {
   line-height: calc(2 * var(--line-height));
   font-size: calc(2.1 * var(--font-size));
   margin-top: 0;
   margin-bottom: calc(.5 * var(--line-height));
   font-family: "Poppins";
   font-weight: 500;
}

.project-main h4, .project-main .mw-body-content h4 {
  /* margin-left: -10mm; */
  /* font-size: calc(1.5 * var(--font-size)); */
}
[data-section="projects"] .cover img {
  width: 100%;
}

[data-section="projects"] [data-lang="en"] img,
[data-section="projects"] [data-lang="nl"] img,
[data-section="projects"] [data-lang="fr"] img {
  float: left;
  width: auto !important;
  height: calc(3.5 * var(--line-height)) !important;
  margin-right: calc(.5 * var(--line-height));
  margin-bottom: calc(.5 * var(--line-height)) !important;
}
 
.banner-v1 {
   /* TODO move to a running title */
   /*position: absolute;
   left: 100%;
   transform: rotate(90deg);
   transform-origin: bottom left;*/
   border-top: none;
   white-space: nowrap;
}

.versions {
  margin-bottom: calc(0.5 * var(--line-height));
  padding: 0;
  margin-left: calc(-1.25 * var(--line-height));
}

.versions p {
  font-family: "Poppins";
  font-weight: 500;
}

.project-metadata h4 {
  margin-bottom: calc(0.5 * var(--line-height));
}

.project-container[data-lang]::before {
    left: -7.5mm;
}

.project-metadata p.version-date {
   margin-bottom: 0;
}

.project-container.imagecover p .image img,
.project-container.imagecover p .image img[alt="100%"] {
    width: calc(100%);
    height: auto;
    margin-bottom: var(--line-height);
    margin-left: 0;
    max-width: initial;
}

[data-article="new-fire-ceremony"] .imagecover [data-version="1"] p .image img {
  width: 95% !important;
}

.project-description ul {
    position: relative;
    max-width: 95%;
    margin-top: var(--line-height);
    margin-left: calc(2 * var(--line-height));
}

.project-description li::before {
    position: absolute;
    right: calc(100% + .5em);
}

.project-description li b {
    font-weight: 400;
    font-style: italic;
}

/** keep right things together */
/*.project-metadata {
  break-inside: avoid;
  break-before: avoid;
  break-after: avoid;
}

project--title {
  break-after: avoid;
}

.project--title + [data-version] {
  break-before: avoid;
}*/


/*
collection-of-uncertainties
sketchy-recognition
colonial-botany
material-travels
the-weight-of-things
new-fire-ceremony
z-blace

[data-article="material-travels"] [data-lang="en"] [data-version="2"]
[data-article="collection-of-uncertainties"] [data-lang="nl"] .project-close-reading 
*/

[data-article="material-travels"] [data-lang="nl"] [data-version="1"],
[data-article="material-travels"] [data-lang="nl"] .project-close-reading,
[data-article="sketchy-recognition"] [data-lang="nl"] [data-version="2"],
[data-article="the-weight-of-things"] [data-lang="en"] [data-version="1"],
[data-article="the-weight-of-things"] [data-lang="nl"] [data-version="1"],
[data-article="the-weight-of-things"] [data-lang="en"] .project-close-reading,
[data-article="z-blace"] [data-lang="en"] [data-version="2"],
[data-article="z-blace"] [data-lang="fr"] [data-version="1"]
{
  break-after: page;
}

/*
[data-article="material-travels"] [data-lang="en"] .project-close-reading,

[data-article="the-weight-of-things"] .project-close-reading {
  margin-top: calc(0 * var(--line-height));
} */

/*
[data-article="z-blace"] [data-lang="nl"] [data-version="2"] .project-description p:nth-child(2) a,
[data-article="z-blace"] [data-lang="en"] [data-version="2"] .project-description p:nth-child(2) a,
[data-article="z-blace"] [data-lang="fr"] [data-version="2"] .project-description p:nth-child(2) a {
  word-break: break-all;
}
*/

[data-article="z-blace"] h2 {
  max-width: calc(100% + 30mm);
}

[data-article="z-blace"] .imagecover h2,
[data-article="z-blace"] [data-lang="en"] h2,
[data-article="z-blace"] [data-lang="nl"] h2  {
  width: calc(100% + 30mm);
}

.close-reading h5 + p {
  break-before: avoid;
}

/** wider columns for introduction and close reading */

@page:left wider {
  margin-right: 20.5mm;
}

@page:right wider {
  margin-left: 20.5mm;
}

/* saving pages by hiding articles */

[data-article="free-culture"] [data-lang="en"] {
  display: none;
}
[data-article="immateriaal-erfgoed"] [data-lang="fr"] {
  display: none;
}
[data-article="resources"]  {
  display: none;
}
[data-article="afrique-aux-noirs"] [data-lang="en"] {
  display: none;
}

[data-article="introduction-v1"] [data-lang],
[data-article="soft-grids"] .two-columns  {
column-count: 2;
column-fill: balance;
column-gap: 5mm;
}

[data-section="introduction"] .mw-references-columns, 
[data-section="introduction"] .mw-references-wrap {
column-count: 1;
}
.antiTable{
page: antiTable;
}
.pagedjs_antiTable_page [data-section="introduction"] {
column-count: 1;
color: red;
}

/*////////hari/////////*/

.carte div.thumbinner {
border: 1px solid black;
position: relative;
}
.carte .thumbinner .thumbcaption {
text-align: center;
width: 100%;
position: absolute;
z-index: 100;
top: 44%;
}
.carte img {
visibility: hidden;
}
p.intro-pieces {
font-size: calc(1.4 * var(--font-size)) !important;
line-height: calc(1.25 * var(--line-height)) !important;
margin-bottom: calc(2 * var(--line-height)) !important;
margin-top: calc(2 * var(--line-height)) !important;
}
.elem-float-top {
float: top;
float-reference: page;
margin-bottom: calc(1 * var(--line-height));
}
.table.elem-float-top .thumb{
break-after: always;
}

/** Appendix */

[data-section="appendix"] {
  page: wider;
}


[data-article="words"] {
  break-before: right;
}

[data-article="words"] [data-lang],
[data-article="biographies"],
[data-article="colophon"] {
  margin-bottom: 0;
  columns: 2;
  column-gap: 5mm;
  column-fill: auto;
}

[data-article="biographies"] [data-lang] {
  margin-bottom: 0;
}

[data-article="biographies"] h3 {
  break-after: unset;
  break-before: unset;
}

[data-article="biographies"] h3 + [data-lang] {
  break-before: avoid;
}

[data-section="appendix"] h2 {
  column-span: all;
  margin-bottom: var(--line-height);
}

[data-section="appendix"] [data-article="biographies"] h2 {
  margin-bottom: 0;
}

[data-section="appendix"] h2 + h3 {
  margin-top: 0 !important;
}

[data-section="appendix"] .mw-references-columns {
  column-count: 1;
}
/** Michael consistency  **/

html .thumbimage {
border: 0px;
}
.no-caption div.thumbcaption {
display:none;
margin: 0;
}
.no-caption .thumb {
margin: 0;
}
.no-caption p.thumbcaption {
margin-bottom: var(--line-height);
}

.image-white-background .thumb,
[data-article="colonial-botany"] .image-white-background {
outline: 1px solid lightgray;
}
/** Introduction */
[data-article="introduction-v1"],
[data-article="soft-grids"] {
  page: wider;
}
[data-article="soft-grids"] .two-columns div.thumbcaption {
display:none;
margin: 0;
}

[data-article="soft-grids"] .small-image {
  width: 35%;
  margin: calc((0.5 * var(--line-height)) - 3px);
  margin-top: 0;
  margin-left: 0;
}

[data-article="soft-grids"] .small-image .thumb {
  margin: 0 !important;
}

[data-article="soft-grids"] .small-image .thumbinner {
  margin-top: 3px;
  min-width: initial !important;
}

[data-article="soft-grids"] p:first-child,
[data-article="soft-grids"] p[data-split-from] {
  margin-top: 0 !important;
}

[data-article="introduction-v1"] h2,
[data-article="introduction-v1"] .author {
  column-span: all;
}

[data-article="introduction-v1"] .big-image {
  margin-top: calc(0.5 * var(--line-height));
}

/* [data-article="introduction-v1"] [data-lang="fr"] {
  break-before: page;
} */

[data-article="soft-grids"] [data-lang="nl"] {
 break-before:always;
}

[data-word-link] {
  font-family: "Poppins" !important;
  font-size: 7.9pt !important;
  letter-spacing: .25px;
  font-weight: 500 !important;
line-height: 0;
}
/** index**/

.mw-body-content ul.nav-material h3 {
  font-size: calc(1 * var(--font-size));
  margin-top: calc(3 * var(--line-height));
}

.mw-body-content ul.nav-material:first-child li:first-child h3{
  margin-top: 0;
}

.nav-material li {
  break-inside: avoid;
}

.nav .nav-title {
  font-size: calc(.8 * var(--font-size));
}

[data-section="index"] {
  page: index;
  break-before: right;
}

[data-section="cover-inside"] {
  page: coverInside;
}

#additional_translations {
  position: relative;
  margin-top: calc(2 * var(--line-height));
  position: relative;
  font-weight: 500;
  letter-spacing: .25px;
  left: -4.25mm;
  font-family: "Poppins";
  font-size: calc(.7 * var(--font-size));
  line-height: var(--line-height);
  text-transform: uppercase;
}


.nav li#additional_translations::before {
  display: block;
  position: absolute;
  left: -.75em;
  content: '*';
}

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

@page coverInside {
  @bottom-left {
    content: '';
  }
  @bottom-right {
    content: '';
  }
}

@page index {
  @bottom-left {
    content: '';
  }
  @bottom-right {
    content: '';
  }
}
/*//////push ref or notes/////*/

[data-article="afrique-aux-noirs"] [data-lang="fr"] .mw-references-wrap,
[data-article="Omissum"] .mw-references-wrap {
break-before: page;
margin-top: 0 !important;
}
[data-article="introduction-v1"] [data-lang="nl"] .mw-references-wrap {
margin-top: 0 !important;
}

/**COVER**/
.chapter.back {
  break-before:left;
}
.chapter.back span {
  display: none;
}
.chapter.back img {
  width: 27%;
}
.pagedjs_chapterTitlePage_page .printfooter {
  color: white !important;
}


#page-258, #page-258 .pagedjs_sheet {
  width: calc(var(--pagedjs-width-left) - 6mm);
}
#page-259, #page-258 .pagedjs_sheet {
  width: calc(var(--pagedjs-width-right) -6mm + 15.4mm);
}
.pagedjs_chapterTitlePage_page#page-258 .pagedjs_sheet::before {
  left: -43px;
}
.pagedjs_chapterTitlePage_page#page-259 .pagedjs_sheet::after {
  position: absolute;
  left: 0;
  top: 0;
  content: "Diversions v2 / Diversions v2 / Diversies v2";
  color: white;
  font-family: "poppins";
  transform: rotate(90deg);
  transform-origin: bottom left;
  font-weight: 500;
  height: 15.4mm;
  /*! outline: 1px solid white; */
  padding-top: 4.5mm;
  box-sizing: border-box;
  padding-left: 19mm;
  font-size: 125%;
}

#page-258 .pagedjs_sheet {
  grid-template-columns: [bleed-left] var(--pagedjs-bleed-right-left) 
  [sheet-center] calc(+ var(--pagedjs-width) - var(--pagedjs-bleed-right-left) - var(--pagedjs-bleed-right-right))
  [bleed-right] 0;
}

#page-259 .pagedjs_sheet {
  grid-template-columns: [bleed-left] 0 
  [sheet-center] calc(15.4mm + var(--pagedjs-width) - var(--pagedjs-bleed-right-left) - var(--pagedjs-bleed-right-right))
  [bleed-right] var(--pagedjs-bleed-right-right);
}

.printfooter {
  margin-top: calc(22 * var(--line-height));
}