/* Homepage refinements from the current mobile and desktop review. */

/* Keep the two-line wordmark exactly as tall as its symbol at each header size. */
.mas-brand > .mas-brand-type { height: 48px; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 820px) {
  .mas-brand > .mas-brand-type { height: 40px; }
}
@media (max-width: 360px) {
  body.mas-industrial-home .nav .mas-brand > .mas-brand-type { height: 35px; }
}

/* The mobile menu opens from the same right edge as its hamburger button. */
@media (max-width: 768px) {
  body.mas-industrial-home .nav-links {
    top: calc(100% - 1px);
    right: 16px;
    left: auto;
    width: min(390px, calc(100vw - 36px));
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    align-content: start;
    justify-items: stretch;
  }
  body.mas-industrial-home .nav-links > a,
  body.mas-industrial-home .nav-links > button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}
@media (max-width: 360px) {
  body.mas-industrial-home .nav-links { right: 16px; width: calc(100vw - 24px); }
}

/* Desktop keeps the same interactive card wheel as smaller screens. */
@media (min-width: 1101px) {
  body.mas-industrial-home .im-showroom { justify-content: center; padding-top: 0; }
  body.mas-industrial-home .im-showroom-heading { display: none; }
  body.mas-industrial-home .im-stage { flex: 0 0 auto; height: clamp(430px, 52vh, 560px); }
  body.mas-industrial-home .im-card { width: 288px; height: 448px; padding: 12px; }
  body.mas-industrial-home .im-card .im-part { flex-basis: 214px; }
  body.mas-industrial-home .im-stage-controls { margin-top: 20px; }
  body.mas-industrial-home .im-viewer-hint { margin-top: 3px; }
}

/* Scroll down to clear the content; scroll up to bring SmallQ back. */
body.mas-industrial-home.has-q-widget .q-widget { transition: opacity .28s ease, visibility 0s linear; }
body.mas-industrial-home.has-q-widget .q-widget.q-launcher-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
@media (prefers-reduced-motion: reduce) {
  body.mas-industrial-home.has-q-widget .q-widget,
  body.mas-industrial-home.has-q-widget .q-widget.q-launcher-hidden { transition: none; }
}
