/* ── Blog post styles (loaded on blog post pages only) ── */

/* Let the Tailwind prose-pre background show through the hljs theme */
.post-body .hljs {
  background: transparent;
  padding: 0;
}

/* Code block wrapper for the copy button */
.code-block {
  position: relative;
}

.code-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.875rem; /* 14px minimum */
  font-weight: 600;
  color: #44403c;
  background: #ffffff;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.code-block:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  border-color: #a8a29e;
}

/* Figure captions: small, muted, centered */
.post-body figcaption {
  text-align: center;
}
