/* =========================================================
   Post-specific styles. Loaded *after* the main stylesheet.
   ========================================================= */

.post-container {
  max-width: 720px;
}

.post-nav {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.post-nav a {
  color: var(--dim);
}
.post-nav a:hover {
  color: var(--acc);
}

.post-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.post-header .post-cat {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.post-h1 {
  margin: 0.25rem 0 0.6rem 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.post-meta {
  margin: 0.25rem 0 0.85rem 0;
  font-size: 0.88rem;
  color: var(--dim);
}

.post-lede {
  margin: 0;
  color: var(--dim);
  font-size: 1.02rem;
  font-style: italic;
}

.post-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}

.post-body h2 {
  margin: 2rem 0 0.85rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}

.post-body p {
  margin: 0 0 1rem 0;
}

.post-body ol,
.post-body ul {
  padding-left: 1.4rem;
}

.post-body li {
  margin-bottom: 0.6rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: block;
  margin: 1.25rem auto;
}

/* MathJax color inheritance in dark mode */
mjx-container svg {
  color: var(--text);
}

/* MathJax block-display alignment */
.post-body mjx-container[display="true"] {
  margin: 0.75rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .post-h1 { font-size: 1.5rem; }
  .post-body { font-size: 0.98rem; }
}
