/*
 * Tormami universal homepage shell compatibility layer.
 *
 * The approved visual design comes directly from the same shared assets used by
 * the homepage:
 *   - tormami-global-market-header.css
 *   - tormami-global-footer.css
 *
 * This file must never redesign or resize those components. It only removes
 * legacy/native chrome and neutralizes internal-page rules that would alter the
 * approved homepage shell.
 */

/* Hide every older header implementation when the approved marketplace header is active. */
body.tormami-universal-home-shell-active .sb-header,
body.tormami-universal-home-shell-active .tormami-global-header,
body.tormami-universal-home-shell-active .ta-header,
body.tormami-global-market-header-active .sb-header,
body.tormami-global-market-header-active .tormami-global-header,
body.tormami-global-market-header-active .ta-header{
  display:none!important;
}

/* Old replica shell must never appear beside the real homepage components. */
body.tormami-universal-home-shell-active .tormami-universal-shell-header,
body.tormami-universal-home-shell-active .tormami-universal-shell-footer,
body.tormami-universal-home-shell-active .tm-shell-mobile-actions{
  display:none!important;
}

/*
 * Remove the generic internal-page hero completely.
 * Individual pages already own their correct title/breadcrumb/content treatment;
 * repeating a marketplace hero above them creates duplicate headings/actions.
 */
body.tormami-universal-home-shell-active .tormami-inner-hero,
body.tormami-global-market-header-active .tormami-inner-hero{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Remove every superseded footer/CTA layer. The approved global footer already
   contains the orange homepage CTA followed by the final dark marketplace footer. */
body.tormami-universal-home-shell-active .tormami-connected-cta,
body.tormami-universal-home-shell-active footer.footer:not(.tormami-global-footer),
body.tormami-universal-home-shell-active .footer-area:not(.tormami-global-footer),
body.tormami-universal-home-shell-active .footer-top:not(.tormami-global-footer),
body.tormami-universal-home-shell-active .footer-bottom:not(.tmf-bottom),
body.tormami-universal-home-shell-active .sb-footer:not(.tormami-global-footer),
body.tormami-universal-home-shell-active #footer:not(.tormami-global-footer),
body.tormami-universal-home-shell-active .ta-footer,
body.tormami-universal-home-shell-active footer.adt-footer-section,
body.tormami-universal-home-shell-active .adt-footer-section,
body.tormami-universal-home-shell-active .adt-copyright-box{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/*
 * Connected-page styles add 52–58px of navy padding above the global footer.
 * That makes the footer/CTA look larger than the homepage and creates a blue
 * stripe. These selectors deliberately outrank those internal-page rules.
 */
body.tormami-connected-final.tormami-universal-home-shell-active:not(.tormami-auth-page) .tormami-global-footer,
body.tormami-connected-final.tormami-universal-home-shell-active.tormami-auth-page .tormami-global-footer,
body.tormami-universal-home-shell-active .tormami-global-footer{
  padding-top:0!important;
  margin-top:0!important;
  border-top:0!important;
}

/*
 * Keep the approved homepage CTA visible. Do NOT set width, min-height,
 * padding, typography, radii or button dimensions here: those values must come
 * exclusively from tormami-global-footer.css, exactly as they do on homepage.
 */
body.tormami-universal-home-shell-active .tormami-global-footer .tmf-cta-wrap{
  display:block!important;
  height:auto!important;
  min-height:0!important;
}

/* Connected-page typography uses a broad footer-link rule. Restore only the
   shared homepage button font size; all other CTA geometry stays source-driven. */
body.tormami-connected-final.tormami-universal-home-shell-active .tormami-global-footer .tmf-btn{
  font-size:12px!important;
}

/*
 * Lock the exact homepage footer colour palette on every internal page.
 * Several connected-page styles target generic headings, links and spans and can
 * otherwise make the footer text too dark. These values intentionally mirror
 * tormami-global-footer.css exactly.
 */
body.tormami-universal-home-shell-active .tormami-global-footer{
  color:#c9d4e2!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-main{
  color:#c9d4e2!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-brand-col>p{
  color:#b8c6d6!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-col h3{
  color:#fff!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-col>a,
body.tormami-universal-home-shell-active .tormami-global-footer .tmf-contact>span{
  color:#aebccd!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-col>a:hover{
  color:#fff!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-trust span{
  color:#dce5ef!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-social{
  color:#f0f5fa!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-social:hover{
  color:#fff!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-contact>span b{
  color:#ff8a4b!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-contact-link{
  color:#ff9a62!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-contact-link:hover{
  color:#fff!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-bottom{
  color:#8292a7!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-bottom a{
  color:#9dacbd!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-bottom a:hover{
  color:#fff!important;
}

/* CTA text/button colours must also stay identical to the homepage. */
body.tormami-universal-home-shell-active .tormami-global-footer .tmf-cta span{
  color:#fff8f4!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-cta h2{
  color:#fff!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-cta p{
  color:rgba(255,255,255,.88)!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-btn-light{
  color:#e6500b!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-btn-light:hover{
  color:#d74500!important;
}

body.tormami-universal-home-shell-active .tormami-global-footer .tmf-btn-orange{
  color:#fff!important;
}

/* Keep the shared homepage header above page builders, sticky sidebars and listing content. */
body.tormami-universal-home-shell-active .tormami-global-market-header{
  z-index:99990!important;
}
