/* #1993 (shell): dv-rsplit, the one resizable side panel (dv_split.js; why not .dv-split: see its header). Moved here from deals/deal_header.css (WO-1894)
   and assets/asset_header.css (WO-1941), which held the same rules under dh- and ah- prefixes. Brand colors only
   (D-283) through the app's tokens.
   The page's record element is the size container: it names `dvrsplit` beside its own name
   (`container: dh dvrsplit / inline-size`), and at 760 px or narrower the panel stacks under the main column with no grip.
   The page keeps its own spacing (the body's top margin, the gaps inside the main column and the panel). */

/* ---- body: main | grip | panel ---- */
.dv-rsplit { --dv-rsplit-w: 340px; display: grid; grid-template-columns: minmax(0, 1fr) 32px var(--dv-rsplit-w); align-items: start; }
.dv-rsplit[data-panel="closed"] { grid-template-columns: minmax(0, 1fr) 32px 14px; }
.dv-rsplit[data-panel="closed"] > .dv-rsplit__side { display: none; }
.dv-rsplit__main { min-width: 0; }
.dv-rsplit__side { min-width: 0; padding: var(--dv-s1) 0 var(--dv-s6) var(--dv-s2); overflow-x: hidden; }

/* the grip: a 32 px bar with a pull handle; orange while dragging */
.dv-rsplit__grip { position: relative; align-self: stretch; display: flex; align-items: flex-start; justify-content: center; width: 32px;
  min-height: 240px; margin: 0; padding: 0; border: 0; background: transparent; cursor: col-resize; touch-action: none; color: var(--dv-accent); }
.dv-rsplit__line { position: absolute; top: 0; bottom: 0; left: 15px; width: 2px; background: var(--dv-line-strong); }
.dv-rsplit__pill { position: sticky; top: 30vh; margin-top: 120px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; width: 28px; height: 112px; border-radius: 14px; border: 2px solid var(--dv-accent);
  background: var(--dv-surface-2); }
.dv-rsplit__dot { width: 4px; height: 4px; border-radius: 2px; background: var(--dv-accent); }
.dv-rsplit__chev { width: 14px; height: 14px; fill: none; stroke: var(--dv-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv-rsplit__grip:hover .dv-rsplit__line, .dv-rsplit__grip:focus-visible .dv-rsplit__line { background: var(--dv-accent); }
.dv-rsplit.is-dragging { user-select: none; cursor: col-resize; }
.dv-rsplit.is-dragging .dv-rsplit__line { background: var(--dv-primary); }
.dv-rsplit.is-dragging .dv-rsplit__pill { background: var(--dv-primary); border-color: var(--dv-primary); }
.dv-rsplit.is-dragging .dv-rsplit__dot { background: var(--dv-on-primary); }
.dv-rsplit.is-dragging .dv-rsplit__chev { stroke: var(--dv-on-primary); }
.dv-rsplit.is-dragging > .dv-rsplit__main { pointer-events: none; }

/* the Hide / Show button: "Hide panel" when wide, "Hide details" when stacked */
.dv-rsplit-toggle { gap: 8px; }
.dv-rsplit-toggle__ico { width: 16px; height: 16px; fill: none; stroke: var(--dv-accent); stroke-width: 1.5; }
[data-dv-split-toggle-label-narrow] { display: none; }

/* ---- narrow (phone): the main column, then the panel's sections stacked; no resize bar ---- */
@container dvrsplit (max-width: 760px) {
  .dv-rsplit, .dv-rsplit[data-panel="closed"] { display: block; }
  .dv-rsplit__grip { display: none; }
  .dv-rsplit__side { padding: var(--dv-s4) 0 var(--dv-s6); }
  [data-dv-split-toggle-label] { display: none; }
  [data-dv-split-toggle-label-narrow] { display: inline; }
}
