@import 'reset.css';
@import 'variables.css';
@import 'edition.css';
@import 'readings.css';
@import 'search.css';
@import 'edition-nav.css';

/*!
 * Bootstrap v4.3.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 The Bootstrap Authors
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-background);
  color: var(--color-font);
  display: flex;
  flex-flow: column;
  font: normal normal normal 16px/22px var(--font-family);
  height: 100vh;
  margin: 0;
  text-align: left;
  text-justify: inter-word;
  width: 100vw;
}

#content-container {
  container: content / inline-size;
  flex-grow: 1;
}

[tabindex="-1"]:focus {
  outline: 0 ;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

p {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  margin: 0 0 1.25em;
}

abbr[title],
abbr[data-original-title] {
  text-decoration: underline;
  text-decoration: underline dotted;
  cursor: help;
  border-bottom: 0;
  text-decoration-skip-ink: none;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: .5rem;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1rem;
}

b, strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
}

a:hover,
button:hover {
  text-decoration: underline;
}

#content-container .container a {
  cursor: pointer;
  /* color: var(--clr-dark); */
  text-decoration: none;
  /* background-color: transparent; */
}

#content-container .container a:hover {
    color: var(--clr-primary );
}

a:not([href]):not([tabindex]):focus {
  outline: 0;
}

figure {
  margin: 0 0 1rem;
}

img {
  vertical-align: middle;
  border-style: none;
}

svg {
  overflow: hidden;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

.table {
  max-width: 100%;
  overflow-x: auto;
  padding: 0 0 1em;
}

caption {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: var(--clr-darker);
  text-align: left;
  caption-side: bottom;
}

th {
  text-align: inherit;
}

select {
  word-wrap: normal;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0 0 0.5em;
  border: 0;
}

progress {
  vertical-align: baseline;
}

output {
  display: inline-block;
}

summary {
  display: list-item;
  cursor: pointer;
  &::marker {
    content: "";
  }
}

template {
  display: none;
}

[hidden] {
  display: none ;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-top: var(--space-xs);
  line-height: var(--space-m);
  text-align: left;
  margin-bottom: var(--space-s);
  font-weight: 500;
}

h1,
.h1 {
  font-size: var(--step-5);
  margin-bottom: 30px;
}

h2,
.h2 {
  font-size: var(--step-4);
}

h3,
.h3 {
  font-size: var(--step-3);
}

h4,
.h4 {
  font-size: var(--step-2);
}

h5,
.h5 {
  font-size: var(--step-1);
}

h6,
.h6 {
  font-size: var(--step-0);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.display-1 {
  font-size: 6rem;
  font-weight: 300;
  line-height: 1.2;
}

.display-2 {
  font-size: 5.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.display-3 {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.display-4 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
}

hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-top: 1px solid var(--clr-dark);
}

small,
.small {
  font-size: 80%;
  font-weight: 400;
}

mark,
.mark {
  padding: 0.2em;
  background-color: var(--clr-bg-lighter);
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}

.list-inline-item:not(:last-child) {
    margin-right: 0.5rem;
}

.initialism {
  font-size: 90%;
  text-transform: uppercase;
}

.blockquote {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.blockquote-footer {
  display: block;
  font-size: 80%;
  color: var(--clr-darker);
}

.blockquote-footer::before {
    content: "\2014\00A0";
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: var(--clr-bg-lighter);
  border: 1px solid var(--clr-bg-light);
  max-width: 100%;
  height: auto;
}

.figure {
  display: inline-block;
}

.figure-img {
  margin-bottom: 0.5rem;
  line-height: 1;
}

.figure-caption {
  font-size: 90%;
  color: var(--clr-darker);
}

code {
  font-size: 87.5%;
  color: var(--clr-darker);
  word-break: break-word;
}

kbd {
  padding: 0.2rem 0.4rem;
  font-size: 87.5%;
  color: var(--clr-light);
  background-color: var(--clr-dark);
}

kbd kbd {
  padding: 0;
  font-size: 100%;
  font-weight: 700;
}

pre {
  background-color: var(--clr-bg-light);
  border: 1px solid var(--clr-bg-contrast);
  border-radius: 4px;
  color: var(--clr-dark);
  display: block;
  font-size: 80%;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  overflow: auto;
  padding: 1rem;
  word-break: break-all;
  word-wrap: break-word;
}

pre code {
  font-size: inherit;
  color: inherit;
}

.hljs {
  display: block;
  overflow-x: auto;
}

.hljs-tag {
  color: var(--color-primary);
}

.hljs-attr {
  color: var(--color-d);
}

.hljs-string {
  color: var(--color-b);
}

.hljs-comment {
  color: var(--clr-darker);
}

.dropdown-toggle {
  white-space: nowrap;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-toggle:empty::after {
  margin-left: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  min-height: 0;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: var(--clr-dark);
  text-align: left;
  list-style: none;
  background-color: var(--clr-bg-lighter);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.dropdown-menu-left {
  right: auto;
  left: 0;
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

@media (min-width: 567px) {
  .dropdown-menu-sm-left {
    right: auto;
    left: 0;
  }
  .dropdown-menu-sm-right {
    right: 0;
    left: auto;
  }
}

@media (min-width: 767px) {
  .dropdown-menu-md-left {
    right: auto;
    left: 0;
  }
  .dropdown-menu-md-right {
    right: 0;
    left: auto;
  }
}

@media (min-width: 1024px) {
  .dropdown-menu-lg-left {
    right: auto;
    left: 0;
  }
  .dropdown-menu-lg-right {
    right: 0;
    left: auto;
  }
}

.dropup .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.125rem;
}

.dropup .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0;
  border-right: 0.3em solid transparent;
  border-bottom: 0.3em solid;
  border-left: 0.3em solid transparent;
}

.dropup .dropdown-toggle:empty::after {
  margin-left: 0;
}

.dropright .dropdown-menu {
  top: 0;
  right: auto;
  left: 100%;
  margin-top: 0;
  margin-left: 0.125rem;
}

.dropright .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
}

.dropright .dropdown-toggle:empty::after {
  margin-left: 0;
}

.dropright .dropdown-toggle::after {
  vertical-align: 0;
}

.dropleft .dropdown-menu {
  top: 0;
  right: 100%;
  left: auto;
  margin-top: 0;
  margin-right: 0.125rem;
}

.dropleft .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
}

.dropleft .dropdown-toggle::after {
  display: none;
}

.dropleft .dropdown-toggle::before {
  display: inline-block;
  margin-right: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0.3em solid;
  border-bottom: 0.3em solid transparent;
}

.dropleft .dropdown-toggle:empty::after {
  margin-left: 0;
}

.dropleft .dropdown-toggle::before {
  vertical-align: 0;
}

.dropdown-menu[x-placement^="top"],
.dropdown-menu[x-placement^="right"],
.dropdown-menu[x-placement^="bottom"],
.dropdown-menu[x-placement^="left"] {
  right: auto;
  bottom: auto;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--color-background-contrast);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: var(--clr-dark);
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover, .dropdown-item:focus {
  color: var(--clr-dark);
  text-decoration: none;
}

.dropdown-item.active, .dropdown-item:active {
  color: var(--clr-dark);
  text-decoration: none;
  background-color: var(--clr-primary);
}

.dropdown-item.disabled, .dropdown-item:disabled {
  color: var(--clr-darker);
  pointer-events: none;
  background-color: transparent;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-header {
  display: block;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--clr-darker);
  white-space: nowrap;
}

.dropdown-item-text {
  display: block;
  padding: 0.25rem 1.5rem;
  color: var(--clr-dark);
}

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-dialog-scrollable {
  display: flex;
  max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - 1rem);
  content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
  content: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background-color: var(--color-background);
  background-clip: padding-box;
  border: 2px solid var(--color-primary);
  outline: 0;
  margin: auto;
  max-width: 60vw;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-header {
  color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--color-background-contrast);
  background-color: var(--color-primary);
}

.modal-title {
  font-family: var(--font-family-semibold);
  font-size: 1.25rem;
  margin: 0;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid var(--clr-bg-light);
}

.modal-footer > :not(:first-child) {
  margin-left: .25rem;
}

.modal-footer > :not(:last-child) {
  margin-right: .25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.52941;
  text-align: left;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.875rem;
  word-wrap: break-word;
  opacity: 0;
}

.tooltip.show {
    opacity: 0.9;
}

.tooltip .arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}
.tooltip .arrow::before {
  position: absolute;
  content: "";
  border-color: transparent;
  border-style: solid;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  box-shadow: none;
  outline: none;
}

header {
  line-height: 1em;
}

header nav .navbar-brand {
  padding: 0;
}



header .bars {
  display: block;
  padding: 0;
  border: 0;
  color: var(--clr-dark) ;
  font-size: 2rem;
}

header .cross {
    display: none;
}

header .nav-toggle {
  margin-bottom: auto;
}

header .collapse {
  flex-direction: column;
  align-items: flex-end;
}

header .top-nav {
  margin-bottom: 1rem;
}

.nav-item {
  list-style-type: none;
  padding: 10px 30px;
}

header .dropdown .caret {
  display: none;
}

header .dropdown .dropdown-toggle::after {
  content: none;
}

  /* TODO: check what exactly we need from this media query, as we don't use an overlay */
@media (max-width: 1023.98px) {
  body.nav-overlay #content-container,
  body.nav-overlay footer {
    display: none;
  }
  body.nav-overlay header {
    z-index: 1000;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    min-height: 100%;
    background-color: var(--clr-primary) ;
    color: var(--clr-dark);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    padding-bottom: 30px;
  }
  body.nav-overlay header a,
  body.nav-overlay header a,
  body.nav-overlay header a:hover,
  body.nav-overlay header a:hover,
  body.nav-overlay header a.active,
  body.nav-overlay header a.active,
  body.nav-overlay header i,
  body.nav-overlay header i {
      box-shadow: none;
  }
  body.nav-overlay .navbar li {
    list-style-type: none;
    padding-left: 0;
    margin-top: 12px;
  }
  body.nav-overlay header .navbar-brand {
    display: none;
  }
  body.nav-overlay header .collapse {
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
  }
  body.nav-overlay header .bars {
    display: none;
  }
  body.nav-overlay header .cross {
    display: block;
    padding: 0;
    border: 0;
    font-size: 35px;
  }
  body.nav-overlay header .nav-toggle {
    margin-bottom: 0;
  }
  body.nav-overlay header .top-nav {
    margin-top: 45px;
    margin-bottom: auto;
    width: 100%;
  }
  body.nav-overlay header .main-nav {
    margin-top: 0;
    padding-left: 0;
    width: 100%;
  }
  body.nav-overlay header .main-nav > li > a {
    font-weight: 600;
  }
  body.nav-overlay header .dropdown {
    padding-right: 0;
  }
  body.nav-overlay header .dropdown a.dropdown-toggle {
    display: block;
    box-shadow: none ;
  }
  body.nav-overlay header .dropdown a.dropdown-toggle .caret {
    display: block;
    margin-right: 8px;
  }
  body.nav-overlay header .dropdown a.dropdown-toggle .caret svg.fa-sort-up {
    display: none;
    position: relative;
    top: 3px;
  }
  body.nav-overlay header .dropdown a.dropdown-toggle .caret svg.fa-sort-down {
    position: relative;
    top: -3px;
  }
  body.nav-overlay header .dropdown.show a.dropdown-toggle .caret svg.fa-sort-up {
    display: inline-block;
  }
  body.nav-overlay header .dropdown.show a.dropdown-toggle .caret svg.fa-sort-down {
    display: none;
  }
  body.nav-overlay header .dropdown-menu {
    position: static;
    width: 100%;
    background-color: var(--clr-primary);
    border: 0px;
    padding-top: 0;
  }
  body.nav-overlay header .dropdown-menu.show {
    display: block;
  }
  body.nav-overlay header .dropdown-menu a {
    padding: 0;
    padding-left: 1rem;
    font-weight: normal;
    margin-top: 19px;
  }
  body.nav-overlay header .search {
    width: 100%;
    padding-left: 0;
    display: flex;
    flex-direction: row;
  }
  body.nav-overlay header .search input {
    padding-left: 3px;
    flex-grow: 1;
    margin-left: 20px;
    border: 1px solid var(--clr-dark);
    height: 32px;
    color: var(--clr-dark);
  }
  body.nav-overlay header .search input.show {
    width: 30px;
  }
  body.nav-overlay header .search input::placeholder {
    color: var(--clr-dark);
    opacity: 0.5;
  }
}

footer {
  line-height: 1.5;
  padding: 2.5em 0;
  width: 100vw;
}

footer .row {
  justify-content: space-between;
  margin: 0 auto;
  max-width: 920px;
}

.footer-items {
  align-items: center;
  display: flex;
  gap: 2em;
}

.scrolltop {
  bottom: 0;
  height: 4em;
  position: fixed;
  right: 0;
  width: 4em;
}

.dropdown.show {
  background-color: var(--clr-primary);
  color: var(--clr-dark)
}

.dropdown.show .dropdown-toggle {
  color: var(--clr-dark);
  background-color: transparent;
  box-shadow: 0px 2px 0px 0px var(--clr-primary), 0px 3px 0px 0px var(--clr-dark);
}

.dropdown-menu {
  background-color: var(--clr-primary);
  border-radius: 0;
  background-clip: none;
  border: 0;
  margin-top: -2px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.dropdown-menu a {
  color: var(--clr-dark);
  padding: 15px 30px;
}

noscript {
  border: 2px solid var(--color-contrast);
  display: flex;
  font-weight: 600;
  justify-content: center;
  padding: 5px;
  width: 100%;
}

.presentation-menu {
  align-items: center;
  display: flex;
  font-size: xx-large;
  gap: 5px;
  height: 1.25em;
  justify-content: center;
  position: relative;
  margin: 0;
  top: 0;
}

.presentation-menu a {
  align-items: center;
  display: flex;
}

.center {
  margin: 0 auto;
  max-width: 920px;
}

.column {
  display: flex;
  flex-direction: column;
}

[role="menu"] {
	list-style: none;
	padding: 1.5em 0;
	position: absolute;
	right: 0;
	width: max-content;
	max-height: 80vh;
	overflow: scroll;
}

[role="menu"] a,
.nav-menu a {
  display: inline-block;
  font: normal normal 400 18px/20px var(--font-family);
  height: 100%;
  width: 100%;
}

[role="menu"] li {
  line-height: 2;
  padding: 0.5em 1.5em;
  width: 100%;
}

.edition-menu-title {
  justify-content: space-evenly;
}

.edition-menu-title span:first-of-type {
  font-size: 110%;
}

.edition-menu-title span:last-of-type {
  font-family: var(--font-family-semibold);
}

.edition-menu-controls {
  margin: 0;
  align-items: center;
}

.edition-menu-control {
  height: 4em;
  justify-content: center;
  padding: 0;
  width: 4em;
}

.current-edition {
  background: var(--color-secondary);
  color: var(--color-font);
}

#wiki {
  margin: 0 auto;
  max-width: 90vw;
}

#home {
  height: 100%;
}

#home > div {
  min-height: 100px;
}

#home > *:last-child {
  flex-grow: 6;
  padding-bottom: 130px;
}

#project > div:last-of-type {
  margin-top: 110px;
}

.padded {
  padding: 0 1em;
}

.img-box {
  align-items: flex-end;
  display: flex;
  height: 100%;
  justify-content: space-between;
}

.img-box > div {
  margin: auto 0;
  max-width: 500px;
  min-width: 103px;
  overflow: visible;
}

.left,
.right {
  justify-content: center;
}

.left {
  align-items: flex-end;
  font-size: 24px;
  font-weight: 500;
  padding: 0 5% 0 0;
  width: 50%;
}

.right {
  align-items: flex-start;
  padding: 0 0 0 5%;
  width: 50%;
}

.row,
.row-s {
  display: flex;
}

.gx-2 {
  column-gap: 0.5em;
}

.d-inline {
  display: inline;
}

.d-inline-flex {
  display: inline-flex;
}

.quotebox > blockquote {
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
  max-width: 500px;
  min-width: 200px;
  white-space: pre-wrap;
}

.quotebox > p {
  font-size: 10px;
  line-height: 1.4;
  text-align: end;
}

.editorial {
  font-size: 1em;
  color: var(--color-font-editorial) !important;
  white-space: nowrap !important;
  .pagebreak--wits {
    font-weight: bold;
  }
}

.grayscale {
  filter: grayscale(0.8);
}

.grayscale:hover {
  filter: grayscale(0);
}

.institution-box {
  background-color: var(--color-background-contrast);
  font: normal normal 12px/20px var(--font-family);
  margin: 0 0 3px;
  padding: 20px;
}

.institution-box > span {
  display: inline-block;
  font-family: var(--font-family-semibold);
  margin: 0 0 30px;
}

ul,
ol {
  padding: 0 30px;
}

li {
  padding: 0 0 10px;
}

nav {
  position: relative;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  margin: 1.5em 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 380px;
  z-index: 2;
}

.main-nav {
  padding: 0;
}

.nav-menu li:nth-child(4),
.nav-menu li:nth-child(6) {
  padding-bottom: 3em;
}

.nav-menu li:last-child {
  padding-bottom: 1.5em;
}

.header-content {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 920px;
  padding: 2.5em 1em;
  position: relative;
}

.hamburger {
  --color-font: var(--color-primary);
  align-self: flex-end;
  background: transparent;
  border: none;
  margin: 10px 10px 0 0;
}

.hamburger,
[class*="button"] {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

[class*="button"] {
  height: 100%;
  width: 100%;
}

.presentation-menu [class*="button"] {
  height: 1em;
  width: 1em;
}

.button-close {
  height: 2em;
  width: 2em;
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-background);
}

.button-primary .svg-inline--fa {
  color: var(--color-background);
}

.burger-open {
  --color-font: var(--color-background);
}

.burger-open [class*="icon"] {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(126deg) brightness(101%) contrast(104%);
}

.hamburger .line:first-of-type {
  transform-origin: 20% 40%;
  transition: transform var(--animation-length-m) ease-in-out;
}

.hamburger .line {
  transition: transform var(--animation-length-s) ease-in-out;
}

.hamburger .line:last-of-type {
  transform-origin: 25% 60%;
  transition: transform var(--animation-length-m) ease-in-out;
}

.burger-open .line:first-of-type {
  transform: rotate(45deg);
}

.burger-open .line {
  background: var(--color-font-reverse);
  transform: scaleX(0);
}

.burger-open .line:last-of-type {
  transform: rotate(-45deg);
}

.edition-nav-controls {
  background: var(--color-tertiary);
  display: flex;
  gap: 30px;
  height: min-content;
  justify-content: space-between;
  margin-top: 2em;
  padding: 10px;
}

.edition-nav-controls fieldset {
  flex-basis: 25%;
}

.edition-nav-controls legend {
  font-size: 12px;
  margin: 0;
}

.edition-nav-controls select {
  background: var(--color-background);
  border: 1px solid var(--color-secondary);
  padding: 5px;
  width: 100%;
}

*:focus-visible {
  outline: 4px solid var(--color-contrast);
}

*:focus:not(:focus-visible) {
  outline: none;
}

.edition-nav-data {
  margin: 2.5em 0 8em;
}

/* fallback styling for web component for clients w/o JS */
.edition-nav-data h2 {
  background-color: var(--color-background-contrast);
  height: 50px;
  margin: 5px 0 0;
  font: normal normal 18px/20px var(--font-family);
}
.edition-nav-data h2 button {
  all: inherit;
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 13px 0 25px;
}

.edition-nav-li {
  list-style: none;
}

.edition-nav-li a {
  align-items: center;
  display: flex;
}

.nav__sub-title,
.nav__alt-title,
.nav__alt-title-label {
  margin: auto;
  font-size: 1em;
  width: 100%;
  padding: 0.25rem 1.5rem;
}

.nav__sub-title {
  font-style: italic;
}

.nav__alt-title-label {
  display: block;
}

.nav__alt-title {
  color: var(--color-primary);
}

[class*="icon-"] {
  background: var(--color-primary);
  display: inline-block;
  height: 100%;
  mask-size: cover;
  width: 100%;
}

.icon-listarrow {
  mask-image: url(../img/listarrow.svg);
  height: 22px;
  margin-right: 15px;
  width: 22px;
}

.edition-menu-controls li > a,
.edition-menu-controls li > button,
.edition-menu-controls li > nav > button {
  align-items: center;
  display: flex;
}

.edition-menu-control [class*="icon-"] {
  transform: scale(50%);
}

.edition-menu-control {
  .svg-inline--fa {
    color: var(--color-primary);
    height: 1.75rem;
    width: 100%;
  }
  .burger-open .svg-inline--fa {
    color: var(--color-background);
  }
}

.icon-info {
  mask-image: url(../img/info.svg);
}

.icon-download {
  mask-image: url(../img/download.svg);
}

.icon-layers {
  mask-image: url(../img/layers.svg);
}

.icon-bookmark {
  mask-image: url(../img/bookmark.svg);
}

.icon-fullscreen {
  mask-image: url(../img/fullscreen.svg);
}

.icon-collapse {
  mask-image: url(../img/collapse.svg);
}

.icon-arrow {
  mask-image: url(../img/arrow.svg);
}

.icon-magnifyingglass {
  mask-image: url(../img/magnifyingglass.svg);
}

.icon-xmark {
  mask-image: url(../img/xmark.svg);
}

.icon-caret {
  mask-image: url(../img/caret.svg);
}

.icon-darktheme {
  mask-image: url(../img/darktheme.svg);
}

.icon-scrolltop {
  mask-image: url(../img/scrolltop.svg);
}

.icon-flag-ger {
	background: center/ contain no-repeat url(../img/flag-ger.svg);
}

.icon-flag-uk {
  background: center/ contain no-repeat url(../img/flag-uk.svg);
}

.icon-inverse {
  background-color: var(--color-background);
}

.icon-b-w {
  background-color: var(--color-font);
}

.index-wrapper {
  display: flex;
}
@media (max-width: 800px) {
    .index-wrapper {
	    flex-wrap: wrap;
    }
}

.index-controls {
  flex-shrink: 0;
  padding: 0 1em 0 0;
}

/* legends for controls on index page are hidden visually */
.index-controls legend {
  height: 0;
  overflow: hidden;
}

.index-controls input {
  appearance: none;
  height: 100%;
  left: 0;
  margin: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.index-controls input:checked,
.index-controls .selected {
  background: var(--color-primary);
  color: var(--color-background);
}

.index-controls input:checked + span {
  color: var(--color-background);
  z-index: 1;
}

.index-controls label,
.index-controls a {
  align-items: center;
  background: var(--color-tertiary);
  color: var(--color-primary);
  display: flex;
  flex-grow: 1;
  height: 2.75rem;
  justify-content: center;
  font: normal normal 18px/20px var(--font-family-semibold);
  padding: 5px;
  position: relative;
  text-align: center;
  width: 2.75rem;
}

.index-controls a {
  width: 100%;
}

.index-controls-set {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: space-between;
  margin: 0 0 2.75rem 0;
  max-width: 188px;
}

.index-controls-letter {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  max-width: 188px;
  & :last-child {
    width: 100%;
  }
}

.index-entries {
  flex-grow: 1;
  padding: 0 0.5em 0 0;
  margin: 0;
  max-height: 75vh;
  overflow: scroll;
}

.index-entry {
  margin: 0 0 0.25rem 0;
  padding: 0;
}

.index-entry-head {
  background: var(--color-primary);
  color: var(--color-background);
  font: normal normal 18px/20px var(--font-family-semibold);
  height: 2.75rem;
  list-style: none;
  overflow: hidden;
  padding: 0.75em 0.5em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-entry-body {
  border: 1px solid var(--color-primary);
  display: grid;
  grid-template-columns: max-content auto;
}

.index-entry-body > * {
  padding: 0.25em 0.75em;
  margin: 0.219rem 0 0 0;
}

.index-entry-label {
  grid-column-start: 1;
}

.index-entry-label::after {
  content: ":";
}

.index-entry-value {
  grid-column-start: 2;
  word-wrap: anywhere;
  > ul {
    padding: 0;
  }
}

[class*="js-editorial-info"],
.name,
.editorial-icon {
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-family-semibold);
  list-style: none;
}

.entity-name:hover {
  text-decoration: underline;
}

.publish .panel-body > * {
  margin: 0.5em 0;
}

.publish button {
  margin: 0.25em 0;
  padding: 0.5em 0;
}

.button-w-tooltip {
  position: relative;
}

[role="tooltip"] {
  display: none;
  padding: 5px;
  position: absolute;
  text-align: center;
  top: 100%;
  width: 140px;
}

.button-w-tooltip:hover + [role="tooltip"],
.button-w-tooltip:focus + [role="tooltip"] {
  display: block;
}

.button-w-tooltip:focus:not(:focus-visible) + [role="tooltip"] {
  display: none;
}

.title-display span:last-of-type {
  font-weight: bold;
}

.edition-menu {
  background-color: var(--color-background-contrast);
  display: flex;
  justify-content: space-around;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.edition-menu-content {
  justify-content: space-between;
}

.edition-menu-control ul {
  left: 0;
  position: fixed;
  top: var(--offset-top);
  width: 100vw;
  li,
  .dropdown-divider {
    margin: 0 auto;
    width: 60vw;
  }
}

body:has(ul.edition-menu-content:not(.hidden)) {
  overflow: hidden;
}

.text-anchor,
.toc-anchor,
.page-anchor {
  position: relative;
  top: -120px;
}

.note-icon:before {
    content: " ";
}

.margin {
  align-items: baseline;
  clear: left;
  display: flex;
  float: left;
  font-weight: 700;
  margin: 1.5em 1rem 0.5rem 0;
  padding: 0;
  shape-outside: margin-box;
  width: 40%;
}

.margin-content {
  display: inline-block;
  padding-inline-start: 1em;
  white-space: wrap;
}

li,
h4 {
  & .margin {
    margin: 0em 1rem 0.5rem 0;
  }
}

.list-item:has(.margin) {
  margin-inline-start: 40%;
  & .col-11 {
    position: relative;
  }
  & .margin {
    position: absolute;
    left: -75%;
    top: 0;
    white-space: nowrap;
  }
}

figure {
    display: block;
    margin: 1em auto;
    text-align: center;
}

.cover {
    max-height: 500px;
}

/* typography and text presentation */

.linethrough {
    text-decoration: line-through;
}

.blockquote {
    margin: 1em 40px 1em 40px;
    font-size: smaller;
}

.body_type {
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    letter-spacing: normal;
    margin-left: 0;
    text-decoration: none;
    text-transform: none;
}

.bold {
    font-weight: bold;
}

.italics {
    font-style: italic;
    margin-inline-end: 1.5px;
}

.small_caps {
    font-variant: small-caps;
}

.spaced {
    letter-spacing: 5px;
    margin-inline-end: -2px;
}

.text_border {
  border: 1px solid;
  border-radius: 10px;
  display: inline-block;
  margin: 1px 3px;
  padding-top: 1px;
  padding-right: 3px;
  padding-bottom: 1.5px;
  padding-left: 3px;
}

.initial {
  font-size: 2em;
  font-weight: bold;
}

.under {
    text-decoration: underline;
}

.versal {
    text-transform: uppercase;
}

.small-letters,
.small_letters {
    font-size: smaller;
}

.indented {
    padding-left: 2em;
}

.insertion {
    padding: 0 2em;
}

.eyecatcher {
  font-size: 1.2em;
  font-weight: 700;
}

.normal-color {
    color: black;
}

.modalArea table {
    width: 100%;
}

.modalArea tbody:nth-of-type(even) {
  background-color: var(--color-background-contrast);
}

.modalArea tr {
  height: 2.5em;
}

.modalArea td {
    border: none;
    padding: 0 5px;
}

.modalArea td:last-of-type {
  font-family: var(--font-family-semibold);
}

.modalArea tr:first-of-type td:nth-of-type(-n+2) {
  padding-top: 1em;
  vertical-align: top;
}

.modalArea tr:last-of-type td:nth-last-of-type(-n+2) {
  padding-bottom: 1em;
}

.modalArea tbody:first-of-type td:last-of-type {
  font-weight: bold;
}

.modalArea .source td {
  vertical-align: bottom;
}

.Modal__source > span {
  display: grid;
}

.svg-inline--fa {
    margin-left: 0.1rem;
}

.line-group {
    margin-top: 10px;
    margin-bottom: 10px;
}

.line-group__line {
    display: inline;
    &> blockquote {
        display: inline-block;
    }
}

.modal-open {
    overflow: visible;
    padding-right: 0 !important;
}

.modal-open .modal {
    overflow: hidden;
}

.modal-backdrop.show {
    opacity: 0;
}

.modal-dialog {
    height: 80vh;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

.paragraph {
    margin-bottom: 9px;
}

.paragraph-milestone {
  display: block;
}

.modal-body__content {
    display: none;
}

.error-message {
    color: var(--clr-danger);
}

.heading--sub-heading {
    font-size: 80%;
}

.heading__label {
    content: " "
}

.list, .rdg-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 1rem;
}

[data-view="commentary"] .list .col-11 {
    margin-block-end: 0.25em;
}

.rdg-digital .list-item {
    list-style: none;
}

.list-item {
    text-align: left;
}

.list-item__label {
    padding-right: 0.5em;
}

.paragraph--list:first-of-type {
    display: inline;
}

.edition-info-section {
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.edition-info-item {
    padding: 0.75rem 0 0;
}

.hidden {
    display: none;
}

.table table {
  width: 100%;
  &[class*="border"] {
    padding: 0.125rem;
  }
  &.border {
    border: 1px solid var(--color-font);
  }
  &.border-bottom {
    border-block-end: 1px solid var(--color-font);
  }
  &.border-top {
    border-block-start: 1px solid var(--color-font);
  }
  &.border-left {
    border-inline-start: 1px solid var(--color-font);
  }
  &.border-right {
    border-inline-end: 1px solid var(--color-font);
  }
  tfoot td {
    margin-block-start: 1em;
  }
}

.table tr:nth-child(2n):not(.pagebreak-row) {
  background-color: var(--clr-bg-light);
}

.pagebreak-row {
  border-top: 1px solid var(--color-font-editorial);
}

.table td {
  border: 1px solid var(--color-primary);
  padding: 0 0.5rem;
  text-align: left;
  vertical-align: top;
  &.no_border_bottom {
    border-block-end: 1px solid transparent;
  }
  &.no_border_top {
    border-block-start: 1px solid transparent;
  }
  &.no_border_left {
    border-inline-start: 1px solid transparent;
  }
  &.no_border_right {
    border-inline-end: 1px solid transparent;
  }
  &.no_border {
    border: 1px solid transparent;
  }
}

tr {
  &.no_border_bottom {
    td {
      border-block-end: 1px solid transparent;
    }}
  &.no_border_top {
    td {
      border-block-start: 1px solid transparent;
    }
  }
  &.no_border_left {
    td {
      border-inline-start: 1px solid transparent;
    }
  }
  &.no_border_right {
    td {
      border-inline-end: 1px solid transparent;
    }
  }
  &.no_border {
    td {
      border: 1px solid transparent;
    }
  }
}

.no_border td,
tr.no_border td {
  border: 1px solid transparent;
}

.publish .table td {
  border: 0;
}

.table__heading {
  font-style: italic;
}

.highlight-quote,
.highlight-info,
.highlight-search {
  background: var(--color-multiple-bg);
  border-block-end: 1px solid var(--color-multiple);
  padding: 0;
}

.blink {
  color: var(--color-primary);
}

.publish table {
  width: 100%;
}

audio {
  display: block;
  margin: 1.5rem auto;
}

@media (max-width: 745px) {
  #project {
    grid-template-columns: auto;
  }

  .row {
    flex-direction: column;
  }

  .left {
    text-align: center;
  }

  .left,
  .right {
    min-height: 100px;
    padding: 0 1em;
    width: 100%;
  }

  .left > *,
  .right > * {
    margin: auto;
  }

  .nav-menu.bg-primary {
    height: 100vh;
    left: 0;
    margin: 0;
    padding: 1.5em 0;
    position: fixed;
    width: 100vw;
  }

  .footer-items {
    flex-direction: column;
  }

  .hamburger {
    --color-font: var(--color-background);
    bottom: 0;
    background: var(--color-primary);
    left: 0;
    position: fixed;
    width: 100vw;
  }

  .scrolltop {
    bottom: 60px;
  }

  .index {
    width: 90vw;
  }

  .index-controls-letter label {
    flex-grow: 2;
  }

  .edition-menu {
    top: 0;
    z-index: 10;
  }

  footer {
    padding-bottom: 6em;
  }
}

/* hide schema-toc when it can't fit next to schema */
@media screen and (max-width: 1079px) {
  #schema-toc {
    display: none;
  }
}

.darktheme-button {
  transition: transform var(--animation-length-m) ease-in-out;
}

.dark-theme .darktheme-button {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion) {
  body {
    --animation-length-s: 0s;
    --animation-length-m: 0s;
  }
}