Thermal constraints on basin-scale flow systems