/* Drag handles between resizable columns (assets/hb_resizable_cols.js).
 * The handle is a real element rendered by Reflex between two columns. Its
 * layout width is --hb-handle-w, which every page sets to the gap between its
 * columns (never 0: tests/test_resizable_map_columns.py). It always shows a faint
 * grip (a thin line with three dots, theme tokens) so the dispatcher can find it;
 * hover, keyboard focus and a drag add the amber line. The grab area is a 12px
 * strip centred on the handle. Each page's stacking media query sets the handle
 * to display:none, so the phone layout is unchanged. */
.hb-col-resizer {
  position: relative;
  z-index: 6;
  flex: 0 0 var(--hb-handle-w, 0px);
  width: var(--hb-handle-w, 0px);
  align-self: stretch;
  padding: 0;
  margin: 0;
  background: transparent;
  touch-action: none;
  outline: none;
}
/* The grab area + the always-visible grip. The dots sit min(50%, 240px) down,
 * so they stay on screen when the columns are taller than the window. */
.hb-col-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 6px);
  width: 12px;
  cursor: col-resize;
  background:
    radial-gradient(circle at 50% calc(min(50%, 240px) - 7px), var(--fg-3, #94a3b8) 1.6px, transparent 2.1px),
    radial-gradient(circle at 50% min(50%, 240px), var(--fg-3, #94a3b8) 1.6px, transparent 2.1px),
    radial-gradient(circle at 50% calc(min(50%, 240px) + 7px), var(--fg-3, #94a3b8) 1.6px, transparent 2.1px),
    linear-gradient(to right, transparent 5.5px, var(--border-2, #3a4663) 5.5px,
                    var(--border-2, #3a4663) 6.5px, transparent 6.5px);
  opacity: 0.9;
}
.hb-col-resizer::after {           /* the visible line, only on hover/focus/drag */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  border-radius: 2px;
  background: var(--accent-500, #f59e0b);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.hb-col-resizer:hover::after,
.hb-col-resizer:focus-visible::after,
.hb-col-resizer[data-hb-active]::after {
  opacity: 0.85;
}
html.hb-col-resizing,
html.hb-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
