:focus {
  outline: none;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 10mm;
  padding-bottom: 10mm;

  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  display: flex;
  flex-direction: column;
  gap: 5mm;
}

.page {
  position: relative;
  width: 210mm;
  height: 297mm;
  border: 1px solid black;
  padding: 2cm;

  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.page .overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 210mm;
  height: 297mm;
  z-index: -1;
}

.mono {
  font-family: monospace;
}

.indent {
  padding-left: 3mm;
}

@media print {
  body {
    padding: 0;
    margin: 0;
  }

  main {
    gap: 0;
  }

  .page {
    border: none;
  }

  .no-print {
    display: none;
  }
}

@-moz-document url-prefix() {
  br+img {
    margin-top: 5mm;
  }

  .code {
    margin-top: 5mm;
  }
}