/* snh-mobile-declutter.css
   Draft only — Nov 21, 2026. Mobile clutter fixes for sobalhealth.com.
   Brand greens #14522d / #2e7c32, blues #8ecde8 / #3597da. No teal or amber.
   Does not touch lead forms, lead.php, consent-relay, or TCPA copy.
   Desktop (min-width: 1200px) layout is left alone except 44px cookie close
   (harmless) and Spanish cookie text on /es/ pages at any width.
*/

/* ----- 1. Cookie banner + Call bar stacking + WhatsApp clearance ----- */

#sobal-cookie-banner .scb-x{
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  font-size:24px;
  right:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#sobal-cookie-banner a{
  color:#3597da;
}

@media (max-width:768px){
  #sobal-cookie-banner{
    font-size:14px !important;
    line-height:1.4 !important;
    color:#14522d;
    border-top-color:#2e7c32;
  }
  #sobal-cookie-banner .scb-inner{
    padding:10px 52px 10px 14px !important;
  }
  #sobal-cookie-banner a{
    /* Keep Privacy / Terms easy to tap */
    padding:2px 0;
  }
}

/* When the sticky Call / Get a Quote bar is on screen, stack the cookie
   banner directly above it so the bar is never covered. */
@media (max-width:640px){
  html.sobal-cookie-on body.x-show-mbar #sobal-cookie-banner{
    bottom:var(--snh-mbar-h,69px);
  }
  html.sobal-cookie-on body.x-show-mbar{
    padding-bottom:calc(var(--scb-h,0px) + var(--snh-mbar-h,69px)) !important;
  }
  /* WhatsApp sits above cookie, or above cookie+bar when both show. */
  html.sobal-cookie-on .sobal-wa-float{
    bottom:calc(var(--scb-h,0px) + 12px) !important;
  }
  html.sobal-cookie-on body.x-show-mbar .sobal-wa-float{
    bottom:calc(var(--scb-h,0px) + var(--snh-mbar-h,69px) + 12px) !important;
  }
  body.x-show-mbar .sobal-wa-float{
    bottom:calc(var(--snh-mbar-h,69px) + 12px) !important;
  }
}

/* Right gutter so hero CTAs and the "Best fit" line are not under the
   WhatsApp float. Do not add hero padding-bottom: that pushed careers
   CTAs below the first screen. */
@media (max-width:768px){
  .vhero .hero-ctas,
  .lux-careers-hero .hero-ctas,
  .page-hero .hero-ctas,
  .article-hero .hero-ctas{
    padding-right:68px;
    box-sizing:border-box;
  }
  .page-hero p.consent,
  .article-hero p.consent{
    padding-right:68px;
    box-sizing:border-box;
  }
}


/* Hide the sticky bar while a vhero is in view, without toggling
   body.x-show-mbar (a class fight with site.js livelocks the page). */
@media (max-width:640px){
  html.snh-vhero-inview .x-mbar{
    transform:translateY(110%) !important;
    pointer-events:none !important;
  }
  html.snh-vhero-inview.sobal-cookie-on body.x-show-mbar #sobal-cookie-banner{
    bottom:0;
  }
  html.snh-vhero-inview.sobal-cookie-on body.x-show-mbar{
    padding-bottom:var(--scb-h,0px) !important;
  }
  html.snh-vhero-inview.sobal-cookie-on body.x-show-mbar .sobal-wa-float,
  html.snh-vhero-inview.sobal-cookie-on .sobal-wa-float{
    bottom:calc(var(--scb-h,0px) + 12px) !important;
  }
  html.snh-vhero-inview body.x-show-mbar .sobal-wa-float{
    bottom:12px !important;
  }
}

/* ----- 2. Full-viewport hamburger drawer ----- */

@media (max-width:1199px){
  html.snh-nav-open,
  html.snh-nav-open body{
    overflow:hidden;
    height:100%;
    overscroll-behavior:none;
  }
  html.snh-nav-open .site-head{
    z-index:100020;
    overflow:visible;
  }
  /* .nav lives inside the sticky header, which is the containing block, so
     fixed+bottom:0 cannot fill the viewport. Fill the remaining viewport
     height from the header's bottom edge instead. */
  html.snh-nav-open .nav.open{
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:100% !important;
    bottom:auto !important;
    width:auto;
    height:calc(100vh - var(--snh-nav-top,73px)) !important;
    max-height:none !important;
    min-height:calc(100vh - var(--snh-nav-top,73px)) !important;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    z-index:100015;
    background:#fff;
    padding:12px 22px calc(28px + env(safe-area-inset-bottom,0px)) !important;
    border-bottom:0;
    box-shadow:none;
  }
  html.snh-nav-open .nav.open a,
  html.snh-nav-open .nav.open .snh-dd-btn{
    min-height:44px;
    display:flex;
    align-items:center;
  }
  /* Cover cookie, WhatsApp, and the sticky call bar while the menu is open. */
  html.snh-nav-open #sobal-cookie-banner,
  html.snh-nav-open .sobal-wa-float,
  html.snh-nav-open .x-mbar{
    visibility:hidden !important;
    pointer-events:none !important;
  }
}

/* ----- 3. Wide tables: scroll instead of clip, plus a swipe cue ----- */

.snh-md-table-wrap,
.snh-sl-table-wrap,
.snh-rules-scroll,
.snh-table-scroll,
.tablewrap,
.og-table-wrap{
  max-width:100%;
  -webkit-overflow-scrolling:touch;
}

/* Undo the mobile display:block on .tp-table when it is inside a scroller.
   display:block was clipping columns and breaking overflow-x on the wrap. */
@media (max-width:640px){
  .snh-md-table-wrap,
  .v10 .snh-sl-table-wrap,
  .v10 .snh-rules-scroll,
  .v10 .snh-table-scroll,
  .snh-table-scroll,
  .v10 .tablewrap,
  .og-table-wrap{
    overflow-x:auto;
  }
  .snh-md-table-wrap .tp-table,
  .v10 .snh-sl-table-wrap .tp-table,
  .v10 .snh-table-scroll .tp-table,
  .v10 .snh-table-scroll table,
  .snh-table-scroll table,
  .v10 .tablewrap table,
  .v10 .snh-rules-scroll table,
  .og-table-wrap table{
    display:table !important;
    width:max-content !important;
    min-width:100%;
    max-width:none;
    white-space:normal;
    box-sizing:border-box;
  }
  .snh-sl-table-wrap caption,
  .snh-rules-scroll caption,
  .snh-md-table-wrap caption,
  .tablewrap caption,
  .tp-table caption{
    display:table-caption;
    caption-side:top;
    white-space:normal !important;
    max-width:min(100%, calc(100vw - 32px));
    width:auto;
    box-sizing:border-box;
    text-align:left;
    position:sticky;
    left:0;
  }
}

.snh-swipe-cue{
  display:none;
  margin:0 0 8px;
  font-size:13px;
  line-height:1.3;
  font-weight:600;
  color:#14522d;
  letter-spacing:.01em;
}
.snh-swipe-cue[data-visible="1"]{
  display:block;
}
@media (min-width:900px){
  /* Cue is unnecessary when the table already fits. JS also hides it. */
  .snh-swipe-cue[data-visible="1"]{
    display:block;
  }
}

/* Homepage: "Or call / Hablamos Español" after the hero photo, still in the
   dark hero so existing white .vhero-call color keeps working. */
.vhero .snh-vhero-call-below{
  position:relative;
  z-index:2;
  margin:10px 0 18px;
}
