.doc-title-input {
  max-width: 28rem;
}

html, body {
  height: 100%;
}

#editorRow {
  flex: 1 1 auto;
  min-height: 0;
}

#editorPane,
#previewPane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cm-host {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cm-editor {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.cm-scroller {
  overflow: auto;
}

.markdown-preview {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 991.98px) {
  #editorRow {
    flex-direction: column;
  }
  #editorPane,
  #previewPane {
    flex: 1 1 50%;
    min-height: 50vh;
  }
}

.markdown-preview pre {
  background: #f6f8fa;
  padding: 0.75rem;
  border-radius: 0.375rem;
}

.markdown-preview img {
  max-width: 100%;
}
