.ckeditor-output {
  font-family: var(--font-manrope);
  font-size: 14px;
  line-height: 1.7;
  color: #222;
  overflow-x: auto;
}

.ckeditor-output h1,
.ckeditor-output h2,
.ckeditor-output h3,
.ckeditor-output h4,
.ckeditor-output h5,
.ckeditor-output h6 {
  margin: 1.5rem 0 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.ckeditor-output h1 { font-size: 2rem; }
.ckeditor-output h2 { font-size: 1.75rem; }
.ckeditor-output h3 { font-size: 1.5rem; }
.ckeditor-output h4 { font-size: 1.25rem; }
.ckeditor-output h5 { font-size: 1.1rem; }
.ckeditor-output h6 { font-size: 1rem; }

.ckeditor-output p {
  margin: 1rem 0;
}

.ckeditor-output a {
  color: #007bff;
  text-decoration: underline;
}

.ckeditor-output ul,
.ckeditor-output ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.ckeditor-output ul li,
.ckeditor-output ol li {
  margin-bottom: 0.5rem;
}

.ckeditor-output blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  color: #555;
  margin: 1.5rem 0;
  font-style: italic;
  background: #f9f9f9;
}

.ckeditor-output hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.ckeditor-output code {
  background: #f4f4f4;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.95rem;
  border-radius: 4px;
}

.ckeditor-output pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  overflow: auto;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.ckeditor-output img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 6px;
}

.ckeditor-output table {
  width: 100%;
  border-collapse: collapse;
  margin: 5px 0;
  font-size: 14px;
  min-width: 700px;
}

.ckeditor-output th,
.ckeditor-output td {
  border: 1px solid #88888849;
  padding: 5px 10px;
  text-align: left;
}

.ckeditor-output th {
  background-color: #d1d1d130;
  font-weight: 500;
}

.ckeditor-output caption {
  caption-side: bottom;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}
