.tiptap {
  height: calc(100% - 85.84px);
}

.tiptap.ProseMirror {
  height: calc(100% - 85.84px);
}

.tiptap :first-child {
  margin-top: 0;
}

/* List styles */
.tiptap ul,
.tiptap ol {
  padding: 0 1rem;
}

.tiptap ul > li {
  list-style: disc;
  ul {
    list-style: circle;
  }
}

.tiptap ol > li {
  list-style: decimal;
}

.tiptap ul li p,
.tiptap ol li p {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

/* Heading styles */
.tiptap h1,
.tiptap h2,
.tiptap h3,
.tiptap h4,
.tiptap h5,
.tiptap h6 {
  line-height: 1.1;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.tiptap h1 {
  font-size: 1.4rem;
}

.tiptap h2 {
  font-size: 1.2rem;
}

.tiptap h3 {
  font-size: 1.1rem;
}

.tiptap h4,
.tiptap h5,
.tiptap h6 {
  font-size: 1rem;
}

/* Code and preformatted text styles */
.tiptap code {
  background-color: var(--purple-light);
  border-radius: 0.4rem;
  color: var(--black);
  font-size: 0.85rem;
  padding: 0.25em 0.3em;
}

.tiptap blockquote {
  border-left: 3px solid var(--gray-3);
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.tiptap hr {
  border: none;
  border-top: 1px solid var(--gray-2);
  margin: 2rem 0;
}

.tiptap pre {
  background: #2e2b29;
  border-radius: 0.5rem;
  color: var(--white);
  font-family: "JetBrainsMono", monospace;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;

  code {
    background: none;
    color: inherit;
    font-size: 0.8rem;
    padding: 0;
  }
}

/* menuBar */
.bubble-menu {
  display: flex;
  gap: 7px;
  padding: 5px 15px;
  border: 1px solid #2e2b29;
  border-radius: 20px;
  background-color: white;
}

.buttons {
  color: #424358;
}

/* text */
.ProseMirror-focused {
  border: none !important;
  outline: none !important;
}

/* placeholder */
.tiptap p.is-editor-empty:first-child::before {
  color: white;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}
