/* web/hud/panel_height.css
   The strip along the foot of a panel whose feed scrolls (web/hud/panel_height.js),
   dragged to make the panel taller or shorter. It lies over the body's bottom
   padding, so it adds no height. Its mark shows as the title's controls do, while
   the pointer is over the panel or keyboard focus is in it; held, hovered or
   focused, the mark and the panel's bottom edge take the accent. */
.dkgrip {
  position: relative; height: 10px; margin-top: -10px;
  cursor: row-resize; touch-action: none; outline: none;
}
.dkgrip::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
}
.dkgrip:hover::before, .dkgrip.drag::before, .dkgrip:focus-visible::before {
  background: var(--accent); opacity: .55;
}
.dkgrip::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 36px; height: 3px;
  margin-left: -18px; border-radius: 2px; background: var(--cell-edge);
  opacity: 0; transition: opacity .15s;
}
.dkpanel:hover .dkgrip::after, .dkpanel:has(:focus-visible) .dkgrip::after { opacity: 1; }
.dkgrip:hover::after, .dkgrip.drag::after, .dkgrip:focus-visible::after { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .dkgrip::after { transition: none; } }
.dkpanel.shut .dkgrip { display: none; }

/* A height the reader set holds, however little is in the feed. */
.dkfeed.sized { height: var(--feed-h); max-height: none; }

/* With touch controls nothing hovers, so the mark always shows, on a strip a
   finger can hold. */
:where(:root[data-controls="touch"]) .dkgrip { height: 24px; margin-top: -14px; }
:where(:root[data-controls="touch"]) .dkgrip::after { opacity: 1; }

/* A phone gives the panel its whole tab, so it has no strip and no height of its own. */
:root[data-phone] .dkgrip { display: none; }
:root[data-phone] .dkfeed.sized { height: auto; }
