/* Wrap your editor in a container with this class */
.editor-wrapper {
  font-family: theme('fontFamily.sans', 'ui-sans-serif, system-ui, sans-serif');
  font-size: 0.875rem; /* Tailwind's text-sm */
  line-height: 1.5rem;
  color: rgb(55 65 81); /* text-gray-700 */
}

/* Typography defaults */
.editor-wrapper h1 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.editor-wrapper h2 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.editor-wrapper h3 {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.editor-wrapper p {
  margin-bottom: 1rem;
  color: rgb(55 65 81); /* text-gray-700 */
}

.editor-wrapper strong {
  font-weight: 600;
}

.editor-wrapper em {
  font-style: italic;
}

.editor-wrapper a {
  color: rgb(37 99 235); /* text-blue-600 */
  text-decoration: underline;
}

.editor-wrapper ul,
.editor-wrapper ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.editor-wrapper ul {
  list-style-type: disc;
}

.editor-wrapper ol {
  list-style-type: decimal;
}

.editor-wrapper li {
  margin-bottom: 0.25rem;
}

/* Blockquotes */
.editor-wrapper blockquote {
  border-left: 4px solid rgb(229 231 235); /* border-gray-200 */
  padding-left: 1rem;
  color: rgb(107 114 128); /* text-gray-500 */
  font-style: italic;
  margin-bottom: 1rem;
}

/* Tables */
.editor-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.editor-wrapper th,
.editor-wrapper td {
  border: 1px solid rgb(229 231 235); /* border-gray-200 */
  padding: 0.5rem;
  text-align: left;
}

.editor-wrapper thead {
  background-color: rgb(243 244 246); /* bg-gray-100 */
  font-weight: 600;
}

/* Images */
.editor-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

/* Code blocks */
.editor-wrapper pre,
.editor-wrapper code {
  font-family: theme('fontFamily.mono', 'ui-monospace, SFMono-Regular, monospace');
  background-color: rgb(243 244 246); /* bg-gray-100 */
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.editor-wrapper pre {
  overflow-x: auto;
  margin-bottom: 1rem;
}
