Constraining planetary mass-loss rates by simulating Parker wind profiles with Cloudy