/**
 * Copyable snippet — copy-paste code blocks on run/command sections.
 * Include after nav-shared.css.
 */
.copyable-snippet {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}
.copyable-snippet pre {
  margin: 0;
  padding: 1rem 3rem 1rem 1rem;
  background: var(--snippet-bg, #1a1a2e);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid var(--snippet-border, rgba(99, 102, 241, 0.2));
}
.copy-snippet-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent, #00D4FF);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.copy-snippet-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #fff;
}
.copy-snippet-btn.copied {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.15);
}
