/* A line between two stacked sections, with room above and below it to grab: the up-and-down
   resize pointer, a short grip in its middle that turns gold on hover and while dragged.
   Prototype choice, not ruled (2026-11-17): the grip turns gold as the site's controls do under
   the pointer; the alternative was white. */
.draggable-separator
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Room to grab on either side of the line; judged by eye. */
    height: 0.75rem;
    cursor: ns-resize;
    touch-action: none;
    border-radius: 0.25rem;

    /* Twice the room for a finger; judged by eye. */
    @media (pointer: coarse)
    {
        height: 1.5rem;
    }

    /* The line across. */
    &::before
    {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        border-top: 1px solid var(--neutral-highest-emphasis-surface-color);
    }

    &:hover .draggable-separator-grip,
    &:active .draggable-separator-grip
    {
        background: var(--primary-higher-emphasis-color);
    }
}

/* The grip: a short rounded bar over the line's middle. */
.draggable-separator-grip
{
    position: relative;
    width: 2rem;
    height: 0.25rem;
    border-radius: 0.125rem;
    background: var(--neutral-surface-low-emphasis-contrast-color);
}
