/* Content Styling for #articleContent only */

/* Headings */
#articleContent h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #f3f4f6;
}

#articleContent h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

#articleContent h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
}

#articleContent h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
}

#articleContent h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

#articleContent h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

/* Remove top margin from first heading */
#articleContent h1:first-child,
#articleContent h2:first-child,
#articleContent h3:first-child,
#articleContent h4:first-child,
#articleContent h5:first-child,
#articleContent h6:first-child {
  margin-top: 0;
}

/* Paragraphs */
#articleContent p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #d1d5db;
}

#articleContent p:last-child {
  margin-bottom: 0;
}

/* Lists */
#articleContent ul, 
#articleContent ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.75;
  color: #d1d5db;
}

#articleContent li {
  margin-bottom: 0.5rem;
}

#articleContent li:last-child {
  margin-bottom: 0;
}

/* Nested lists */
#articleContent ul ul, 
#articleContent ul ol, 
#articleContent ol ul, 
#articleContent ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Links */
#articleContent a {
  color: #60a5fa;
  text-decoration: underline;
}

#articleContent a:hover {
  color: #93c5fd;
}

/* Strong and emphasis */
#articleContent strong, 
#articleContent b {
  font-weight: 700;
  color: #f3f4f6;
}

#articleContent em, 
#articleContent i {
  font-style: italic;
}

/* Code */
#articleContent code {
  background-color: #374151;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #f3f4f6;
}

#articleContent pre {
  background-color: #1f2937;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 0;
  margin-bottom: 1rem;
}

#articleContent pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
}

/* Blockquotes */
#articleContent blockquote {
  border-left: 4px solid #4b5563;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  font-style: italic;
  color: #9ca3af;
}

/* Horizontal rules */
#articleContent hr {
  border: 0;
  border-top: 1px solid #4b5563;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Tables */
#articleContent table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 1rem;
}

#articleContent th, 
#articleContent td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #4b5563;
}

#articleContent th {
  font-weight: 600;
  color: #f3f4f6;
  background-color: #374151;
}

#articleContent tr:hover {
  background-color: #1f2937;
}

/* Images */
#articleContent img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

/* Figure */
#articleContent figure {
  margin: 1rem 0;
}

#articleContent figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
}

/* General spacing for content containers */
#articleContent > * + * {
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #articleContent h1 { font-size: 1.875rem; }
  #articleContent h2 { font-size: 1.5rem; }
  #articleContent h3 { font-size: 1.25rem; }
  #articleContent h4 { font-size: 1.125rem; }
}