/* TG Travel v0.16.45 — ONLY the empty-ad Header between 650 and 980px.
   The legacy tablet Header assigned both real children to grid row 2,
   which some mobile browsers retain as a blank row even after ad removal.
   Use a real single flex row rather than attempting to collapse grid tracks.
   New/active independently managed Header ads are excluded. */
@media screen and (min-width:650px) and (max-width:980px) {
  body #tg-global-header .tg-brand-row.tg-no-center-ads.tg-no-mobile-center-ads {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    box-sizing:border-box!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    min-height:0!important;
    height:auto!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
    row-gap:0!important;
    column-gap:12px!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  body #tg-global-header .tg-brand-row.tg-no-center-ads.tg-no-mobile-center-ads > .tg-brand {
    display:flex!important;
    flex:0 1 auto!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:center!important;
    justify-self:start!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
  }
  body #tg-global-header .tg-brand-row.tg-no-center-ads.tg-no-mobile-center-ads > .tg-header-tools {
    display:flex!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:center!important;
    justify-self:end!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    gap:8px!important;
  }
  /* Keep the existing search and hamburger sizes/controls intact. */
  body #tg-global-header .tg-brand-row.tg-no-center-ads.tg-no-mobile-center-ads > .tg-header-tools > form#tg-site-search.tg-header-search-global {
    flex:1 1 auto!important;
    width:min(100%,var(--tg-mh-tablet-search-max,380px))!important;
    max-width:var(--tg-mh-tablet-search-max,380px)!important;
    min-width:0!important;
    margin:0!important;
  }
  body #tg-global-header .tg-brand-row.tg-no-center-ads.tg-no-mobile-center-ads > .tg-header-tools > #tg-mobile-menu-toggle {
    flex:0 0 var(--tg-mh-menu-size,40px)!important;
    margin:0!important;
  }
}
