Canopy nitrogen distribution is optimized to prevent photoinhibition throughout the canopy during sun flecks