/* YesSir Services public header edge containment — version 917.
   Keeps Home visible at the left edge and the 1,000+ Reviews badge visible at
   the right edge without changing CRM navigation or public-site workflows. */

html,body{
  width:100%;
  max-width:100%;
  overflow-x:clip;
}

.v6-top-header,.v6-nav,.moving-trust{
  width:100%!important;
  max-width:100vw!important;
}

.moving-trust{
  overflow:hidden!important;
  contain:paint;
}

@media (min-width:1181px){
  .v6-nav{
    overflow:hidden!important;
  }

  .v6-nav .wide{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    align-items:center!important;
    width:100%!important;
    max-width:1600px!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:0 clamp(8px,1vw,18px)!important;
    gap:5px!important;
    overflow:visible!important;
  }

  .v6-menu{
    display:flex!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }

  .v6-menu>a,.v6-menu>.nav-dd{
    flex:0 1 auto!important;
    min-width:0!important;
    margin:0!important;
  }

  .v6-menu>a,.v6-menu .nav-dd-toggle{
    min-width:0!important;
    min-height:46px!important;
    padding:0 clamp(3px,.52vw,9px)!important;
    font-size:clamp(9px,.68vw,12px)!important;
    letter-spacing:0!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  .v6-menu>a:first-child{
    padding-left:6px!important;
  }

  .v6-nav-review{
    display:block!important;
    flex:0 0 auto!important;
    min-width:max-content!important;
    max-width:none!important;
    margin:0!important;
    padding:0 4px!important;
    overflow:visible!important;
    color:#fff!important;
    font-size:clamp(9px,.7vw,12px)!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    text-align:right!important;
  }
}

@media (min-width:600px) and (max-width:1180px){
  .mobile-home-about-contact-links.ys-mobile-main-tabs,
  .mobile-home-about-contact-links.ys-mobile-main-tabs a{
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    text-indent:0!important;
    text-overflow:clip!important;
  }

  .moving-track{
    margin-left:0!important;
    padding-left:14px!important;
    transform:none!important;
  }
}
