/* coat-fit.css: how big a coat is on a model. Shared by the Archives rail (coat.css) and the queue
   (avatar.css). Every coat has its own measurements (js/data/coats.js), every model her own
   (css/pages/archives.css for the Archives model, js/data/models.js for the queue).

   --px is the size one pixel of the coat's picture gets on screen, chosen per coat and per model:
   - by the shoulders: the coat's worn width lies over her shoulders;
   - by the length: the hem falls where it does on the photo of the coat worn.
   A flat product picture rarely has the proportions of the coat worn, so both cannot be exact:
   the coat takes the middle of the two, and is never smaller than what covers her shoulders. */
.try-on-coat,
.avatar-coat {
  --px-shoulders: calc(var(--shoulders) / var(--shoulder-width));
  --px-length: calc(var(--body) * var(--length, 0) / var(--drop, 1));
  --px: max(var(--px-shoulders), (var(--px-shoulders) + var(--px-length)) / 2);
  width: calc(var(--px) * 720);
}
