/* Clean article typography */
.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}
.article-content > *:first-child {
  margin-top: 1.5rem;
}
/* First image after intro paragraph needs more space */
.article-content > p:first-child + p > img:only-child,
.article-content > p:first-child + figure,
.article-content > p + p > img {
  margin-top: 2rem;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 1.75rem 0 0.75rem;
}
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover {
  color: #1d4ed8;
}
.article-content strong {
  color: #111827;
  font-weight: 600;
}
/* Images */
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.article-content .not-prose img {
  display: inline-block;
  border: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 2px;
}
/* Tables */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 14px;
  border: 1px solid #e0e1e9;
  border-radius: 12px;
  overflow: hidden;
}
.article-content th {
  background: #f4f5f9;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a1af;
  border-bottom: 1px solid #ccd3e8;
}
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e1e9;
}
.article-content td:first-child {
  color: #16a34a;
  font-weight: 600;
}
.article-content tr:last-child td {
  border-bottom: none;
}
.article-content tr:hover td {
  background: rgba(248,249,254,0.5);
}
/* Code - inline */
.article-content code {
  background: #f3f4f6 !important;
  padding: 0.2em 0.4em !important;
  border-radius: 4px !important;
  font-size: 0.875em !important;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace !important;
  color: #1f2937 !important;
}
/* Code blocks */
.article-content pre {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  padding: 1rem 1.25rem !important;
  border-radius: 8px !important;
  overflow-x: auto !important;
  margin: 1.5rem 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  border: 1px solid #334155 !important;
}
.article-content pre code {
  background: transparent !important;
  padding: 0 !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
}
/* Syntax highlighting colors */
.article-content pre .hljs-keyword,
.article-content pre .hljs-selector-tag { color: #c792ea !important; }
.article-content pre .hljs-string,
.article-content pre .hljs-attr { color: #c3e88d !important; }
.article-content pre .hljs-comment { color: #676e95 !important; }
.article-content pre .hljs-number { color: #f78c6c !important; }
.article-content pre .hljs-built_in { color: #82aaff !important; }
/* Blockquotes */
.article-content blockquote {
  border-left: 3px solid #c41926;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6b7280;
  font-style: italic;
}
