/* =====================================================================
   ears.css: the side ears (What, Where).
   - they travel with their panel: same movement, no separate press effect
   - you can slide them up and down (ears.js sets --ear-l and --ear-r)
   - on the phone, What keeps its ear while open, on a thin strip at the right
   ===================================================================== */

/* slid up or down by the visitor; "translate" adds to any other movement */
.hdl-l {
  translate: 0 var(--ear-l, 0px);
}
.wtab {
  translate: 0 var(--ear-r, 0px);
}
.hdl-l.ear-moving,
.wtab.ear-moving {
  transition: none !important;
  cursor: grabbing;
  box-shadow: 0 10px 24px -8px rgba(46, 58, 67, 0.45) !important;
}

/* one piece with the panel: no shrink on press, no nudge while travelling */
.hdl-l:active,
.wtab:active {
  transform: none;
}
.app .wtab:active {
  scale: 1;
}

/* ---- phone ---- */
@container (max-width:899px) {
  /* What leaves a 34 px strip on the right, where its ear sits while it is open */
  .app.l-open .pl {
    width: calc(100% - 34px);
  }
  .app.l-open .hdl-l {
    opacity: 1 !important;
    pointer-events: auto !important;
    left: calc(100% - 35px);
    width: 34px;
    top: 38%;
    bottom: auto;
    margin-top: 0;
    min-height: 96px;
    padding: 8px 2px;
    border-radius: 0 17px 17px 0;
  }
  .app.l-open .hdl-l span {
    display: none;
  }
}
