/* RC9-B2.1 — launch readiness: visual-only corrections, no commercial logic. */
/* Authentication form must visually cover fixed header and navigation; full account view keeps its own scroll/nav. */
body.g9-portal #authModal.open:not(.g-account-view){
  z-index:9999!important; position:fixed!important; inset:0!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  padding:clamp(12px,3vw,20px)!important;
  background:rgba(4,17,13,.82)!important;
}
body.g9-portal #authModal.open:not(.g-account-view) .auth-box{
  position:relative!important; z-index:1!important; width:min(100%,520px)!important;
  max-height:calc(100dvh - 28px)!important; overflow-y:auto!important;
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  border-radius:22px!important; box-sizing:border-box;
}
/* Keep the category placeholder invisible as soon as a genuine image exists, even while it loads. */
body.g9-portal #homeNewsImage:has(> img) .g281-cover-category{display:none!important}
body.g9-portal #homeNewsImage:has(> img) .g-home-news-fallback{display:none!important}
body.g9-portal #homeNewsImage>img{display:block;position:relative;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:inherit}
body.g9-portal #homeNewsImage{overflow:hidden;min-width:0}
/* Single publishing call to action in Mi Gualamba: primary top action remains, duplicated lower action hidden. */
body.g9-portal #userPublicationList #openUserLotBtn{display:none!important}
/* Mobile tap and layout refinements. */
@media(max-width:760px){
  body.g9-portal #authModal.open:not(.g-account-view){padding:10px!important}
  body.g9-portal #authModal.open:not(.g-account-view) .auth-box{max-height:calc(100dvh - 20px)!important}
  body.g9-portal #gExploreView .g-specialized-card-open{min-height:150px}
  body.g9-portal #userPublicationList .g-account-publications-head{gap:7px}
}
@media(prefers-reduced-motion:reduce){body.g9-portal #authModal.open:not(.g-account-view) .auth-box{scroll-behavior:auto!important}}
