/* ==========================================================================
   12-curateorder.css — THE GRIP ON EACH CURATE SECTION

   Quiet until you go looking for it. The grip sits at the left of the card's
   heading, dim, and comes up to full strength when the pointer is over the
   card -- the same manners as the Options menu's own reorder handle. It is
   not hidden in Read-Only: rearranging is allowed there, deliberately.
   ========================================================================== */

.cu-grip {
  cursor: grab;
  color: var(--muted);
  opacity: .35;
  font-size: 14px;
  line-height: 1;
  padding: 2px 6px 2px 0;
  margin-right: 2px;
  user-select: none;
  flex-shrink: 0;
  transition: opacity .15s, color .15s;
  /* A grip is for pointing at, never for selecting or for the caret. */
  -webkit-user-select: none;
}
.card:hover > .card-header > .cu-grip { opacity: .8; }
.cu-grip:hover  { opacity: 1; color: var(--cyan); }
.cu-grip:active { cursor: grabbing; }
.cu-grip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  opacity: 1;
}

/* The card being carried. Kept faint rather than hidden so the page does not
   appear to lose a section mid-drag. */
#ws-curate .card.is-cu-dragging {
  opacity: .4;
  outline: 1.5px dashed var(--cyan);
}

/* The card it would land on. */
#ws-curate .card.cu-drop-here {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, .12);
}

/* The card heading is a flex row already; this only guarantees it, because
   the grip has to sit on the same line as the title rather than above it. */
#ws-curate .card > .card-header {
  display: flex;
  align-items: center;
}
/* The heading was a two-item row -- title at one end, Edit at the other,
   held apart by space-between. Adding the grip made it a THREE-item row and
   space-between put the title in the middle of the card, which looked like a
   mistake. The title takes the slack instead, so it stays beside its grip
   and the buttons stay at the right-hand end. */
#ws-curate .card > .card-header > .cu-grip + h3 { margin-right: auto; }

/* On paper there is nothing to drag. */
@media print {
  .cu-grip { display: none !important; }
}
