/* Writing section additions — layered on top of main.css.
   Reuses the site's existing theme variables (color, dark mode) rather than
   introducing a separate palette, so posts stay visually consistent with
   the rest of the site. */

.post-subtitle {
  color: var(--global-text-color-light);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 0.85rem;
  margin-bottom: 1.75rem;
}

.toc {
  background-color: var(--global-card-bg-color);
  border: 1px solid var(--global-divider-color);
  border-radius: 8px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.toc ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.callout-note,
.callout-warning {
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  background-color: var(--global-card-bg-color);
  font-size: 0.95rem;
}

.callout-note {
  border-left: 3px solid var(--global-theme-color);
}

.callout-warning {
  border-left: 3px solid #d97706;
}

.callout-note strong,
.callout-warning strong {
  color: var(--global-theme-color);
}

.eq-block {
  background-color: var(--global-card-bg-color);
  border: 1px solid var(--global-divider-color);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

.eq-label {
  font-size: 0.82rem;
  color: var(--global-text-color-light);
  margin-bottom: 0.25rem;
}

.post-content table {
  color: var(--global-text-color);
}

.post-content table th,
.post-content table td {
  color: var(--global-text-color);
  border-color: var(--global-divider-color);
}
