blockquote {
  position: relative;
  background: #0d1117;
  border: 1px solid #30363d;
  border-left: 3px solid #58a6ff;
  border-radius: 6px;
  padding: 40px 16px 16px 16px;
  margin: 1.5em 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro',
               'Cascadia Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.85em;
  line-height: 1.6;
  color: #e6edf3;
  tab-size: 4;
  -moz-tab-size: 4;
  white-space: pre-wrap;
  word-break: break-all;
}

/* kill browser default italic + quote marks */
blockquote,
blockquote * {
  font-style: normal !important;
}
blockquote::before,
blockquote::after {
  content: none !important;
}

/* flatten <p> inside blockquote */
blockquote p {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
blockquote p + p {
  margin-top: 0.35em;
}

/* ── Language label (top-left) ────────────────────────────── */
blockquote[data-lang]::before {
  content: attr(data-lang) !important;
  position: absolute;
  top: 0;
  left: 0;
  background: #161b22;
  color: #8b949e;
  font-size: 0.75em;
  font-family: inherit;
  padding: 4px 12px;
  border-bottom: 1px solid #30363d;
  border-right: 1px solid #30363d;
  border-radius: 6px 0 6px 0;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  pointer-events: none;
}

/* ── Copy button (top-right) ──────────────────────────────── */
.bq-copy-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #21262d;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.7em;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
}
.bq-copy-btn:hover {
  background: #30363d;
  color: #e6edf3;
  border-color: #58a6ff;
}
.bq-copy-btn.copied {
  background: #1a7f37;
  color: #aff5b4;
  border-color: #2ea043;
}
.bq-copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Syntax color hints ───────────────────────────────────── */
blockquote em {
  color: #ff7b72;
  font-style: normal !important;
}
blockquote strong {
  color: #ffa657;
  font-weight: 600;
}
blockquote a {
  color: #58a6ff;
  text-decoration: underline;
  text-decoration-color: #58a6ff40;
}
blockquote a:hover {
  text-decoration-color: #58a6ff;
}

/* ── Scrollbar (Webkit) ───────────────────────────────────── */
blockquote::-webkit-scrollbar {
  height: 6px;
}
blockquote::-webkit-scrollbar-track {
  background: #0d1117;
}
blockquote::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 3px;
}
blockquote::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  blockquote {
    font-size: 0.78em;
    padding: 36px 12px 12px 12px;
    border-radius: 4px;
  }
  .bq-copy-btn {
    padding: 3px 8px;
    font-size: 0.65em;
  }
}
