lexxy-editor {
  background-color: white;
  border: 1px solid #e0e0e0;
  min-height: calc(100vh - 225px);
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  box-shadow: none;
}

.lexxy-editor__content {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: #333;
}

.lexxy-editor__content,
.lexxy-content {
  line-height: 1.7;
  font-size: 1.2rem;
}


/* Headings */
.lexxy-editor__content h1,
.lexxy-editor__content h2,
.lexxy-editor__content h3,
.lexxy-editor__content h4,
.lexxy-content h1,
.lexxy-content h2,
.lexxy-content h3,
.lexxy-content h4 {
  font-weight: 800;
}

.lexxy-editor__content h1,
.lexxy-content h1 {
  font-size: 2.15rem;
  margin: 2rem 0 2.5rem 0;
  line-height: 1.2;
}

.lexxy-editor__content h2,
.lexxy-content h2 {
  font-size: 1.8rem;
  margin: 2.2rem 0 1.4rem 0;
  line-height: 1.3;
}

.lexxy-editor__content h3,
.lexxy-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  line-height: 1.4;
}

.lexxy-editor__content h4,
.lexxy-content h4 {
  font-size: 1.25rem;
  margin: 1.25rem 0 0.75rem;
  line-height: 1.4;
}

/* Paragraphs */
.lexxy-editor__content p,
.lexxy-content p {
  margin: 0 0 1.25rem 0;
}

.lexxy-editor__content figure {
  margin-bottom: 1.25rem;
}

/* Lists */
.lexxy-editor__content ul,
.lexxy-editor__content ol,
.lexxy-content ul,
.lexxy-content ol {
  margin: 0.5rem 0 0.5rem 2rem; /* vertical rhythm + consistent indentation */
  padding: 0; /* usually not needed if using margin for indentation */
  list-style-position: outside; /* better alignment and readability */
}

.lexxy-editor__content li,
.lexxy-content li {
  margin: 0.5rem 0;
}

.lexxy-editor__content ul,
.lexxy-content ul {
  list-style-type: disc;
}

.lexxy-editor__content ol,
.lexxy-content ol {
  list-style-type: decimal;
}

/* Links */
.lexxy-editor__content a,
.lexxy-content a {
  color: #155dfc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.lexxy-editor__content a:hover,
.lexxy-content a:hover {
  border-bottom-color: currentColor;
}

/* Blockquotes */
.lexxy-editor__content blockquote,
.lexxy-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  font-style: italic;
}

.lexxy-editor__content blockquote p,
.lexxy-content blockquote p {
  margin: 0;
}

.lexxy-editor__content blockquote p:not(:last-child),
.lexxy-content blockquote p:not(:last-child) {
  margin-bottom: 1rem;
}

/* Code blocks */
.lexxy-editor__content code,
.lexxy-content code {
  display: block;
  font-family: var(--font-code);
  font-size: 0.95rem;
  background-color: #f3fafc;
  color: #2d3748;
  padding: 0.5rem 1rem;
}

.lexxy-editor__content p code,
.lexxy-content p code {
  font-family: var(--font-code);
  font-size: 0.875rem;
  line-height: 1.7;
  display: inline-block;
  background-color: #f3fafc;
  color: #2d3748;
  padding: 0.2rem 0.4rem;
}

/* Images */
.lexxy-editor__content img,
.lexxy-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto 2rem auto;
  border-radius: 6px;
}

/* Tables */
.lexxy-editor__content table,
.lexxy-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 1rem;
}

.lexxy-editor__content th,
.lexxy-editor__content td,
.lexxy-content th,
.lexxy-content td {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.lexxy-editor__content th,
.lexxy-content th {
  background-color: #f8fafc;
  font-weight: 600;
}

.lexxy-editor__content tr:nth-child(even),
.lexxy-content tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Horizontal rule */
.lexxy-editor__content hr,
.lexxy-content hr {
  margin: 2rem 0;
  border: 0;
  height: 1px;
  background-color: #e2e8f0;
}

/* Emphasis */
.lexxy-editor__content strong,
.lexxy-content strong {
  font-weight: 600;
}

.lexxy-editor__content em,
.lexxy-content em {
  font-style: italic;
}

/* Definition lists */
.lexxy-editor__content dl,
.lexxy-content dl {
  margin: 1.5rem 0;
}

.lexxy-editor__content dt,
.lexxy-content dt {
  font-weight: 600;
  margin-top: 1rem;
}

.lexxy-editor__content dd,
.lexxy-content dd {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Footnotes */
.lexxy-editor__content .footnotes,
.lexxy-content .footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
}

/* Selection */
.lexxy-editor__content ::selection,
.lexxy-content ::selection {
  background-color: lightyellow;
  color: orangered;
}
