/* R193 — cabeçalho Desktop: logo à esquerda, busca no centro e menu à direita.
   Estilos estritamente Desktop; não altera bundles, Mobile/PWA, Admin nem navegação. */
@media (min-width:821px) {
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav {
    align-items:center!important;
    column-gap:clamp(10px,1vw,18px)!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .brand {
    order:0!important;
    min-width:0!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch,
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch.r93-search-ready {
    order:1!important;
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    flex:1 1 250px!important;
    width:100%!important;
    min-width:0!important;
    max-width:450px!important;
    margin:0 auto!important;
    z-index:6!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #ggEnhancedNav {
    order:3!important;
    flex:0 0 auto!important;
    min-width:0!important;
    width:auto!important;
    margin-left:auto!important;
    justify-content:flex-end!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #r72DesktopShare { order:2!important; }
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch form,
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch form #r86DesktopSearchInput {
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}
/* Desktop amplo: busca no centro geométrico e menu alinhado ao extremo direito. */
@media (min-width:1600px) {
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,450px) minmax(0,1fr)!important;
    grid-template-rows:auto!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .brand {
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch,
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch.r93-search-ready {
    grid-column:2!important;
    grid-row:1!important;
    justify-self:stretch!important;
    width:100%!important;
    margin:0!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #ggEnhancedNav {
    grid-column:3!important;
    grid-row:1!important;
    justify-self:end!important;
    margin:0!important;
  }
  /* Na ficha o botão Compartilhar participa do fluxo e não cobre os ícones. */
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav:has(#r72DesktopShare:not([hidden])) {
    display:flex!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav:has(#r72DesktopShare:not([hidden])) > .brand,
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav:has(#r72DesktopShare:not([hidden])) > #r86DesktopSearch,
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav:has(#r72DesktopShare:not([hidden])) > #ggEnhancedNav {
    grid-column:auto!important;
    grid-row:auto!important;
  }
}
@media (min-width:821px) and (max-width:1599px) {
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav {
    display:flex!important;
    flex-wrap:nowrap!important;
  }
}
@media (min-width:821px) and (max-width:1199px) {
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch,
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch.r93-search-ready {
    flex:1 1 180px!important;
    width:auto!important;
    max-width:330px!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #ggEnhancedNav { gap:5px!important; }
}
/* Desktop compacto: evita reduzir a busca a um campo ilegível. */
@media (min-width:821px) and (max-width:1099px) {
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .wrap.nav {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    row-gap:4px!important;
    padding-bottom:8px!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode)>.top .brand {
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #ggEnhancedNav {
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch,
  html.gg-profile-desktop body:not(.r22-admin-mode) #r86DesktopSearch.r93-search-ready {
    grid-column:1/-1!important;
    grid-row:2!important;
    justify-self:center!important;
    flex:none!important;
    width:min(450px,100%)!important;
    max-width:450px!important;
    margin:0!important;
  }
  html.gg-profile-desktop body:not(.r22-admin-mode) #r72DesktopShare:not([hidden]) {
    grid-column:2!important;
    grid-row:2!important;
    justify-self:end!important;
    align-self:center!important;
  }
}
