.citation-container { position: relative; text-align: left; color: #292d27; }
.citation-container * { box-sizing: border-box; }
.citation-box { margin-top: 16px; padding: 0; border: 1px solid #e2e5e4; border-radius: 16px; background: #f6f7f6; }
.citation-box pre { margin: 0; padding: 22px 98px 22px 22px; font: 14px/1.55 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  position: absolute; top: 12px; right: 12px; min-width: 74px; height: 32px;
  padding: 0 10px; border: 1px solid #d3d9dc; border-radius: 9px;
  background: white; color: #33475a; box-shadow: 0 1px 2px #2030400d;
  opacity: 1; font: 500 13px/1 Arial, sans-serif; text-transform: capitalize; cursor: pointer;
}
.copy-button::before {
  content: ""; width: 15px; height: 15px; margin: 0; border: 0; box-shadow: none; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='13' rx='2'/%3E%3Cpath d='M15 5V4a1 1 0 0 0-1-1H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.copy-button:hover { background: #edf1f4; border-color: #aab6c0; }
.copy-button:focus-visible { outline: 2px solid #446a80; outline-offset: 2px; }
@media (max-width: 620px) {
  .citation-box pre { padding: 54px 16px 18px; }
}

@media print { .citation-container .copy-button { display: none; } }
