/**
 * v796 — restore the intended centred width on the v795 priority visa pages.
 *
 * The legacy v86 desktop stability rule applies max-width:none to every class
 * containing "hero", "grid" or "layout". Student Visa and Subclass 400 carry
 * that legacy body class, so their v795 wrappers and hero copy were expanded to
 * the viewport. These higher-specificity rules restore the v795 design limits.
 */
@media (min-width:783px){
  body.th-v86-mobile-stability-page .th-v795-page .th-v795-wrap{
    width:calc(100% - 48px)!important;
    max-width:1180px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__grid{
    grid-template-columns:minmax(0,1fr) minmax(390px,450px)!important;
    gap:clamp(34px,4vw,56px)!important;
    align-items:center!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__copy,
  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__copy h1{
    max-width:690px!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__subtitle{
    max-width:620px!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__description{
    max-width:680px!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-enquiry{
    width:100%!important;
    max-width:450px!important;
    justify-self:end!important;
  }
}

@media (min-width:783px) and (max-width:1100px){
  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__grid{
    grid-template-columns:1fr!important;
    gap:33px!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-hero__copy{
    max-width:800px!important;
  }

  body.th-v86-mobile-stability-page .th-v795-page .th-v795-enquiry{
    max-width:640px!important;
    justify-self:start!important;
  }
}
