/* Keep the full sticky header on upward scroll; reduce its desktop height on downward scroll. */
@media (min-width: 768px) {
  .td-header-desktop-wrap .tdc-row-is-sticky {
    transition: box-shadow 320ms ease-in-out;
  }

  .td-header-desktop-wrap .tdc-row-is-sticky .tdb-logo-img {
    max-height: 150px;
    transition: max-width 320ms ease-in-out, max-height 320ms ease-in-out;
  }

  .td-header-desktop-wrap .tdc-row-is-sticky .tdb-menu > li > a {
    transition: line-height 320ms ease-in-out, padding-left 320ms ease-in-out, padding-right 320ms ease-in-out;
  }

  body.eub-header-compact .td-header-desktop-wrap .tdc-row-is-sticky {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  }

  body.eub-header-compact .td-header-desktop-wrap .tdc-row-is-sticky .tdb-logo-img {
    max-width: 76px !important;
    max-height: 76px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  body.eub-header-compact .td-header-desktop-wrap .tdc-row-is-sticky .eub-header-controls {
    display: flex;
    align-items: center;
  }

  body.eub-header-compact .td-header-desktop-wrap .tdc-row-is-sticky .tdb_header_menu {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.eub-header-compact .td-header-desktop-wrap .tdc-row-is-sticky .tdb_header_search {
    flex: 0 0 48px;
    margin: 0 !important;
  }

  body.eub-header-compact .td-header-desktop-wrap .tdc-row-is-sticky .tdb-menu > li > a {
    line-height: 34px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-header-desktop-wrap .tdc-row-is-sticky,
  .td-header-desktop-wrap .tdc-row-is-sticky .tdb-logo-img,
  .td-header-desktop-wrap .tdc-row-is-sticky .tdb-menu > li > a {
    transition: none !important;
  }
}
