/* ===========================
   ARTICLE CONTENT (EDITOR MIRROR)
   =========================== */

.article-content {
  font-family: sans-serif;
  line-height: 1.6;
  color: #374151; /* text-gray-700 */
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* HEADINGS */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #222;
  font-weight: bold;
  margin: 12px 0;
}

/* PARAGRAPH */
.article-content p {
  margin: 8px 0;
}

/* LISTS (Tailwind reset FIX) */
.article-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 8px 0;
}

.article-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 8px 0;
}

.article-content li {
  margin: 4px 0;
}

/* CODE BLOCK */
.article-content pre {
  background: #cecece;
  padding: 10px;
  border-radius: 6px;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin: 12px 0;
}

/* INLINE CODE (optional safety) */
.article-content code {
  font-family: monospace;
  background: #f1f1f1;
  padding: 2px 4px;
  border-radius: 4px;
}

/* BLOCKQUOTE */
.article-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 12px;
  margin: 12px 0;
  color: #555;
  font-style: italic;
}

/* IMAGES */
.article-content img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 12px 0;
}

/* FONT TAG SUPPORT (because execCommand generates <font>) */
.article-content font {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
