/* Drag-to-reorder (sortable Stimulus controller): grab handle and the item being dragged. */
@layer components {
  [data-sortable-handle] {
    cursor: grab;
    touch-action: none;
  }
  [data-sortable-handle]:active { cursor: grabbing; }

  .drag-handle {
    width: 28px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--color-neutral-700);
    font-size: 17px;
  }
  .drag-handle:hover { background: var(--color-btn-hover); color: var(--color-text); }

  [data-sortable-target~="item"].is-dragging {
    opacity: 0.5;
    box-shadow: 0 0 0 2px var(--color-blue);
  }
}
