/* HEADER */

square#header {
  position: relative;
  width: unset;
  min-height: unset;
}

square#header .info {
  margin: auto;
  width: calc(var(--content-width) * calc(1.7));
}

square#header h1 {
  margin: 1em auto;
  max-width: calc(var(--content-width) / calc(3 / 1.7));
}

square#header .document {
  display: block;
  margin: 2em auto;
  font-family: mono;
  text-transform: uppercase;
}

square#header .image {
  width: calc(var(--content-width) * 1.7);
  margin: auto;
}

square#header .cover-info {
  position: absolute;
  padding: 1em;
  bottom: 0;
  right: 0;
  color: var(--foreground);
  fill: var(--foreground);
}

square#header .cover-info * {
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

square#header .cover-info .cover-info-content {
  display: none;
  position: absolute;
  background-color: var(--background-2);
  padding: 1em 2em;
  max-width: 30em;
  width: max-content;
  right: 0;
  bottom: 0;
  font-family: mono;
}

square#header .cover-info:hover .cover-info-content {
  display: block;
}

/* CONTENT */

content {
  width: var(--content-width);
  font-size: 1.7em;
  margin: 2em auto;
  display: block;
}

content p {
  margin: 0;
  white-space: pre-wrap;
}

content p img  {
  margin: 1em 0;
  width: 100%;
}

.caption {
  font-size: 0.6em;
  display: block;
  text-indent: 0 !important;
  margin: 0 0 1em 0 !important;
}

.caption img {
  margin: 1em 0 0 0;
}

.expandable {
  position: relative;
}

content blockquote {
  color: var(--foreground-2);
  font-size: 0.8em;
  margin: 3em 0;
}

content blockquote em {
  font-style: italic;
  margin: 2em auto;
}

sup {
  position: relative;
  top: -0.3em;
  vertical-align: top;
  padding-top: 3em;
  white-space: normal;
}

sup:hover .footnote-hover {
  display: block;
}

.emphasis {
  font-size: 1.35em;
}

.retracted {
  font-family: mono;
  font-size: 1em;
  padding: 4em;
  background-color: var(--highlight);
  width: calc(var(--content-width) * 1.7);
}

.footnotes {
  font-size: 0.8em;
  border-top: 2px solid var(--foreground-2);
}

.footnotes:before {
  content: 'NOTAS';
  font-family: mono;
  font-size: 1.2em;
  margin: auto;
  text-align: center;
  display: block;
  margin: 2em;
}

.footnote-hover {
  position: absolute;
  top: 5em;
  left: 0.8em;
  display: none;
  width: 20em;
  padding: 0.8em;
  font-weight: bold;
  font-size: 0.7em;
  background-color: var(--highlight);
}

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

.footnote-hover a[class="reversefootnote"] {
  display: none;
}

.translations {
  font-family: mono;
  background-color: var(--highlight);
  text-align: center;
  padding: 1em;
}

.media-insert {
  font-family: mono;
  font-size: 0.8em;
  margin: auto;
  width: 100%;
  text-align: center;
  color: var(--foreground-2);
  fill:  var(--foreground-2);
}

.pleca {
  margin: 2em 0 !important;
  padding-top: 2em !important;
  border-top: 2px solid var(--foreground-2);
  font-size: 0.8em;
}

@media (max-width: 80em) {
  square#header {
    width: unset !important;
  }

  square#header h1 {
    margin: 1em calc(1.7em / 3);
    width: calc(100% - calc(1.7em / 3) * 2);
  }

  square#header .image,
  square#header .info {
    margin: auto 1.7em;
    width: calc(100% - (2em * 1.7));
  }

  content {
    margin: auto 1em;
    width: calc(100% - 2em);
  }
}
