/* UGCHost Global Language V6 — header alignment + translation chrome cleanup.
   Presentation/safety only. V4 remains translation source of truth; V5 remains
   the searchable language menu. */

/* Never let provider UI leak into the visible page/footer. */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-te-menu-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-yAWNEb-L7lbkb,
body>iframe.skiptranslate,
body>iframe[class*="VIpgJd"],
body>.skiptranslate:not(#ugcGlobalTranslateEngineV4){
  position:fixed!important;
  left:-99999px!important;
  top:-99999px!important;
  width:1px!important;
  height:1px!important;
  max-width:1px!important;
  max-height:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  z-index:-2147483648!important;
}
.goog-text-highlight{
  background:inherit!important;
  box-shadow:none!important;
}
html,body{top:0!important}

/* Desktop language control becomes a true member of the menu row rather than
   a separate capsule. Keep the flag from the current language as the icon. */
@media(min-width:981px){
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5{
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    margin:0!important;
    gap:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5:hover,
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5.is-open-v5{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5>.ugh-language-icon-v4,
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5>.ugh-language-caption-v4{
    display:none!important;
  }
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5>.ugh-language-trigger-v5{
    width:auto!important;
    min-width:0!important;
    max-width:164px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 2px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#e9eef4!important;
    font:500 13px/1 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    letter-spacing:.001em!important;
    gap:5px!important;
  }
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5>.ugh-language-trigger-v5:hover,
  #ugcGlobalHeader .ugh-language-global-v4.ugh-language-menu-host-v5>.ugh-language-trigger-v5:focus-visible{
    color:#f2cc70!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #ugcGlobalHeader .ugh-language-current-v5{
    display:block!important;
    max-width:138px!important;
    line-height:38px!important;
    color:inherit!important;
  }
  #ugcGlobalHeader .ugh-language-chevron-v5{
    margin-left:1px!important;
    color:#c8ad70!important;
    font-size:9px!important;
    line-height:1!important;
    transform:none!important;
  }
  #ugcGlobalHeader .is-open-v5>.ugh-language-trigger-v5 .ugh-language-chevron-v5{
    color:#f2cc70!important;
    transform:rotate(180deg)!important;
  }
  #ugcGlobalHeader .ugh-language-panel-v5{
    top:calc(100% + 8px)!important;
  }
}

/* Exact homepage single-row typography/alignment. */
@media(min-width:1281px){
  body.ugc-home-light-v30 #ugcGlobalHeader.ugh-single-row-v37.ugh-smart-v38 .ugh-language-trigger-v5{
    font-size:13px!important;
    font-weight:500!important;
  }
}
@media(min-width:1041px) and (max-width:1280px){
  body.ugc-home-light-v30 #ugcGlobalHeader.ugh-single-row-v37.ugh-smart-v38 .ugh-language-trigger-v5{
    font-size:12.5px!important;
  }
  body.ugc-home-light-v30 #ugcGlobalHeader.ugh-single-row-v37.ugh-smart-v38 .ugh-language-current-v5{
    max-width:118px!important;
  }
}

/* Mobile/tablet: retain the premium panel, but make the control compact and
   consistent with the other menu actions instead of looking like a second card. */
@media(max-width:980px){
  #ugcGlobalHeader .ugh-language-mobile-v4.ugh-language-menu-host-v5{
    margin:6px 0 10px!important;
    padding:8px!important;
    border:1px solid rgba(230,180,42,.20)!important;
    border-radius:11px!important;
    background:rgba(255,255,255,.025)!important;
    box-shadow:none!important;
  }
  #ugcGlobalHeader .ugh-language-mobile-v4.ugh-language-menu-host-v5>.ugh-language-trigger-v5{
    height:40px!important;
    min-height:40px!important;
    border-color:rgba(230,180,42,.18)!important;
    background:rgba(255,255,255,.025)!important;
    color:#eef3f8!important;
    font-size:12.5px!important;
    font-weight:500!important;
  }
  #ugcGlobalHeader .ugh-language-mobile-v4.ugh-language-menu-host-v5>.ugh-language-trigger-v5:focus-visible{
    border-color:rgba(230,180,42,.48)!important;
    box-shadow:0 0 0 3px rgba(230,180,42,.06)!important;
  }
}

@media(prefers-reduced-motion:reduce){
  #ugcGlobalHeader .ugh-language-chevron-v5{transition:none!important}
}
