.article-content {
  color: #1e293b; /* slate-800 for light mode */
  font-size: 1.05rem;
  line-height: 1.75;
}

.dark .article-content {
  color: #e2e8f0;
}

.article-content > * + * {
  margin-top: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #0f172a; /* slate-900 for light mode */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 2.5rem;
}

.dark .article-content h1,
.dark .article-content h2,
.dark .article-content h3,
.dark .article-content h4,
.dark .article-content h5,
.dark .article-content h6 {
  color: #f9fafb;
}

.article-content h2 { font-size: 2.1rem; }
.article-content h3 { font-size: 1.6rem; }
.article-content h4 { font-size: 1.3rem; }
.article-content h5 { font-size: 1.1rem; }
.article-content h6 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-content p {
  margin-top: 1rem;
}

.article-content a {
  color: #2563eb; /* blue-600 for light mode */
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.5);
}

.dark .article-content a {
  color: #93c5fd;
  text-decoration-color: rgba(147, 197, 253, 0.7);
}

.article-content a[href^="http"]::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.7;
}

.article-content ul,
.article-content ol {
  margin-top: 1.4rem;
  padding-left: 1.75rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li + li {
  margin-top: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid rgba(37, 99, 235, 0.4); /* blue-600 for light */
  padding-left: 1rem;
  font-style: italic;
  color: #475569; /* slate-600 for light mode */
}

.dark .article-content blockquote {
  border-left-color: rgba(96, 165, 250, 0.4);
  color: #e5e7eb;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background-color: #e2e8f0; /* slate-200 for light mode */
  color: #0f172a; /* slate-900 for light mode */
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
}

.dark .article-content code {
  background-color: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

.article-content pre {
  background-color: #f1f5f9; /* slate-100 for light mode */
  border-radius: 1rem;
  padding: 1.25rem;
  overflow-x: auto;
}

.dark .article-content pre {
  background-color: rgba(15, 23, 42, 0.7);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid #cbd5e1; /* slate-300 for light mode */
  padding: 0.75rem 1rem;
  text-align: left;
}

.dark .article-content th,
.dark .article-content td {
  border-color: rgba(59, 130, 246, 0.25);
}

.article-content th {
  background-color: #e0e7ff; /* indigo-100 for light mode */
  color: #0f172a; /* slate-900 for light mode */
}

.dark .article-content th {
  background-color: rgba(59, 130, 246, 0.15);
  color: #f9fafb;
}

.article-content figure {
  margin: 2.5rem auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.article-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #64748b; /* slate-500 for light mode */
  text-align: center;
  font-style: italic;
}

.dark .article-content figcaption {
  color: #94a3b8;
}
