/* Hike's column, strip.js: what lives outside its shadow DOM.
 *
 * Each product reads two variables to move its own fixed parts and leave the column room:
 *   --hike-strip      the column's width on a desktop, 0 on a phone
 *   --hike-strip-top  the height of the bar on top on a phone, 0 on a desktop
 * They change by media query and not by script, so the first paint already has the room.
 */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,500..700&family=Instrument+Sans:wght@400..600&display=swap");

:root {
  --hike-strip: 56px;
  --hike-strip-top: 0px;
}

@media (max-width: 767.98px) {
  :root {
    --hike-strip: 0px;
    --hike-strip-top: 44px;
  }
}

/* <hike-strip account> sits in the page's own header, where the page puts it. */
hike-strip:not([account]) {
  position: fixed;
  z-index: 35;
  inset: 0 auto 0 0;
  display: block;
  width: var(--hike-strip);
}

@media (max-width: 767.98px) {
  hike-strip:not([account]) {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--hike-strip-top);
  }
}

/* Printed, a report or a PDF, the column does not show and keeps no room. */
@media print {
  :root {
    --hike-strip: 0px;
    --hike-strip-top: 0px;
  }
  hike-strip {
    display: none !important;
  }
}
