/* 99Sqyd v1.3.130 — Deployment Sprint 2 visual/mobile hardening.
   Small, targeted safety layer only. Broad historical design rules remain in
   their original files until the QA plugin migration and final theme cleanup. */

:root{
  --sqyd-mobile-pad: clamp(16px, 4.5vw, 28px);
}

/* Keep mobile navigation above Elementor/RealHomes hero stacking contexts. */
@media (max-width: 1024px){
  body .sqyd-hd,
  body .sqyd-elementor-site-header,
  body .site-header,
  body header{
    z-index: 2147483000 !important;
  }
  body .sqyd-hd__backdrop,
  body .sqyd-hd__drawer{
    z-index: 2147483600 !important;
  }
  body .sqyd-hd__drawer{
    max-width: 100vw !important;
    overscroll-behavior: contain;
  }
}

@media (max-width: 767px){
  body .sqyd-hd__burger,
  body .sqyd-hd__hamb,
  body [data-sqyd-menu-toggle]{
    min-width: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body .sqyd-hd__drawer,
  body .sqyd-mobile-drawer,
  body .sqyd-member-mobile-drawer{
    width: 100vw !important;
    padding-left: max(var(--sqyd-mobile-pad), env(safe-area-inset-left)) !important;
    padding-right: max(var(--sqyd-mobile-pad), env(safe-area-inset-right)) !important;
  }

  body .sqyd-card,
  body .sqyd-deal-card,
  body .sqyd-property-card,
  body .property-card,
  body .rh_prop_card,
  body .rh_property_card{
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body .sqyd-dashboard,
  body .sqyd-member,
  body .sqyd-member-command,
  body .sqyd-desk-shell,
  body .sqyd-content-shell{
    padding-left: var(--sqyd-mobile-pad) !important;
    padding-right: var(--sqyd-mobile-pad) !important;
  }

  body .sqyd-footer,
  body footer,
  body .site-footer{
    overflow-x: hidden !important;
  }

  body .sqyd-footer-grid,
  body .footer-widgets,
  body .rh_footer__wrap,
  body .site-footer .container{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Prevent duplicate logged-in welcome/member strips from reappearing after Elementor edits. */
body.logged-in .sqyd-hd ~ .sqyd-member-strip,
body.logged-in .sqyd-hd + .sqyd-member-strip,
body.logged-in .sqyd-elementor-site-header ~ .sqyd-member-strip,
body.logged-in .sqyd-member-strip + .sqyd-member-strip,
body.logged-in .sqyd-dashboard-welcome + .sqyd-dashboard-welcome{
  display: none !important;
}

/* Minimum contrast on action bars and dashboard cards without recolouring the whole theme. */
body .sqyd-action-bar,
body .sqyd-notice,
body .notice-sqyd,
body .sqyd-message,
body .sqyd-alert{
  color: #15130f;
}
body .sqyd-action-bar a,
body .sqyd-notice a,
body .notice-sqyd a,
body .sqyd-message a,
body .sqyd-alert a{
  color: #6e5024;
  text-decoration: underline;
}

body .sqyd-btn,
body .sqyd-button,
body .sqyd-card .button,
body .sqyd-desk-shell .button,
body .sqyd-member-command .button{
  text-decoration: none !important;
}
