/* App Tabs 1.1.5: on Home and Browse, collapse the Elementor 212 logo after a
   short look at ≤767px so the deck can move up. Desktop is unchanged. Only
   applies when <html> has .wtf-logo-hide-page (set by logo-hide.js on those
   two pages). The hamburger stays in a slim top bar, aligned right. */

@media (max-width: 767px) {
  html.wtf-logo-hide-page .elementor-212 {
    position: relative;
    z-index: 20;
  }

  /* Room for the 300×95 logo (scaled) while it is on screen. */
  html.wtf-logo-hide-page .elementor-212 .elementor-widget-theme-site-logo {
    overflow: hidden;
    max-height: 20rem;
    opacity: 1;
    transition: opacity .4s ease, max-height .4s ease, margin .4s ease, padding .4s ease, visibility .4s ease;
  }

  html.wtf-logo-hide-page .elementor-212 .elementor-top-section,
  html.wtf-logo-hide-page .elementor-212 .elementor-container,
  html.wtf-logo-hide-page .elementor-212 .elementor-top-column {
    transition: min-height .4s ease, padding .4s ease, margin .4s ease, max-width .4s ease, flex-basis .4s ease;
  }

  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-widget-theme-site-logo {
    max-height: 0 !important;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    visibility: hidden;
  }

  /* Slim bar: logo column shrinks away, menu column keeps the hamburger on the right. */
  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-top-section,
  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-container,
  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-top-column {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px !important;
  }

  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-top-column:first-child {
    width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
  }

  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-top-column:last-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  html.wtf-logo-hide-page.wtf-logo-collapsed .elementor-212 .elementor-menu-toggle {
    margin-left: auto;
    margin-right: 4px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  html.wtf-logo-hide-page.wtf-logo-instant .elementor-212 .elementor-widget-theme-site-logo,
  html.wtf-logo-hide-page.wtf-logo-instant .elementor-212 .elementor-top-section,
  html.wtf-logo-hide-page.wtf-logo-instant .elementor-212 .elementor-container,
  html.wtf-logo-hide-page.wtf-logo-instant .elementor-212 .elementor-top-column {
    transition: none !important;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  html.wtf-logo-hide-page .elementor-212 .elementor-widget-theme-site-logo,
  html.wtf-logo-hide-page .elementor-212 .elementor-top-section,
  html.wtf-logo-hide-page .elementor-212 .elementor-container,
  html.wtf-logo-hide-page .elementor-212 .elementor-top-column {
    transition: none !important;
  }
}
