/* Team TararBari V16.3 */

/* Clean footer layout. Social-icon size rules are intentionally untouched. */
.footer .footer-grid{
 display:grid!important;
 grid-template-columns:minmax(190px,.65fr) minmax(250px,.8fr) minmax(620px,2fr)!important;
 align-items:start!important;gap:clamp(24px,3vw,52px)!important;
 padding-top:52px!important;padding-bottom:30px!important
}
.footer .footer-grid>div>strong{display:block!important;margin-bottom:14px!important}
.footer .footer-grid>div:first-child p{max-width:370px!important;line-height:1.7!important}
.footer .footer-explore-links{
 display:grid!important;grid-template-columns:repeat(var(--tb-footer-explore-cols,2),minmax(0,1fr))!important;
 gap:5px 26px!important;margin:0!important;line-height:1.4!important
}
.footer .footer-explore-links br{display:none!important}
.footer .footer-explore-links a{
 display:block!important;width:max-content!important;max-width:100%!important;padding:5px 0!important;
 position:relative!important;transition:color .18s ease,transform .18s ease!important
}
.footer .footer-explore-links a:after{
 content:""!important;position:absolute!important;left:0!important;right:100%!important;bottom:1px!important;
 height:1px!important;background:currentColor!important;transition:right .18s ease!important
}
.footer .footer-explore-links a:hover{color:#55e7f2!important;transform:translateX(3px)!important}
.footer .footer-explore-links a:hover:after{right:0!important}
.footer .footer-contact-lines{
 display:grid!important;
 grid-template-columns:max-content max-content minmax(260px,1fr)!important;
 width:100%!important;
 justify-content:start!important;
 align-items:start!important;
 column-gap:clamp(20px,2vw,38px)!important;
 row-gap:10px!important;
 margin:0 0 12px!important
}
.footer .footer-contact-lines p{
 margin:0!important;
 padding:0!important;
 min-width:0!important;
 white-space:nowrap!important
}
.footer .footer-contact-lines p strong{display:block!important;margin-bottom:5px!important}
.footer .footer-contact-lines p br{display:none!important}
.footer .footer-contact-lines a{
 white-space:nowrap!important;
 overflow-wrap:normal!important;
 word-break:normal!important
}
.footer .footer-contact-lines .footer-location{
 white-space:normal!important;
 min-width:0!important;
 max-width:100%!important
}
.footer .footer-location-line{
 display:block!important;
 white-space:normal!important;
 overflow-wrap:break-word!important;
 word-break:normal!important;
 line-height:1.45!important
}
.footer .brand-social-icons{justify-content:flex-start!important;margin-top:16px!important}
.footer .copyright{
 margin-top:0!important;padding-top:22px!important;padding-bottom:22px!important;
 border-top:1px solid rgba(148,210,230,.12)!important
}
@media(max-width:1150px){
 .footer .footer-grid{grid-template-columns:1fr 1fr!important}
 .footer .footer-grid>div:last-child{grid-column:1/-1!important}
}
@media(max-width:700px){
 .footer .footer-grid{grid-template-columns:1fr!important;gap:28px!important;padding-top:36px!important}
 .footer .footer-grid>div:last-child{grid-column:auto!important}

 /* V18.3: clean two-column Explore menu on phones */
 .footer .footer-explore-links{
   grid-template-columns:max-content max-content!important;
   justify-content:start!important;
   align-items:start!important;
   column-gap:clamp(30px,10vw,54px)!important;
   row-gap:7px!important;
   margin-top:8px!important
 }
 .footer .footer-explore-links a{
   display:block!important;
   width:max-content!important;
   max-width:none!important;
   white-space:nowrap!important;
   margin:0!important;
   padding:4px 0!important;
   border:0!important;
   border-radius:0!important;
   background:transparent!important;
   box-shadow:none!important;
   transform:none!important;
   line-height:1.35!important
 }
 .footer .footer-explore-links a::before{
   display:none!important;
   width:0!important;
   margin:0!important
 }
 .footer .footer-explore-links a:hover,
 .footer .footer-explore-links a:focus-visible,
 .footer .footer-explore-links a:active{
   background:transparent!important;
   border:0!important;
   box-shadow:none!important;
   transform:none!important
 }
 .footer .footer-explore-links a.tb-footer-active{
   color:var(--primary)!important;
   font-weight:750!important;
   background:transparent!important;
   border:0!important;
   box-shadow:none!important
 }
 .footer .footer-explore-links a.tb-footer-active::before{
   display:none!important;
   width:0!important;
   margin:0!important
 }

 .footer .footer-contact-lines{grid-template-columns:1fr!important;gap:10px!important}
 .footer .footer-contact-lines p{white-space:normal!important}
 .footer .footer-contact-lines a{white-space:normal!important;overflow-wrap:anywhere!important}
 .footer .copyright{text-align:center!important}
}

/* Extra-narrow phones: use one column instead of squeezing links. */
@media(max-width:350px){
 .footer .footer-explore-links{
   grid-template-columns:1fr!important;
   row-gap:4px!important
 }
 .footer .footer-explore-links a{
   white-space:normal!important
 }
}

/* V16 visual variables from Admin. */
body.theme-uiu-rover-reference-v16{
 --u16-orange:var(--v16-uiu-accent,#f05a28)!important
}
body.theme-uiu-rover-reference-v16 .uiu16-wrap{
 width:min(var(--v16-uiu-width,1420px),calc(100% - 44px))!important
}
body.theme-uiu-rover-reference-v16 .uiu16-hero{
 min-height:var(--v16-uiu-hero-min,760px)!important
}
body.theme-uiu-rover-reference-v16 .uiu16-ranking,
body.theme-uiu-rover-reference-v16 .uiu16-journey,
body.theme-uiu-rover-reference-v16 .uiu16-events,
body.theme-uiu-rover-reference-v16 .uiu16-media,
body.theme-uiu-rover-reference-v16 .uiu16-competitions,
body.theme-uiu-rover-reference-v16 .uiu16-vision{
 padding-top:var(--v16-uiu-spacing,105px)!important;padding-bottom:var(--v16-uiu-spacing,105px)!important
}
body.theme-tararbari-old-exact-v16 .old16-hero{
 min-height:var(--v16-old-hero-min,760px)!important;border-radius:var(--v16-old-radius,30px)!important
}
body.theme-tararbari-old-exact-v16 .old16-btn{
 background:linear-gradient(90deg,var(--v16-old-blue,#2563eb),#0891b2)!important
}
body.theme-tararbari-old-exact-v16 .old16-hero-overlay{
 background:linear-gradient(90deg,color-mix(in srgb,var(--v16-old-blue,#2563eb) 45%,transparent),color-mix(in srgb,var(--v16-old-purple,#a855f7) 26%,transparent),color-mix(in srgb,var(--v16-old-orange,#f97316) 18%,transparent))!important
}
.tb-v16-no-animation *{animation:none!important;transition-duration:.01ms!important}

/* Falling and shooting stars in V16 Heroes. */
.uiu16-hero,.old16-hero{isolation:isolate!important}
.tb16-starfield{position:absolute!important;inset:0!important;z-index:3!important;overflow:hidden!important;pointer-events:none!important}
.uiu16-hero-inner,.old16-hero-inner,.old16-hero-stats{position:relative!important;z-index:8!important}
.tb16-fall-star{
 position:absolute!important;top:-18px!important;width:2px!important;height:2px!important;border-radius:50%!important;
 background:#fff!important;box-shadow:0 0 8px rgba(200,245,255,.95)!important;
 animation:tb16Fall var(--dur,8s) linear infinite!important;animation-delay:var(--delay,0s)!important
}
.tb16-fall-star:after{
 content:""!important;position:absolute!important;left:50%!important;top:-15px!important;width:1px!important;height:16px!important;
 transform:translateX(-50%)!important;background:linear-gradient(to top,rgba(255,255,255,.58),transparent)!important
}
.tb16-shooting-star{
 position:absolute!important;width:4px!important;height:4px!important;border-radius:50%!important;background:#fff!important;
 box-shadow:0 0 10px #fff,0 0 25px rgba(71,214,255,.9)!important;opacity:0!important;
 animation:tb16Shoot var(--dur,8s) ease-in infinite!important;animation-delay:var(--delay,0s)!important
}
.tb16-shooting-star:after{
 content:""!important;position:absolute!important;right:2px!important;top:50%!important;width:170px!important;height:2px!important;
 transform:translateY(-50%)!important;background:linear-gradient(90deg,transparent,rgba(85,220,255,.2),#fff)!important;
 filter:drop-shadow(0 0 4px rgba(70,210,255,.85))!important
}
@keyframes tb16Fall{
 0%{transform:translate3d(0,-4vh,0);opacity:0}10%{opacity:.85}88%{opacity:.65}
 100%{transform:translate3d(var(--drift,28px),112vh,0);opacity:0}
}
@keyframes tb16Shoot{
 0%,64%{opacity:0;transform:translate3d(0,0,0) rotate(24deg)}
 66%{opacity:1}82%{opacity:.92}
 100%{opacity:0;transform:translate3d(78vw,48vh,0) rotate(24deg)}
}

/* Intro: never allow the normal site menu to overlap the Mars/Team logo. */
html.intro-will-play body>.nav,
html.intro-will-play body .nav{
 visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
.tb-intro.is-active{z-index:2147483000!important}
.tb-intro-target{z-index:9!important}
.tb-intro-skip,.tb-intro-sound{z-index:30!important}
@media(max-width:700px){
 .tb-intro-target{right:2%!important;top:40%!important;width:clamp(96px,25vw,132px)!important}
 .tb-intro-skip{right:10px!important;top:max(10px,env(safe-area-inset-top))!important}
 .tb-intro-sound{left:10px!important;top:max(10px,env(safe-area-inset-top))!important}
}
@media(prefers-reduced-motion:reduce){.tb16-starfield{display:none!important}}
