/* The listing's and the product's sheets on the design system's Sheet (UI 1.0 P3; Member 1's ruling, 9 Nov 2026). Not frozen.
   The old hand-built sheets took three looks from the frozen stylesheets' `.sc-sheet` rules, which the library's markup no longer
   meets; these keep the first two (the product's enquiry body spacing, the third, is set inline with tokens), and the last
   gives the library's drag handle a 44 px grab area. Tokens only. */

/* Replaces listing.css `.ls-sheet .sc-sheet__panel { height: 92dvh }` on a phone: the filter sheet keeps one height while its
   counts and sections change, instead of growing and shrinking under the thumb. From 40rem it is the library's side panel. */
@media (width < 40rem) {
  .ls-sheet .ui-sheet__panel {
    height: 92dvh;
  }
}

/* The old sort sheet had no group label of its own; its radios' legend repeats the sheet's title ("Sort by") directly under it,
   so it is kept for screen readers and hidden from view (the design system's own visually-hidden rule). */
.ls-sortsheet .ui-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The handle a thumb drags a sheet closed by (Member 1's ruling, 9 Nov 2026): its grab area is the 44 px a finger needs,
   measured at 34 px by sheet-shots.mjs. The bar keeps its size; only the strip around it grows, its own padding traded for
   the touch floor so the bar stays centred. */
.ui-sheet .ui-sheet__grab {
  min-height: var(--ui-touch-target);
  padding-block: 0;
  align-items: center;
}
