/* ------------------------------------------------------------------ */
/* Blog post body: rendered Markdown.                                  */
/* Styling is deliberately plain CSS (no build step) and uses daisyUI  */
/* CSS custom properties so it follows the active site theme.          */
/* ------------------------------------------------------------------ */

.blog-body {
  line-height: 1.75;
  overflow-wrap: break-word;
}

.blog-body > * + * {
  margin-top: 1em;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 1.75em;
  color: var(--color-foreground, #1e293b);
}

.blog-body h1 { font-size: 1.875rem; }
.blog-body h2 {
  font-size: 1.5rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border, #94a3b8) 35%, transparent);
}
.blog-body h3 { font-size: 1.25rem; }
.blog-body h4 { font-size: 1.05rem; }

.blog-body h1:first-child,
.blog-body h2:first-child,
.blog-body p:first-child {
  margin-top: 0;
}

.blog-body p {
  margin: 0;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.5em;
  margin: 0;
}

.blog-body ul { list-style: disc; }
.blog-body ol { list-style: decimal; }
.blog-body li + li { margin-top: 0.4em; }
.blog-body li > ul,
.blog-body li > ol { margin-top: 0.4em; }

.blog-body strong {
  font-weight: 650;
  color: var(--color-foreground, #0f172a);
}

.blog-body em { font-style: italic; }
.blog-body del { opacity: 0.65; }

.blog-body a {
  color: var(--color-primary, #2563eb);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: color-mix(in srgb, var(--color-base-300, #e2e8f0) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border, #94a3b8) 25%, transparent);
  padding: 0.15em 0.4em;
  border-radius: 0.45em;
}

.blog-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1em 1.25em;
  border-radius: 1rem;
  overflow-x: auto;
  font-size: 0.9em;
}

.blog-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.blog-body blockquote {
  margin: 0;
  padding: 0.25em 0 0.25em 1.1em;
  border-left: 3px solid color-mix(in srgb, var(--color-primary, #2563eb) 55%, transparent);
  color: color-mix(in srgb, var(--color-foreground, #334155) 78%, transparent);
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.blog-body hr {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-border, #94a3b8) 45%, transparent);
  margin: 2em 0;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.blog-body th,
.blog-body td {
  border: 1px solid color-mix(in srgb, var(--color-border, #94a3b8) 40%, transparent);
  padding: 0.5em 0.85em;
  text-align: left;
}

.blog-body th {
  background: color-mix(in srgb, var(--color-base-300, #e2e8f0) 40%, transparent);
  font-weight: 600;
}
