@page {
  size: A4;
  margin: 18mm 16mm;
}

:root {
  --print-font-size: 11pt;
}

html,
body {
  background: #fff;
  color: #1d2733;
}

.app-header,
.sidebar,
.editor-pane,
.preview-toolbar,
.reader-toolbar,
.reader-overlay,
.status,
.settings-dialog {
  display: none !important;
}

.app-shell,
.workspace,
.preview-pane {
  display: block;
  height: auto;
  overflow: visible;
}

.preview-output {
  display: block;
  overflow: visible;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff !important;
  color: #1d2733 !important;
  font-size: var(--print-font-size, 11pt);
  line-height: 1.65;
}

.markdown-body {
  background: #fff !important;
  color: #1d2733 !important;
}

.markdown-body h1,
.markdown-body h2 {
  border-bottom: 0 !important;
}

.publication-byline {
  margin: 0.25em 0 1.8em;
  color: #57606a;
  font-size: 1em;
  text-align: right;
}

.preview-output img {
  max-width: 100%;
  break-inside: avoid;
}

.preview-output pre,
.preview-output table,
.preview-output blockquote {
  break-inside: avoid;
}

.preview-output a {
  color: inherit;
  text-decoration: none;
}
