/* ==========================================================================
   Midra Solutions - Blog article typography
   Scoped to .post-body so it cannot affect any hand-authored page.
   Uses the same tokens as the main styles.css.
   ========================================================================== */

.post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post-body > * + * {
  margin-top: 1.5rem;
}

.post-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--slate-900);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--slate-900);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.post-body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-body p {
  color: var(--slate-700);
}

.post-body a {
  color: var(--primary-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary-300);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-body a:hover {
  color: var(--primary-800);
  text-decoration-color: var(--primary-600);
}

.post-body strong {
  font-weight: 700;
  color: var(--slate-900);
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-top: 0.5rem;
}

.post-body li::marker {
  color: var(--primary-500);
}

.post-body blockquote {
  border-left: 3px solid var(--primary-400);
  background: var(--primary-50);
  padding: 1rem 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--slate-600);
}

.post-body blockquote p {
  margin-top: 0.5rem;
}

.post-body blockquote > :first-child {
  margin-top: 0;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid rgba(186, 230, 253, 0.8);
  padding: 0.15em 0.4em;
  border-radius: 0.375rem;
}

.post-body pre {
  background: var(--slate-900);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}

.post-body pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.875rem;
  border: 1px solid rgba(186, 230, 253, 0.6);
}

.post-body hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.post-body th,
.post-body td {
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.post-body th {
  background: var(--primary-50);
  font-weight: 700;
  color: var(--slate-900);
}
