/* THE KIT'S SPLIT (ui/Split.astro; Maayan, 2026-11-18: "left div is the main div, it's taking 50% of the screen - we can scroll
   there. right side can't be scrolled, it's also 50%. in the middle there's a handle where we can drag the seperator line ...
   both has a minimum width of 360px on desktop. on mobile ... right is top and left is bottom"): its start scrolls, its end
   never does, the handle between them (kit-split.js moves --g-split-at). A phone: one over the other, the end on top,
   scrolling with the page, never sticking (Maayan, 2026-11-19: "they are not sticky anymore in mobile"). Tokens only. */
.g-split { --g-split-at: 50%; display: flex; flex-direction: column; min-height: 0; }
.g-split__start { flex: 1 1 auto; min-height: 0; }
.g-split__end { order: -1; flex: 0 0 50%; overflow: hidden; }
.g-split__handle { display: none; }
@media (min-width: 900px) {
  .g-split { flex-direction: row; height: 100%; }
  .g-split__start { overflow-y: auto; flex: 0 0 clamp(var(--g-split-min), var(--g-split-at), calc(100% - var(--g-split-min) - var(--g-split-bar))); }
  .g-split__end { order: 0; flex: 1 1 0; min-width: var(--g-split-min); }
  .g-split__handle { display: block; position: relative; flex: 0 0 var(--g-split-bar); cursor: col-resize; touch-action: none; background: var(--g-bg); }
  /* its grip: a short bar in its middle */
  .g-split__handle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: var(--g-1); height: var(--g-7); border-radius: var(--g-1); background: var(--g-text-2); transform: translate(-50%, -50%); }
  .g-split__handle:is(:hover, :focus-visible), .g-split.is-dragging .g-split__handle { background: var(--g-accent); outline: none; }
  .g-split.is-dragging { cursor: col-resize; user-select: none; }
  .g-split--flip { flex-direction: row-reverse; }   /* the start on the far side: its width read from that edge (kit-split.js) */
}
