/* === Blockquote actions (Hover Reveal) === */
.entry-content blockquote{
  position: relative;
  padding-bottom: 2.8rem; /* room for actions on desktop */
  overflow: hidden; /* hide slide-in */
}

/* action bar */
.sw-bq-actions{
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  z-index: 2;

  /* hover reveal */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

/* reveal on hover/focus */
.entry-content blockquote:hover .sw-bq-actions,
.entry-content blockquote:focus-within .sw-bq-actions{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sw-bq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 15px;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 2px !important; /* changed from 6px or 999px */
  background: #fff;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .02s ease;
}

.sw-bq-btn:hover{ box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.sw-bq-btn:active{ transform: translateY(1px); }
.sw-bq-btn.copy.is-copied{ background:#4caf50; color:#fff; border-color:#4caf50; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .sw-bq-actions{ transition: none; transform:none; opacity:1; pointer-events:auto; }
}

/* Mobile: always visible and stacked below */
@media (max-width: 600px){
  .entry-content blockquote{ padding-bottom: 0; }
  .sw-bq-actions{
    position: static;
    margin-top: .8rem;
    justify-content: flex-end;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.sw-bq-btn svg{ width:14px; height:14px; display:inline-block; }
