/* =========================================
   ARTICLE TYPOGRAPHY RESET
   Forces consistency regardless of editor input
   ========================================= */

/* 1. Base container settings */
.article-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* System font stack */
  font-size: 16px;
  line-height: 1.6;
  color: #374151; /* Neutral dark gray */
  max-width: 100%;
  overflow-wrap: break-word;
}

/* 2. Reset common text elements to remove editor weirdness */
.article-body p,
.article-body ul,
.article-body ol,
.article-body li,
.article-body span,
.article-body div {
  /* Optional: Force font-family inheritance to kill inline styles like "Comic Sans" */
  font-family: inherit !important; 
  
  /* Optional: Cap font sizes so nothing looks massive unexpectedly */
  /* font-size: 1rem !important; */ 
  
  margin-bottom: 1.25rem;
}

/* 3. Standardize Headings */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: inherit !important;
  color: #111827; /* Darker black for contrast */
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Specific sizes for hierarchy */
.article-body h1 { font-size: 2.25rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; }
.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }

/* 4. Fix Lists */
.article-body ul, 
.article-body ol {
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.article-body li {
  margin-bottom: 0.5rem; /* Spacing between bullets */
  padding-left: 0.25rem;
}

/* 5. Fix Blockquotes */
.article-body blockquote {
  border-left: 4px solid #3b82f6; /* Blue accent */
  background: #f9fafb;
  padding: 1rem 1.5rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: #4b5563;
}

/* 6. Fix Links */
.article-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: #1d4ed8;
}

/* 7. Fix Images */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 8. Fix Code Blocks */
.article-body pre {
  background: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Menlo", "Monaco", "Courier New", monospace !important;
  font-size: 0.9em;
  margin-bottom: 1.5rem;
}