/* =======================================================
   TINYMCE EDITOR CONTENT CSS
   WordPress-like clean typography for the editor preview.
   Also used on frontend to render post content.
   ======================================================= */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d2327;
  margin: 16px 20px;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1d2327;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  margin: 20px 0 10px;
  color: #1d2327;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #1d2327;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Paragraph */
p {
  margin: 0 0 10px;
}

/* Links */
a {
  color: #0073aa;
  text-decoration: underline;
}
a:hover {
  color: #005177;
}

/* Lists */
ul, ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

li { margin: 0 0 4px; }

/* Quote — WordPress style */
blockquote {
  margin: 14px 0;
  padding: 0 0 0 16px;
  border-left: 4px solid #dcdcde;
  color: #50575e;
  font-style: italic;
}

/* Images */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 4px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

th, td {
  border: 1px solid #dcdcde;
  padding: 8px 10px;
}

th {
  background: #f0f0f1;
  font-weight: 600;
  text-align: left;
}

hr {
  border: none;
  border-top: 1px solid #dcdcde;
  margin: 18px 0;
}

/* Code */
pre, code {
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  background: #f0f0f1;
  border-radius: 3px;
}
code {
  padding: 2px 5px;
}
pre {
  padding: 12px 14px;
  margin: 12px 0;
  overflow-x: auto;
}
